Skip to main content
Glama

Save routine

save_routine
Destructive

Save a routine, a workout to do again, when the person asks for one or for a programme, one routine for each kind of training day; a suggestion alone is not a request. Find every exercise with list_exercises first. Leave a set's figures out so it follows what the person did last time, and give figures only for targets the routine should keep. A routine has no day: to put a session on a day, plan it with create_workout. With id this replaces the whole routine, so read it with list_routines and pass everything it should keep. Confirm only after success.

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>",
      "exercises": "<exercises>"
    },
    "name": "save_routine"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoOnly to replace one of the person's routines, as list_routines returned it; leave out for a new one
noteNoGuidance to train by, shown whenever the routine is started
titleYesWhat the routine is called, such as Push day; the workouts done with it take the same name
exercisesYesThe exercises in the order they are done
supersetsNoNames and rests for supersets; one an exercise points at without listing it here is made with neither

Output Schema

NameRequiredDescriptionDefault
idYes
kindYes
noteYes
titleYes
exercisesYes
supersetsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field 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"
      +}
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only flag destructiveHint=true; the description explains exactly what gets destroyed — "with id this replaces the whole routine" — and what the agent must do about it (read with list_routines and pass everything to keep). It also discloses the silent default that an omitted set's figures inherit last performance, and prescribes the workflow "Confirm only after success," which the annotations cannot convey.

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 trigger come first, then prerequisites, then destructive semantics, then confirmation — a sensible order with no filler sentences. The phrasing is dense, semicolon-chained prose that occasionally packs two rules into one clause, costing a little readability against a shorter bulleted form.

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 destructive, nested-structure write tool with an output schema (so returns need no explanation), the description still covers the pieces an agent must know: how to obtain exercise ids, when the tool should and should not fire, the replace-whole-object hazard with its required read-first protocol, and the post-success confirmation rule. Nothing essential to calling it correctly is missing.

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 coverage is 100%, so a 3 is the baseline; the description earns above that by giving the omission-as-default semantics for set figures ("leave a set's figures out so it follows what the person did last time, and give figures only for targets") and by constraining id to a value as returned by list_routines. It does not add meaning for note, supersets or alternatives, which are left entirely to the schema.

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?

Opens with a specific verb+resource ("Save a routine") and immediately defines the resource in user terms ("a workout to do again"), then contrasts it with the closely related create_workout ("A routine has no day"). An agent can distinguish this from save_exercise, create_workout and list_routines without opening any 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 an explicit trigger ("when the person asks for one or for a programme"), an explicit exclusion ("a suggestion alone is not a request"), a cardinality rule ("one routine for each kind of training day"), and a named alternative for the adjacent need ("to put a session on a day, plan it with create_workout"). It also states prerequisites: find exercises with list_exercises, read the routine with list_routines before replacing.

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