Skip to main content
Glama

Save a routine

trainrec_save_routine

Creates a routine (a reusable workout plan the person starts from the app), or replaces one given its id and version. Same shape as a workout, without a day. The app calls routines templates. folder puts it in a folder of that name on their Templates page; left out, an edited routine stays where it was.

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

Input Schema

NameRequiredDescriptionDefault
idNo
nameYes
unitNoUnit for every weight in this call. Defaults to the person's own unit.
notesNo
folderNo
summaryNo
versionNo
exercisesYesIn the order performed, by exercise id (built-in or custom).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / folder
      Added value: +{
      +  "maxLength": 60,
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare the mutation-and-safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false), so the bar is lower. The description adds real context by disclosing the dual create/replace mode and that an edited routine with no folder stays in place. However, it never says what a replace overwrites on the existing routine or how version is validated, which are the behaviors an agent most needs before mutating.

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

Conciseness5/5

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

Four short sentences, front-loaded with the primary create/replace behavior, and each subsequent sentence adds a distinct fact (shape versus workout, terminology alias, folder placement). No filler or repeated schema content.

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

Completeness3/5

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

For an 8-parameter mutating tool with no output schema and low schema coverage, the description covers the headline behavior and the folder edge case but leaves the replace contract underspecified (what is retained, what version must match, what the call returns). Adequate to avoid misuse, not complete.

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

Parameters3/5

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

Schema description coverage is only 25%, so the description must compensate and it only partly does: folder gets clear meaning ('a folder of that name on their Templates page', and the omitted case), and id/version are framed as the replace trigger. name, notes, summary and version semantics remain undocumented in both places, so half the top-level surface is still opaque.

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 description names a specific verb pair and resource: creates a routine, or replaces one given its id and version. It then disambiguates the domain ('a reusable workout plan the person starts from the app', 'The app calls routines templates') and separates it from a workout ('Same shape as a workout, without a day'), so an agent can tell it apart from trainrec_save_workout 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 Guidelines4/5

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

It makes the create-versus-replace decision explicit by tying replacement to supplying id and version, and explains when folder applies versus what happens when it is omitted. It does not name a sibling alternative or state exclusions, which keeps it just below a 5.

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