Skip to main content
Glama

Move an exercise's history

trainrec_move_exercise

Moves every set logged or planned under one exercise to another, in all their workouts and routines, when it was logged under the wrong one: a plate-loaded hack squat logged as Hack Squat (Machine), a dumbbell press logged as the barbell one. Both must log the same things (weight and reps, say). The sets are not changed. baseWeight, in the person's unit, sets what the new exercise's sled or bar weighs empty (plate-loaded and Smith only). One step to undo in the app.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "trainrec_move_exercise"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesExercise id to move them to.
fromYesExercise id the sets are under now (list_exercises).
baseWeightNoThe new exercise's sled or bar, empty, in the person's unit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: sets themselves are not modified, the change spans all workouts and routines, and it is 'one step to undo in the app' — clarifying reversibility despite the move semantics. It also scopes baseWeight to plate-loaded and Smith equipment only, which the annotations never hint at.

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?

Front-loads what is moved and why, then constraints, then the baseWeight caveat, then undoability — a logical order with no filler. Sentences are dense and slightly run-on, but every clause carries information.

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 mutation tool with no output schema, it covers scope, preconditions, side-effect boundaries, and reversibility, which is most of what an agent needs. It leaves minor gaps: whether an incompatible pair fails outright versus partially, and what confirmation/response to expect.

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 the baseline is 3; the description earns above baseline by explaining that baseWeight means the empty sled/bar weight in the person's own unit and applies only to plate-loaded/Smith setups, and by pointing 'from' at list_exercises for id lookup.

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 (moves) and resource (every set logged or planned under one exercise) with scope (all workouts and routines). The two concrete misuse examples (hack squat, dumbbell vs barbell press) make the intent unmistakable and separate it from delete/merge siblings.

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?

Gives a clear trigger condition ('when it was logged under the wrong one') and an eligibility constraint ('Both must log the same things (weight and reps, say)'). It does not name an explicit alternative tool for the case where the exercises are incompatible, so it stops short of full routing guidance.

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