JustGains MCP server
Endpoint: https://justgains.com/mcp · Authentication: No auth
Searches exercise and food references and exposes workout and nutrition tracking tools. Discovery is anonymous, and personal logs and account actions require OAuth.
How do I authenticate?
Add the endpoint directly in your client. The catalog records no authentication requirement; no OAuth sign-in or API key is configured in this setup. The live server may change.
Authentication and connection guideConnection specification
- Remote endpoint
https://justgains.com/mcp- Browser access
- Not yet measured
- Declared MCP transport
- Streamable HTTP
- Live-validated MCP transport
- Streamable HTTP — Observed by the latest catalog validation
- Declared authentication
- No authentication
- Detected authentication
- No authentication detected or retained from publisher evidence
- Alternative authentication
- OAuth 2.1
- Alternative endpoint
https://justgains.com/connect/mcp— Use this endpoint for general MCP clients that connect through JustGains OAuth. Anonymous requests return HTTP 401. (OAuth 2.1)- Protocol lifecycle
- Stateful MCP · 2025-11-25
- Authorization server
https://justgains.com- Category
- Reference
Official listing documentation · ChatGPT app directory listing
More Reference MCP servers · Browse all MCP servers · Test this endpoint in the MCP Playground
Connect it
Live-validated endpoint: https://justgains.com/mcp · Streamable HTTP. No authentication is required by the catalog listing.
Agent prompt for Claude Code or Codex
Add the JustGains MCP server to my MCP client configuration and verify that it works. What it is: Searches exercise and food references and exposes workout and nutrition tracking tools. Discovery is anonymous, and personal logs and account actions require OAuth. Server URL: https://justgains.com/mcp Transport: Streamable HTTP (remote MCP server, no local install). Authentication: none. The server accepts connections without credentials. Tools (first 25 of 29, as last observed by mcptest): analyze_my_consistency, compare_my_weeks, create_route, create_workout, create_workout_program, generate_workout, get_exercise_details, get_my_exercise_history, get_my_food_diary, get_my_profile, get_my_recovery_analytics, get_my_top_exercises, get_my_weight_history, get_my_workout_logs, get_my_workout_programs, get_progress, get_workout_history, get_workout_program, log_my_food, log_my_weight, remove_my_food, search_exercises, search_foods, search_workout_programs, set_my_program_engagement. Reference: https://mcptest.io/servers/justgains/ Steps: 1. Work out which MCP client I use (Claude Code, Codex, Cursor, VS Code or another) and add the server under the name "justgains" in that client's MCP configuration, user scope unless I ask otherwise. Claude Code: claude mcp add --transport http --scope user 'justgains' 'https://justgains.com/mcp' Codex: codex mcp add 'justgains' --url 'https://justgains.com/mcp' Other clients: use the setup for that client on the reference page. 2. Never write a credential value into a file that could be committed; reference an environment variable or the client's secret store, and ask me for any value you need. 3. Verify: connect to the server and call tools/list. Confirm the tools above are listed, and report any sign-in step I still have to complete.
Claude Code setup
Run in a terminal. This user-scoped entry is available across projects.
claude mcp add --transport http --scope user 'justgains' 'https://justgains.com/mcp'Codex CLI setup
Run in a terminal; Codex stores the entry in ~/.codex/config.toml.
codex mcp add 'justgains' --url 'https://justgains.com/mcp'Cursor setup
Add to .cursor/mcp.json for this project, or ~/.cursor/mcp.json for all projects.
{
"mcpServers": {
"justgains": {
"url": "https://justgains.com/mcp"
}
}
}VS Code setup
Add to .vscode/mcp.json, or run “MCP: Open User Configuration” for a private user-level entry.
{
"servers": {
"justgains": {
"type": "http",
"url": "https://justgains.com/mcp"
}
}
}Claude setup
Add the endpoint above in Claude:
- Customize > Connectors > Add custom connector
- Team/Enterprise: Organization settings > Connectors > Add > Custom > Web
Claude Desktop setup
Add the endpoint above in Claude Desktop:
- Remote: Customize > Connectors (same as claude.ai)
- Local: Settings > Developer > Edit Config, or Settings > Extensions for .mcpb files
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) or%APPDATA%\Claude\claude_desktop_config.json(Windows), local servers only
ChatGPT setup
Add the endpoint above in ChatGPT:
- ChatGPT web: Plugins > Add custom MCP server, then configure authentication and accept the risk warning
Windsurf setup
Add the endpoint above in Windsurf:
~/.config/devin/mcp_config.json(%APPDATA%\devin\mcp_config.jsonon Windows),serverUrlorurl- Cascade panel > ... > MCPs > Open MCP config file
Gemini CLI setup
Add the endpoint above in Gemini CLI:
gemini mcp add --transport http <name> <url>~/.gemini/settings.json(user) or.gemini/settings.json(project),mcpServers
MCP SDK setup
Add the endpoint above in MCP SDK:
- Programmatic:
new Client(...).connect(new StreamableHTTPClientTransport(url))
Notes for every client
- An optional oauth flow is cataloged, but its exact header is not documented; follow the publisher instructions instead of guessing.
- Alternative endpoint: https://justgains.com/connect/mcp — Use this endpoint for general MCP clients that connect through JustGains OAuth. Anonymous requests return HTTP 401..
Client compatibility
| Client | Status | Why |
|---|---|---|
| Claude Code | Supported | Claude Code supports Streamable HTTP servers and servers without authentication or OAuth sign-in. |
| Codex | Partial | Codex CLI ignores resources: The server can still connect, but Codex CLI does not consume the advertised resources capability. Codex CLI ignores prompts: The server can still connect, but Codex CLI does not consume the advertised prompts capability. |
| Cursor | Supported | Cursor supports Streamable HTTP servers and servers without authentication or OAuth sign-in. |
| VS Code | Supported | VS Code supports Streamable HTTP servers and servers without authentication or OAuth sign-in. |
| Claude | Supported | Claude supports Streamable HTTP servers and servers without authentication or OAuth sign-in. |
| Claude Desktop | Supported | Claude Desktop supports Streamable HTTP servers and servers without authentication or OAuth sign-in. |
| ChatGPT | Partial | ChatGPT ignores resources: The server can still connect, but ChatGPT does not consume the advertised resources capability. ChatGPT ignores prompts: The server can still connect, but ChatGPT does not consume the advertised prompts capability. Stateful routing needs operational care: ChatGPT can preserve MCP sessions, but the deployment must route a session consistently and retain its state. |
| Windsurf | Partial | Windsurf's documentation does not state support for servers without authentication. |
| Gemini CLI | Supported | Gemini CLI supports Streamable HTTP servers and servers without authentication or OAuth sign-in. |
| MCP SDK | Supported | MCP SDK supports Streamable HTTP servers and servers without authentication or OAuth sign-in. |
Computed from this server's validated transport, protocol and authentication against documented client support. Checks the catalog has not observed are not counted.
Latest validation evidence
- Validation status
- Online when last tested
- Validation checked at
- Nov 23, 2026 at 7:18 PM
- Validation detail
- Negotiated stateful MCP 2025-11-25 at https://justgains.com/mcp; detected transport streamable-http; authentication none; WARNING: OAuth authorization servers advertised; an anonymous MCP handshake does not establish anonymous tool access
Tool inventory
What the catalog validator observed on at https://justgains.com/mcp without credentials. The live server may have changed since; connect in the Playground for the current list.
Tools provided by JustGains 29
Some details were sanitized for public display.
analyze_my_consistencyNo outputSchemaAnalyze the CURRENT user's workout consistency over a window: longest streak, current streak (the same rule as the app: up to two rest days keep a streak alive), distinct training days, total logs, and average workouts per week. Use for 'how's my consistency', 'what's my streak', 'how often have I trained lately'. Default window 60 days, max 365. For HISTORICAL consistency questions ('how consistent was I in 2024'), pass `endDate` (ISO-8601), the window becomes (endDate: days, endDate). Current-streak only counts when the window ends today/yesterday. Returns the window, distinct training days,
Input
days?: integer, endDate?: stringdays?: integeroptionalHow many days the analysis covers, ending today or at endDate. Omit for 60; longer windows are cut to 365.
endDate?: stringoptionalOptional ISO-8601 anchor date, the window ends here instead of today. Use for retrospective consistency like 'how consistent was I in 2024'.
compare_my_weeksNo outputSchemaCompare the CURRENT user's most recent period against the equal period before it; `windowDays` sets how long each is. Use for 'am I training more than last week', 'did I lose weight faster this week', 'is this week better'. Returns workout-count delta and weight delta between the two windows. For HISTORICAL comparisons ('how did the week of June 1, 2024 compare to the week before'), pass `endDate`. The current window becomes (endDate - windowDays, endDate) and the prior window slides back to match.
Input
endDate?: string, windowDays?: integerendDate?: stringoptionalOptional ISO-8601 anchor: current window ends at this date instead of now. Prior window slides back by `windowDays` accordingly.
windowDays?: integeroptionalLength in days of the current period and of the equal period before it. Omit for 7, which compares this week with the week before; a period covers 30 days at most.
create_routeoutputSchema declaredGenerate a real, road-and-path-snapped ROUTE (a plannable run / ride / walk / hike path) and save it to the user's Routes tab. Use when the user asks you to build / make / plan a route, a running loop, a bike ride, etc. The route starts and ends at the user's last known training location, read from their JustGains account: the start of their most recent GPS activity, or else of their newest saved route. The result says which. This tool takes no location, so do not ask the user for coordinates or an address; when the account has no such location yet, the tool says so, and recording an activity
Input
activityType: string, direction?: string, distanceKm: number, name?: string, routeShape?: stringactivityType: stringrequiredWhat the route is for. 'ride' uses cycling roads; the rest use walking/running paths.
direction?: stringoptionalOptional compass direction to head in. Omit for a sensible random direction.
distanceKm: numberrequiredRequested route length in kilometers, including the return leg for a loop.
name?: stringoptionalShort friendly route name, e.g. '5K Morning Loop'. Omit to auto-name.
routeShape?: stringoptionalloop = a circuit back to the start (default); out_and_back = straight out to a turnaround point and back the same way.
create_workoutoutputSchema declaredCreate a workout in the signed-in user's JustGains account, saved under their own creator profile. Provide a title and an ordered list of exercises (by code from search_exercises, or by name to auto-resolve); each exercise can include sets with reps/weight/RPE. Use this for precise, user-specified workouts (use generate_workout for AI-generated ones).
Input
description?: string, exercises: array, title: stringdescription?: stringoptionalWorkout overview or coaching notes shown alongside the exercise list.
exercises: arrayrequiredOrdered exercises.
title: stringrequiredWorkout title.
create_workout_programNo outputSchemaCreate a brand-new multi-week/multi-day workout PROGRAM for the user and save it to their account. You write the FULL program out as plain text in `programText`: a title, then each week and day with that day's exercises and their sets × reps (add weight or RPE when relevant). Rest days can be written as 'Rest'. The text is parsed into a structured program (real exercises are matched automatically) and saved. Use this whenever the user asks you to build / create / make / design a training PROGRAM, a multi-week or multi-day plan (PPL, full-body split, 5x5, a cut block, etc.). For a single one-of
Input
programText: string, programTitle?: stringprogramText: stringrequiredThe complete program written as plain text: a title line, then each week and day with the day's exercises and sets × reps (e.g. 'Week 1, Day 1 Push: Barbell Bench Press 4x6, Overhead Press 3x8 ...'). Include rest days. Be specific and complete, this is what gets parsed.
programTitle?: stringoptionalOptional explicit program title. If omitted, a title is taken/derived from the text.
generate_workoutoutputSchema declaredGenerate and persist a workout from a natural-language description, such as "30 minute leg workout with dumbbells". Returns its workout ID, title, coaching summary and exercises/sets in a preview card. Works without sign-in; a connected account owns the saved workout.
Input
equipment?: array, muscleGroups?: array, prompt: stringequipment?: arrayoptionalCodes of available equipment, as used by JustGains exercises. If codes are unknown, describe the available equipment in prompt instead.
muscleGroups?: arrayoptionalMuscle group codes to focus on, for example CHEST. If the code is unknown, describe the target muscles in prompt instead.
prompt: stringrequiredDescription of the workout to generate (e.g., "20 minute leg workout with dumbbells")
get_exercise_detailsNo outputSchemaGet detailed information about a specific exercise by its code. Returns the exercise name, instructions, equipment, muscles worked, and measurements.
Input
exerciseCode: stringexerciseCode: stringrequiredThe unique code of the exercise (e.g., 'BARBELL-BENCH-PRESS', 'BARBELL-SQUAT')
get_my_exercise_historyNo outputSchemaGet the CURRENT user's recorded history for a SINGLE exercise (by exerciseCode), plus their personal best. Use when the user asks 'show my bench press progression', 'how heavy have I squatted', 'what's my best deadlift', 'when did I last do pull-ups'. You usually want to call search_exercises FIRST to resolve a name to a code. For ANY HISTORICAL TIMEFRAME ('my bench in 2024', 'squats last summer'), pass `since` and/or `until`. The tool sweeps deeper pages automatically and returns only sessions in the window: DO NOT page manually. Use `maxSessions` to cap the scan. Returns history items (worko
Input
exerciseCode: string, maxSessions?: integer, page?: integer, pageSize?: integer, since?: string, until?: stringexerciseCode: stringrequiredUppercase exercise code, e.g. 'BARBELL-BENCH-PRESS'. Use search_exercises if unsure.
maxSessions?: integeroptionalMost sessions a date-window scan returns. Omit for 100. Raise it when a longer window has to be covered in full; it returns 500 at most.
page?: integeroptionalPage of sessions, newest first; 1 is the latest page. Omit for page 1. Ignored when since or until is set.
pageSize?: integeroptionalSessions per page when paging. Omit for 10. A page holds 50 sessions at most, so read the next page for more. Ignored when since or until is set.
since?: stringoptionalOptional ISO-8601 lower bound: only sessions completed at or after this time are returned.
until?: stringoptionalOptional ISO-8601 upper bound: only sessions completed at or before this time are returned.
get_my_food_diaryoutputSchema declaredRead the CURRENT user's food diary, daily totals, targets, local date/timezone and last 30 days of foods (up to 100 entries). Call when the user wants to see their diary, when a request depends on a past day ('same as yesterday'), or to find entries to correct or remove that no recent food result returned. Routine logging does not need it: log_my_food resolves the local date and checks recent entries on the backend. Never infer that a planned meal was eaten.
Input
entryDate?: stringentryDate?: stringoptionalDay of the diary to read in the user’s local calendar, for example 2026-11-10. Omit for the user’s today.
get_my_profileNo outputSchemaRead the CURRENT user's JustGains profile. Name what the question needs in `fields` and only those fields come back: heightCm for 'what's my height', age for 'how old am I', experienceLevel for 'what experience level am I set as', fitnessGoals for 'what goals do I have'. Without `fields` it returns the basics only: user name, bio, measurement system, timezone and the public creator profile. Email and private details (birth date, age, height, baseline weight, gender, experience level, fitness goals, injury tracking) are returned only when named. Pair with `update_my_profile` if they want to cha
Input
fields?: arrayfields?: arrayoptionalProfile fields to return, named as they appear in the result. Omit for the basics: userName, userBio, measurementSystem, userTimezone and creatorProfile (the public display name, bio, follower counts and profile ID).
get_my_recovery_analyticsNo outputSchemaGet the CURRENT user's recovery analytics: last workout date, days since last workout, and per-muscle-group weekly target / completed set counts / target percentage / last-worked date. Use for 'am I recovered enough to train chest', 'what muscles am I behind on', 'have I hit my weekly back volume', 'when did I last train shoulders'. For HISTORICAL questions ('how was my recovery the week of June 1, 2024'), pass `asOfDate` (ISO-8601). The whole calculation anchors to that date, week boundaries, days-since-last-workout, and recency buckets all shift back accordingly.
Input
asOfDate?: stringasOfDate?: stringoptionalOptional ISO-8601 anchor date: recovery data is computed as if 'now' were this date. Use for retrospective recovery questions like 'how was my recovery during the week of June 1, 2024'.
get_my_top_exercisesNo outputSchemaCross-exercise leaderboard for the CURRENT user. Use whenever the user asks about their TOP / MOST / HEAVIEST exercises across the board: 'what's my most used exercise', 'top 3 lifts', 'heaviest exercises', 'what do I lift the most'. Scans the user's workout logs over a window (`lookbackDays`, or `since`/`until`), stopping at `maxLogsScanned`, and returns three rankings in one call: byFrequency (session + set count), byMaxWeight (peak single-set weight), and byVolume (total tonnage). Each entry includes the exerciseCode + name so the agent can drill into a specific lift via get_my_exercise_his
Input
lookbackDays?: integer, maxLogsScanned?: integer, since?: string, topN?: integer, until?: stringlookbackDays?: integeroptionalDays before now where the scan starts when since is omitted. Omit for 365; the scan reaches back 1825 days (five years) at most.
maxLogsScanned?: integeroptionalMost workout logs read, newest first, before ranking. Omit for 200. Raise it for long histories; it reads 500 at most.
since?: stringoptionalStart of the scan as an ISO-8601 date or timestamp; logs created at or after it are scanned. Omit to start lookbackDays before now.
topN?: integeroptionalHow many exercises each ranking lists. Omit for 5; a ranking lists 25 at most.
until?: stringoptionalEnd of the scan as an ISO-8601 date or timestamp; logs created at or before it are scanned. A date alone means midnight UTC at its start. Omit to scan up to the most recent log.
get_my_weight_historyNo outputSchemaGet the CURRENT user's bodyweight log (entries plus summary: current, lowest, highest). Use whenever the user asks about their bodyweight: 'what do I weigh now', 'how much have I lost', 'show my weight trend', 'when did I last weigh in', 'what was my lightest'. For ANY HISTORICAL TIMEFRAME ('what did I weigh in March', 'last summer', 'between Jan 1 and Feb 14'), pass `since` and/or `until`. Summary stats (current/lowest/highest) are returned for BOTH the full history and, when a window is set, the windowed slice. `limit` shortens the entry list only. Requires sign-in.
Input
limit?: integer, since?: string, until?: stringlimit?: integeroptionalHow many entries to list, newest first. Omit for 30; the list holds 200 at most. Summary figures still cover every matching entry.
since?: stringoptionalStart of the window as an ISO-8601 date or timestamp; entries recorded at or after it are included. Omit for no start limit.
until?: stringoptionalEnd of the window as an ISO-8601 date or timestamp; entries recorded at or before it are included. A date alone means midnight UTC at its start. Omit to include entries up to the latest.
get_my_workout_logsNo outputSchemaGet the CURRENT user's workout-log history (workouts they actually performed and recorded). Use this whenever the user asks about THEIR OWN workouts - 'my last workout', 'what did I do this week', 'how much did I bench Monday', 'show my recent sessions', 'workouts in March', 'last summer's training'. For any historical timeframe, pass `since` and/or `until`: the tool pages deeper by itself until the window is covered or `maxLogs` is reached. For RANKED questions ('what was my best workout', 'longest session ever', 'highest-volume day'), set `rankBy` and `topN`: the tool sweeps the window, comp
Input
maxLogs?: integer, page?: integer, pageSize?: integer, rankBy?: string, since?: string, topN?: integer, until?: stringmaxLogs?: integeroptionalMost logs a date window or ranking collects before returning. Omit for 100. Raise it when a longer window has to be covered in full; it collects 500 at most.
page?: integeroptionalPage of recent logs, newest first; 1 is the latest page. Omit for page 1. Ignored when since, until or a volume or duration rankBy is set.
pageSize?: integeroptionalLogs per page when paging through recent logs. Omit for 10. A page holds 50 logs at most, so read the next page for more. Date windows and rankings ignore it and stop at maxLogs instead.
rankBy?: stringoptionalHow to order results. 'recent' (default) is newest-first by createdAt. 'volume' ranks by total tonnage (sum of weight×reps across all sets). 'duration' ranks by `WorkoutLogDuration` (seconds). Set this for 'best workout', 'highest-volume day', 'longest session' questions.
since?: stringoptionalOptional ISO-8601 lower-bound: only logs with createdAt >= since are returned.
topN?: integeroptionalHow many top logs to return when rankBy is volume or duration. Omit for 5; a ranking lists 25 at most. Ignored for recent ordering.
until?: stringoptionalOptional ISO-8601 upper-bound: only logs with createdAt <= until are returned.
get_my_workout_programsNo outputSchemaGet the CURRENT user's workout-program enrollments and progress. Use whenever the user asks about programs they are following: 'what programs am I on', 'what's my next workout', 'how far through PPL am I', 'show my active programs'. Returns each enrolled program's title, engagement status, last completed day, remaining workouts, the next scheduled workout id (if any), and the program id. Errors if the user is not signed in.
Input No parameters
get_progressoutputSchema declaredRead the signed-in user's training progress over a date range or trailing days (default 30). Returns the resolved range, daily XP/volume/steps and a summary of XP, lifted volume, workout days, active days and best day. Requires a connected JustGains account.
Input
days?: number, endDate?: string, startDate?: stringdays?: numberoptionalAlternatively, the number of most recent days to include (e.g. 7, 30, 90).
endDate?: stringoptionalEnd of the window (YYYY-MM-DD). Defaults to today.
startDate?: stringoptionalFirst day of the progress window, in YYYY-MM-DD form. Omit to derive it from days and endDate.
get_workout_historyoutputSchema declaredList the signed-in user's most recent workouts (title, date, duration, total volume, sets, reps, exercise count). Use to discuss recent training, consistency, and volume trends.
Input
limit?: numberlimit?: numberoptionalHow many recently finished workouts to list. Omit for 10; values above 20 return 20.
get_workout_programNo outputSchemaGet a workout program (template) by id, including its weeks and days. Use after search_workout_programs or get_my_workout_programs to dig into a specific program. Set includeData=false for a lightweight summary that omits per-day workout content.
Input
includeData?: boolean, workoutProgramId: stringincludeData?: booleanoptionalInclude the full week/day breakdown (default true).
workoutProgramId: stringrequiredProgram ID returned by search_workout_programs or get_my_workout_programs.
log_my_foodoutputSchema declaredLog foods the CURRENT user actually ate in one call. Call this directly: do not search_foods, browse, research nutrition, or read the diary first. Send every food/drink with quantityGrams and a quick estimatedMacros fallback for the whole portion; round estimates rather than researching exact numbers. The API checks recent foods and the cached catalog, prefers reliable nutrition, and labels estimate fallbacks. Preserve brand and raw/cooked preparation. Use servingQuantity/servingUnit for counts and portionEstimated=true for guessed weights. Briefly disclose assumptions; do not ask for missing
Input
entryDate?: string, items: array, loggedAt?: string, mealSlot: string, requestId: stringentryDate?: stringoptionalLocal diary date in YYYY-MM-DD form; defaults to the user’s today.
items: arrayrequiredloggedAt?: stringoptionalWhen the food was eaten. Omit to record now for today’s diary, or local midday for another date. A correction keeps the entry’s original time.
mealSlot: stringrequiredMeal of the day to which these eaten foods belong.
requestId: stringrequiredMeal request identifier generated for this save. Reuse it on retries to prevent duplicate logging.
log_my_weightNo outputSchemaRecord a new bodyweight entry for the CURRENT user. Pass `weightKg` (kilograms) OR `weightLbs` (pounds), the tool converts lbs → kg before storage. If the user spoke in pounds, prefer `weightLbs` so the round-trip is exact. `recordedAt` is optional ISO-8601 (defaults to now). Valid stored range: 25kg–500kg (≈55–1100 lbs); the API rejects values outside this.
Input
notes?: string, recordedAt?: string, weightKg?: number, weightLbs?: numbernotes?: stringoptionalOptional notes the user mentioned (mood, time of day, etc.).
recordedAt?: stringoptionalOptional ISO-8601 timestamp. Defaults to now (UTC).
weightKg?: numberoptionalBodyweight in kilograms. Supply this or weightLbs according to the user’s stated unit.
weightLbs?: numberoptionalBodyweight in pounds. Supply this or weightKg according to the user’s stated unit.
remove_my_foodoutputSchema declaredRemove foods the CURRENT user asks to delete from their diary, e.g. 'remove those crackers', 'I did not eat that', or 'delete breakfast'. Identify the exact saved entries from the user's request and the latest food result (log, removal or diary read); call get_my_food_diary for the relevant day only if no recent result has them. Pass their diaryEntryId and expectedUpdatedAt exactly as that result gives them. Remove only requested entries; ask which one if the target is ambiguous. For an entire meal, pass all entries in that meal, not the whole day. Removing one pack from a two-pack entry is a
Input
items: arrayitems: arrayrequired
search_exercisesoutputSchema declaredSearch the JustGains exercise library by name (optionally filtered by muscle group or equipment). Returns each match with its exercise code, name, the measurements it records, whether weight is entered per side and its equipment, for use when building or updating a workout.
Input
equipment?: string, limit?: number, muscleGroup?: string, query: stringequipment?: stringoptionalJustGains equipment code that limits results to exercises using it. Omit to include all equipment; if the code is unknown, put the equipment name in query instead.
limit?: numberoptionalHow many matching exercises to return. Omit for 8; values above 25 return 25.
muscleGroup?: stringoptionalMuscle group code, for example CHEST. Omit to search all muscle groups.
query: stringrequiredExercise name to search, e.g. "bench press", "romanian deadlift".
search_foodsoutputSchema declaredSearch the cached food catalog and matching recent diary entries. This never waits on an external nutrition provider. Use only when the user asks to find or compare foods. For logging, call log_my_food directly with estimates instead. Results contain up to five identity-checked candidates and three possible variants; missing results do not prevent logging an estimate. Preserve brand and raw/cooked preparation.
Input
query: stringquery: stringrequiredFood name to find or compare, including brand and preparation when known.
search_workout_programsNo outputSchemaSearch the workout-program catalog. Returns paginated programs with title, description, total weeks/days, rating, creator, and a public link. Use when the user asks about available programs ('show me programs for hypertrophy', 'find a beginner program', 'what programs do you have'). Optional filters: search keyword, creatorId.
Input
creatorId?: string, page?: integer, pageSize?: integer, search?: stringcreatorId?: stringoptionalCreator profile ID that limits results to one creator, such as creatorProfile.creatorProfileId from get_my_profile for the user’s own programs. Omit to include every creator, including when only a creator’s name is known.
page?: integeroptionalPage of matching programs; 1 is the first. Omit for page 1.
pageSize?: integeroptionalPrograms per page. Omit for 10; values above 50 return 50.
search?: stringoptionalWords to look for in program titles and descriptions. Omit to list programs without a keyword filter.
set_my_program_engagementNo outputSchemaUpdate the CURRENT user's enrollment on a workout program. Use to start, abandon, or complete a program: 'start this program', 'I'm done with PPL', 'abandon the cut program'. Requires the program id (use search_workout_programs to find it). This only changes the user's enrollment status; it never charges, purchases or subscribes to anything. Returns the program ID, enrollment status, next workout, remaining workouts, progress and start/end dates.
Input
action: string, workoutProgramId: stringaction: stringrequiredWhat the user wants to do with this program: begin following it, stop following it, or mark it finished.
workoutProgramId: stringrequiredProgram ID returned by search_workout_programs or get_my_workout_programs.
show_workoutoutputSchema declaredDisplay a workout by its ID. Returns the workout ID, title, exercises and sets in an interactive preview card when supported.
Input
workoutId: stringworkoutId: stringrequiredThe UUID of the workout to display
summarize_my_weekNo outputSchemaBundle a one-call snapshot of the CURRENT user's recent training: count of workout logs in the last `days` (default 7), per-muscle-group recovery data, weight delta vs `days` ago, and the most recent log id. Use for "how was my week", "quick recap", "how am I doing". For HISTORICAL questions ('how was my week ending June 1, 2024'), pass `endDate` (ISO-8601), the window becomes (endDate - days, endDate) instead of anchoring to today. Saves the agent from chaining get_my_workout_logs + get_my_recovery_analytics + get_my_weight_history.
Input
days?: integer, endDate?: stringdays?: integeroptionalHow many days the recap covers, ending now or at endDate. Omit for 7; longer windows are cut to 60.
endDate?: stringoptionalOptional ISO-8601 anchor date, the window ends at this date instead of now. Use for retrospective summaries like 'how was my week ending Mar 30, 2024'.
update_my_profileNo outputSchemaPatch the CURRENT user's profile. Only the fields you supply are changed: bio, measurementSystem, userTimezone and autoStopAbandonedWorkoutsSeconds, plus birthDate, heightCm, gender, experienceLevel and fitnessGoals under privateMeta. Use when the user asks to change any of these. Confirm before destructive replacements (e.g., overwriting fitnessGoals).
Input
autoStopAbandonedWorkoutsSeconds?: integer, bio?: string, measurementSystem?: string, privateMeta?: object, userTimezone?: stringautoStopAbandonedWorkoutsSeconds?: integeroptionalHow long, in seconds, a started workout can go without updates before its timer pauses automatically. 0 turns this off. Omit to keep the current setting.
bio?: stringoptionalBio shown on the user’s public creator profile; replaces the current one. Omit to keep it.
measurementSystem?: stringoptionalUnits JustGains shows the user’s measurements in, such as weights and distances. Omit to keep the current setting.
privateMeta?: objectoptionaluserTimezone?: stringoptionalIANA timezone used for the user’s local dates, for example America/New_York.
update_workoutoutputSchema declaredUpdate an existing workout in the user's JustGains account. Provide the workoutId plus any of: new title, new description, or a replacement list of exercises. Call show_workout first if you need the current exercises before modifying them. Returns the workout ID, its title, the saved exercises and sets in a preview card, and the names of any exercises that could not be matched. If none of the supplied exercises match, the workout is left unchanged.
Input
description?: string, exercises?: array, title?: string, workoutId: stringdescription?: stringoptionalNew workout description. Omit to keep the current one.
exercises?: arrayoptionalIf provided, REPLACES the workout's exercise list.
title?: stringoptionalNew workout title. Omit to keep the current one.
workoutId: stringrequiredThe UUID of the workout to update.
Resources 3
Some details were sanitized for public display.
nutrition-widgetJustGains food diary
route-widgetRoute Created — Shows a generated route on a real map with its stats
workout-widgetShow a workout — Displays a workout in the preview editor
Resource templates 1
Some details were sanitized for public display.
earlier-widget-versionsEarlier JustGains card versions — Resolves widget URIs saved by older chats to the current card
Prompts 4
log_what_i_ateSaves a meal to your food diary from a plain description and shows the day so far.
Arguments
meal: anymeal: anyrequiredWhat you ate, e.g. two eggs and toast for breakfast
plan_todays_workoutA session built from what you trained this week, what has recovered and where you are in your program.
Arguments
equipment?: any, minutes?: anyequipment?: anyoptionalWhat you can use today, e.g. dumbbells only
minutes?: anyoptionalHow long you have, e.g. 45
review_my_weekSessions, muscle volume, streak, bodyweight and food over the last 7 days, against the 7 before.
Arguments No parameters
why_is_my_lift_stuckReads your history for one lift and says whether it has stalled, why, and what to change.
Arguments
exercise: anyexercise: anyrequiredThe lift, e.g. bench press