Skip to main content
Glama
sla1k
by sla1k

smartgym_get_routine

Read-only

Fetch a workout routine by name or ID and return its warmup, main, and cooldown exercises with planned sets and recent session history for review or editing.

Instructions

Get a routine split into warmup, main and cooldown sections.

routine is a name (case-insensitive, partial allowed) or id. Each exercise shows its exercise_id (what the edit tools take), rest, note, planned template sets, and up to history_depth recent sessions (reps + weight_kg; 0.0 = bodyweight) with the latest session's top set and total volume.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
routineYes
history_depthNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysYes
goalYes
mainYes
nameYes
noteYes
warmupYes
archivedYes
cooldownYes
identifierYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description goes further by disclosing the sectioned return shape, the meaning of history_depth, and the encoding convention 0.0 = bodyweight, which are genuine behavioral details beyond the annotations.

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?

The purpose is front-loaded in the first sentence and parameter semantics follow compactly. It is slightly dense in the final clause listing returned fields, but no sentence is wasted.

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?

With an output schema present, the description need not restate the full return structure, yet it supplies the parameter semantics and the bodyweight/history_depth conventions that the schema leaves undocumented. Nothing needed to invoke it correctly is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must carry both parameters, and it does: `routine` is explained as a case-insensitive, partial-match name or an id, and `history_depth` is tied to how many recent sessions are returned. Both parameters get meaning the bare schema lacks.

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?

States a specific verb and resource ('Get a routine') and immediately scopes the output as a warmup/main/cooldown split, which distinguishes it from the sibling smartgym_list_routines. An agent can tell this is the single-routine detail tool without opening the schema.

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

Usage Guidelines3/5

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

Usage is implied: it accepts a name or id and returns detail, so it is clearly the fetch-detail call. However, no explicit when-to-use versus smartgym_list_routines or the edit tools is given, and no exclusions are stated.

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