Skip to main content
Glama

Log or plan workout

create_workout

Save a workout the person did, or a plan they asked to save: a session of exercises, each with its sets. Find every exercise with list_exercises first and pass its id. Use state logged with what was done, and planned only when the person asks for a plan to be saved, since a suggestion alone is not a request. To log a workout that was planned, use update_workout instead of creating another. Weights are always kilograms; read get_targets for the person's units and convert before saving and when talking. If the weight, reps or number of sets is unclear for a logged workout, ask one short question first, without asking again for what the person already said. Before planning, read list_workouts for what they did lately and list_routines for how they train, start from weights they have lifted, and never raise a weight they did not ask to raise. Splot holds strength training: weights, body-weight exercises and holds. A run, a ride or a match has no exercise yet, so say so rather than forcing it into one. Say the workout is saved only after this returns its id; give every save its own requestId, and after an error or timeout try again with the same one.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "title": "<title>",
      "startsAt": "<startsAt>",
      "timezone": "<timezone>",
      "exercises": "<exercises>"
    },
    "name": "create_workout"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoFor a plan, guidance to train by, shown while training and credited to you; for a logged workout, what the person wants kept about it
placeNoWhere it is done: a place id from list_places; leave out when not known
stateNologged for a workout done; planned only for a plan the person asked to savelogged
titleYesWhat the session is called, such as Push day or Legs
endsAtNoWhen it ended, with its UTC offset, so its duration reads; leave out when not known, and for a plan
startsAtYesWhen it started, or for a plan when it will, with its UTC offset
timezoneYesThe IANA timezone where the workout is done, such as America/New_York
exercisesYesThe exercises in the order they are done
requestIdNoA short id of your own for this save, different for every save, such as dinner-2026-11-22. Send the same one again when trying after an error or a timeout: Splot returns what it already saved rather than saving it twice
supersetsNoNames and rests for supersets; one an exercise points at without listing it here is made with neither

Output Schema

NameRequiredDescriptionDefault
idYes
dayYes
noteYes
timeYes
stateYes
titleYes
endsAtYes
sourceYes
startsAtYes
timezoneYes
exercisesYes
supersetsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / requestId
      Added value: +{
      +  "description": "A short id of your own for this save, different for every save, such as dinner-2026-11-22. Send the same one again when trying after an error or a timeout: Splot returns what it already saved rather than saving it twice",
      +  "maxLength": 100,
      +  "minLength": 4,
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / exercises / items / properties / alternatives
      Added value: +{
      +  "description": "Up to five exercise ids the person could do instead, such as when a machine is taken, best first; get_exercise_relations suggests them for a place",
      +  "items": {
      +    "maxLength": 100,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 5,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / place
      Added value: +{
      +  "description": "Where it is done: a place id from list_places; leave out when not known",
      +  "maxLength": 100,
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. Added

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare it is a non-read-only, non-destructive, closed-world write. The description goes well beyond that: it discloses the idempotency contract (unique requestId per save, reuse the same one on retry so Splot returns what it already saved), that success must not be claimed until an id is returned, that weights are stored in kilograms regardless of the person's units, and that ambiguous weight/reps/sets should trigger one short clarifying question rather than a guess.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the default action are front-loaded, and nearly every clause is an operational instruction rather than filler. It is still a dense, undivided block of roughly ten sentences, and a few items (kilograms, requestId retry semantics) restate what the schema already documents at length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter mutation with nested exercises and sets, the description covers the decisions that actually cause bad calls: mode selection, id discovery, unit conversion, clarification discipline, and retry safety. An output schema exists, so the absence of return-value explanation is not a gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already carries the parameter detail and the baseline is 3. The description still adds cross-parameter meaning the schema cannot: where exercise ids come from (list_exercises/save_exercise), that get_targets is the authoritative source for units before converting to kilograms, and the decision rule behind the state enum. It stops short of adding anything about the remaining parameters (supersets, rest, place, note), which the schema handles alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening names a specific verb and resource plus its two modes: 'Save a workout the person did, or a plan they asked to save: a session of exercises, each with its sets.' It also explicitly separates itself from update_workout, so an agent can route correctly without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use rules for state=logged vs state=planned ('planned only when the person asks for a plan to be saved, since a suggestion alone is not a request') and names the alternative for the adjacent case ('To log a workout that was planned, use update_workout instead of creating another'). It also lists prerequisites (list_exercises for ids, get_targets for units, list_workouts and list_routines before planning) and an out-of-scope exclusion: runs, rides and matches should be declined rather than forced in.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources