Skip to main content
Glama

Almost Fire

Swap an exercise

swap_exercise
Idempotent

Use this when the person asks to swap the exercise in a session. Give the sessionId and slot, and the exerciseKey they chose, or a same-movement one from list_alternatives when they leave it to you. The new exercise brings its own rules, and loads never carry over between exercises. untilWeek null swaps that session only; a week keeps the swap for that day through that program week. Comes back with an Undo. Do not use to move a session; use move_session.

Input Schema

NameRequiredDescriptionDefault
slotYes
sessionIdYes
untilWeekNo
exerciseKeyYes
idempotencyKeyYesA new random id for this change (a UUID). Send the same one again only to retry this exact change.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare the mutation/idempotency/safety profile, and the description adds real behavioral context on top: loads never carry over between exercises, the new exercise brings its own rules, an undo is returned, and untilWeek determines whether the swap is one-off or persists through a program week. None of that is derivable from the annotations or schema.

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 trigger condition is front-loaded and the remaining sentences each carry a distinct load-bearing fact (replacement source, load-carry-over, untilWeek scope, undo, exclusion). A few phrasings are terse to the point of ambiguity, notably 'brings its own rules,' but there is no filler.

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

Completeness4/5

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

For a four-required-parameter mutation with an output schema, the description covers sourcing the exercise, durability scope, side effects, reversibility, and sibling exclusion. The dual meaning of 'slot' and the exact effect of 'its own rules' are the only gaps an agent might stumble on.

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?

With only 20% schema description coverage, the description carries must of the burden and does so for exerciseKey and especially untilWeek, spelling out the null-versus-week durability semantics that the bare schema does not convey. The 'slot' parameter remains unexplained in both places, which keeps this short of a 5.

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 opens with a specific verb and resource plus the triggering condition: swapping an exercise in a session. It clearly distinguishes itself from list_alternatives (used to pick the replacement) and move_session (for relocating sessions), so an agent can route correctly without opening a 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?

It states when to use the tool, the two paths for choosing the replacement (user-chosen exerciseKey or a same-movement one from list_alternatives), and an explicit exclusion with the correct alternative: 'Do not use to move a session; use move_session.' That is about as complete as routing guidance gets.

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