Skip to main content
Glama

Suggest a workout

propose_workout
Idempotent

Suggest a workout for the person to approve in the Metrics Nest app. This only leaves a suggestion: nothing is planned until they approve it on their phone, where they can also edit or reject it, and no workout is ever created, changed or deleted here. Call list_exercises first and give each exercise its exercise_id from there whenever it is one they have done; for one they have not, take its exercise_id from list_exercise_catalog when the app has it, and otherwise leave exercise_id out and give the name. Weights are kg. Make up a new idempotency_key for each suggestion and send the same one only when retrying this exact call: a retry answers the suggestion already made instead of making a second. Works only where the person allowed this connection to suggest workouts (get_profile says can_propose). list_proposals shows what became of each suggestion.

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": {
      "idempotency_key": "<idempotency_key>",
      "title": "<title>",
      "planned_for": "<planned_for>",
      "exercises": "<exercises>"
    },
    "name": "propose_workout"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesWhat the session is, as the person will see it: "Upper body A".
clientNoFor a coach: a client id from list_clients, to read that client. Omitted: your own account.
activityNostrength (default), run, ride, hike, swim, row, yoga, hiit or other.
exercisesYesIn the order they are to be done.
rationaleNoWhy this session, in a few sentences the person reads before approving.
planned_forYesThe day it is meant for, in the account time zone: today up to 28 days ahead.
idempotency_keyYesUnique per suggestion; the same key again returns the first suggestion instead of a duplicate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false and idempotentHint=true, but the description adds the key behavioral facts: nothing is planned until phone approval, the person can edit or reject there, and no workout is ever created/changed/deleted by this call. It also explains idempotency semantics concretely (a retry returns the existing suggestion rather than duplicating), which the annotation alone 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 the "suggestion only" clarification are front-loaded, then prerequisites, then parameter rules — a sensible order. Some sentences are long and run-on (the exercise_id sourcing sentence), costing a bit of readability, but almost every clause carries actionable information.

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 7 parameters, a nested exercises array, no output schema, and mutation-adjacent semantics, the description covers what an agent needs: sequencing, permissions, units, id sourcing, idempotency, and where to check results. Nothing material is left for the caller to guess.

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 coverage is 100%, yet the description still adds real meaning: weights are in kg, exercise_id must come from list_exercises (or the catalog for new exercises) and be omitted otherwise, and idempotency_key must be freshly generated per distinct suggestion and reused only on retry. That is guidance the schema's field descriptions do not fully spell out.

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 ("Suggest a workout for the person to approve") and immediately clarifies the artifact is a proposal, not a created workout. That framing distinguishes it from siblings like propose_saved_workout and propose_removing_saved_workout without needing their descriptions.

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 prerequisite chain: call list_exercises first, fall back to list_exercise_catalog when the exercise is new, otherwise omit exercise_id and supply a name. It also states the permission gate (only works where get_profile says can_propose) and points to list_proposals for follow-up on outcomes.

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