SetSage for AI agents
SetSage is a workout tracker for Android phones and Wear OS watches, built so AI agents can coach from real data. Your agent reads the user's training and proposes changes. The user reviews them in the app before they apply, or lets them apply automatically, and every change has one-tap Undo.
Two ways in
Live connector (MCP, Streamable HTTP) with Sign in with SetSage. The user adds a custom connector named SetSage with the address https://setsage.co.uk/mcp, taps Connect and signs in with Google on SetSage's page, where they choose what the agent may do. Nothing to copy. The live connection is part of SetSage Pro.
- Claude: on claude.ai, go to Customize → Connectors → + → Add custom connector, enter the name and address, then Connect. It also works in the Claude mobile and desktop apps.
- ChatGPT: turn on Developer mode in Settings, then add an app with the name and address and choose OAuth.
- Any MCP client (Claude Code, Cursor, Gemini CLI…): add
https://setsage.co.uk/mcpas a remote Streamable HTTP server; clients that support MCP authorization sign in by themselves.
Authorization follows the MCP specification: OAuth 2.1 with PKCE (S256 only), Protected Resource Metadata at /.well-known/oauth-protected-resource/mcp (an unauthenticated request gets a 401 whose WWW-Authenticate header points there), Authorization Server Metadata at /.well-known/oauth-authorization-server, Dynamic Client Registration at /register, then /authorize, /token and /revoke. Redirect addresses must be https or loopback. Scopes: read (always), propose (propose changes) and today (adjust the workout in progress); the user can switch them per app in SetSage, and a tool that's switched off answers with a message rather than an error. Access tokens last an hour; refresh tokens rotate on every use. Several apps can be connected at once, and the user can disconnect any of them in the app.
Personal link (advanced). For agents without sign-in, a Pro user can still create a private link in AI → My AI → Troubleshooting → Advanced: personal link and add it as a connector with no authentication, or send its token as Authorization: Bearer. The token identifies the user, so treat it as a password; it can be replaced or turned off at any time.
Chat share (any AI, free). The app sends a Markdown summary of the user's training with their request to the Claude, ChatGPT or Gemini app. Answer in plain language, then end with one ```json block in the actions envelope below. The user shares your reply back to SetSage to review it.
Tools
| Tool | What it returns or does |
|---|---|
get_read | Start here. Shared profile, active plan with last performance per exercise, the next 14 workouts, this week and 8 weeks, training mix, sets per muscle, personal bests, recent workouts and earlier coach notes. |
get_read | Upcoming workouts by date, the training weekdays, and the plan's days. |
get_read | Logged workouts, newest first. Filter by since, until, exercise or limit. Each has minutes, heart rate and load (if shared) and every set. |
get_read | Every session of one exercise, with its sets and how it felt. |
get_read | Weekly totals, mix, muscle balance, 12-week consistency, records and lifetime totals. |
get_read | All saved plans and which one is active. |
search_read | The exercise library plus the user's own exercises. Filter by name, kind, muscle or equipment. |
propose_write | A summary plus a list of actions (below), sent to the user's app. |
add_write | A review or tip saved in the app (Progress and the Coach tab). |
log_write | A workout the user told you about that the watch missed, from the last 60 days. |
get_read | Whether recent proposals were applied or declined, and what changed. |
The actions envelope
The same format works for connector writes and chat replies. Use only the actions you need.
{"setsage":1,"summary":"one line on what you changed and why","actions":[
{"type":"set_target","exercise":"Bench press","day":"Push A","sets":3,"reps":8,"weight_kg":62.5,"rest_sec":120},
{"type":"swap_exercise","day":"Legs","from":"Back squat","to":"Goblet squat"},
{"type":"add_exercise","day":"Legs","exercise":"Calf raise","sets":3,"reps":12,"weight_kg":40},
{"type":"remove_exercise","day":"Legs","exercise":"Leg extension"},
{"type":"schedule","training_days":["Mon","Wed","Fri"],"next_day":"Legs"},
{"type":"new_plan","make_active":true,"plan":{"name":"Plan name","days":[{"name":"Day A","exercises":[
{"exercise":"Back squat","sets":3,"reps":5,"weight_kg":80,"rest_sec":180},{"exercise":"Plank","sets":3,"seconds":45}]}]}},
{"type":"log_workout","date":"2026-09-27","name":"Spin class","minutes":45,"exercises":[{"exercise":"Indoor cycling","sets":[{"seconds":2700}]}]},
{"type":"note","title":"Week review","text":"What you noticed and what to focus on"}
]}update_plan takes a plan like new_plan and rewrites the active plan in place. Days can be named ("Push A") or numbered ("Day 2"). Exercise names are matched to the library, and unknown names become the user's own exercises.
Units and rules
- Weights are in kg, distances in km, times in minutes unless named (
seconds,rest_sec), and heart rate in bpm. The user's smallest weight step is inprofile.weightStepKg(often 0.5 kg). - Weights are kept as you send them. A weight more than 10% above what the user lifts now is pointed out to them, and the whole proposal then waits for their approval, even if they chose apply automatically.
plan_delete,workout_deleteandgoal_delete(throughpropose_plan_changes, SetSage 1.9 or later) always wait for the user's approval in SetSage, whatever their access setting, and can be undone. Nothing else deletes history.log_workoutonly adds, and only for things the user told you they did.change_workout_times(SetSage 1.7 or later) only corrects a logged workout's start, end, length or date when the user says they're wrong; the user approves it and can undo it.- Sets must be 1 to 20, reps 1 to 100 and rest 0 to 600 s. Anything outside that range is clamped.
- At most one
new_planorupdate_planper proposal, and at most 20 proposals can wait for the user's review at once; past that, writes are refused until the user catches up. Text fields have length limits (names 80 to 100 characters, notes 200, a note's text 4,000). - The user's access setting decides what happens next.
read-onlyrefuses writes,ask-firstwaits for review, andapply-and-tellapplies with undo, except a delete or a weight more than 10% above what the user lifts, which wait for review. It is inprofile.agentAccess. - Explain your changes to the user in the conversation too. The app shows them your
summary.
Privacy
The phone builds everything an agent can read from the user's sharing switches. Plans and schedule are always included. Workouts, heart rate, body details and notes are optional. Names and email addresses are never included. See the privacy notice.
Developers: hello.setsage@gmail.com.