CoachHand connector for AI agents
CoachHand connects a person with a fitness coach who writes their training plan. This connector lets a person's own AI agent read that plan, so it can answer "what is my workout today?". It follows the Model Context Protocol (MCP).
MCP server: https://coachhand.com/mcp (add this address to your agent as an MCP server or custom connector; it is not a page to open or read)
Transport: Streamable HTTP. Every answer is plain JSON; there are no streams and no sessions.
Sign-in: OAuth 2.1, authorization code with PKCE (S256).
Tools: one, get_workout. It is read-only.
What the connector can and cannot do
It reads. It never writes: nothing can be logged, changed, sent or bought through it, and no call has a side effect.
| It can read | It can never read |
|---|---|
| The plan the coach assigned: days, exercises, sets, reps, weights, rest and the coach's notes. The person's own exercise swaps. Which days are marked as done. | Health screening answers, check-ins, body weight, what was actually lifted, messages, photos and videos, Apple Health data, payments, and anything about any other person. |
Who can use it
- A person with a CoachHand client account. Coach and gym accounts cannot connect an agent.
- The answer comes from the plan of the coach they are training with. Without a coach, or once coaching has ended, the tool says there is no plan.
- CoachHand is an iPhone app for people aged 13 and over. Training with a coach needs a paid subscription in the app; the connector itself costs nothing.
Signing in
Call the server without a token and it answers 401 with a WWW-Authenticate header that names the metadata. Everything else is discovered from there.
| Protected resource metadata | https://coachhand.com/.well-known/oauth-protected-resource |
|---|---|
| Authorization server metadata | https://coachhand.com/.well-known/oauth-authorization-server |
| Issuer | https://coachhand.com |
| Authorization endpoint | https://coachhand.com/oauth/authorize |
| Token endpoint | https://coachhand.com/oauth/token |
| Registration endpoint | https://coachhand.com/oauth/register |
| Revocation endpoint | https://coachhand.com/oauth/revoke |
| Scope | workouts:read (the only one) |
| Resource | https://coachhand.com/mcp |
- Client registration. Three ways: dynamic client registration (RFC 7591, public clients only), a Client ID Metadata Document (use its https address as the
client_id), or ask us to list your client, with a secret if you need one. - PKCE is required, with
code_challenge_method=S256. - Redirect addresses must be https, or http on
localhost,127.0.0.1or[::1]. They are matched exactly. - Approval. The person is sent to
coachhand.com/connect, confirms who they are, sees what the agent would read, and allows or cancels. The answer comes back withcode,stateandiss. - Tokens. Access tokens last 1 hour. Refresh tokens last 90 days and are replaced each time they are used; a refresh token used twice ends the connection. Send the access token as
Authorization: Bearer …. - Disconnecting. The person can end a connection at coachhand.com/connections. An agent can end its own by posting a token to the revocation endpoint. After either, calls answer
401.
The tool: get_workout
Returns what the coach planned for one day, and an outline of that training week.
| Argument | Type | Meaning |
|---|---|---|
date (required) | string, YYYY-MM-DD | The day to look up, in the person's own time zone. For "today", pass today's date where the person is, not the UTC date. |
time_zone (optional) | string | The person's IANA time zone, such as America/New_York. |
Annotations: readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false.
The answer
The result has the answer twice: as words in content, and as data in structuredContent. The data always has date and status.
status | Meaning |
|---|---|
workout | A workout is planned. day.exercises lists it. |
rest_day | The coach planned a rest day. day.coach_note may say what to do. |
recovery_day | Nothing is planned: a day between sessions. |
not_started | The coach sent a plan and the person has not started it in the app yet. |
before_start | The date is before the day the plan started. |
no_plan | There is no active plan: no coach yet, no plan sent yet, or coaching has ended. |
| Field | Meaning |
|---|---|
coach, plan, plan_notes | The coach's name, the plan's title, and the coach's notes for the whole plan. |
weekday, week_number, plan_week | The day of the week, which week of training this is for the person, and which week of this plan. |
day.title, day.focus, day.coach_note, day.done | The day's name, its focus, the coach's note for it, and whether the person marked it as done. |
day.exercises[] | In order. Each has name, sets, reps (text, such as 8-10 or 30 sec), and when given: weight with weight_unit (lb or kg), rest_seconds, note, circuit (a letter; exercises with the same letter are done back to back), each_set (when sets differ) and in_place_of (when the person swapped the coach's exercise for this one). |
week[] | The seven days of that training week: date, weekday, kind (workout, rest or recovery), title, done. A training week runs from the day the person started, so it need not begin on a Monday. |
Example
POST https://coachhand.com/mcp
Authorization: Bearer cha_…
Content-Type: application/json
{"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {"name": "get_workout", "arguments": {"date": "2026-11-25"}}}
{"jsonrpc": "2.0", "id": 1, "result": {
"isError": false,
"content": [{"type": "text", "text": "Wednesday, 2026-11-25: Lower A (week 3 with Maya Chen, plan \"Strength Week\") …"}],
"structuredContent": {
"date": "2026-11-25", "status": "workout",
"coach": "Maya Chen", "plan": "Strength Week",
"weekday": "Wednesday", "week_number": 3, "plan_week": 3,
"day": {"title": "Lower A", "focus": "Squat and hinge", "done": false,
"exercises": [
{"name": "Back Squat", "sets": 4, "reps": "6", "weight": 185, "weight_unit": "lb", "rest_seconds": 150},
{"name": "Romanian Deadlift", "sets": 3, "reps": "8-10", "weight": 135, "weight_unit": "lb", "rest_seconds": 120,
"note": "Slow on the way down."}
]},
"week": [
{"date": "2026-11-24", "weekday": "Tuesday", "kind": "workout", "title": "Upper A", "done": true},
{"date": "2026-11-25", "weekday": "Wednesday", "kind": "workout", "title": "Lower A", "done": false},
{"date": "2026-11-26", "weekday": "Thursday", "kind": "rest", "title": "Rest day", "done": false}
]
}
}}
The example is shortened: week always has seven days.
Errors
| What happened | What comes back |
|---|---|
| No token, or one that is wrong, expired or disconnected | HTTP 401 with WWW-Authenticate: Bearer resource_metadata="…", and error="invalid_token" when a token was sent |
date missing or not a real day | A normal result with isError: true and words saying what to send |
| Unknown tool | JSON-RPC error -32602 |
| Unknown method | JSON-RPC error -32601 |
| Not JSON, a batch, or not JSON-RPC 2.0 | HTTP 400 with -32700 or -32600 |
| A protocol version we do not speak | HTTP 400 with -32022 and the versions we do speak |
| A required MCP header missing or different from the body (2026-07-28) | HTTP 400 with -32020 |
GET or DELETE on the endpoint | Without a valid token: 401 as above, with a pointer to this page. With one: 405, because there are no streams or sessions. A browser is sent to this page |
| Token endpoint: wrong, expired or reused code or refresh token | HTTP 400 with invalid_grant |
Protocol versions and limits
- MCP
2026-07-28(each request stands alone;server/discover,tools/list,tools/call), and the earlier revisions that begin withinitialize:2025-11-25,2025-06-18and2025-03-26. - One JSON-RPC message per request. Notifications are answered
202with no body. - There is no published rate limit yet. Please keep to what a person asking questions needs: a few requests a minute for one person. A plan changes when the coach edits it or the person ticks off a day, so an answer can be reused for a few minutes.
- At most 300 clients can register themselves in a day. Clients nobody connected are removed after 30 days.
Contact
Questions, or to have a client listed: no-reply@coachhand.com. Privacy: coachhand.com/privacy.