Skip to main content
Glama

Validate a workout

validate_workout
Read-onlyIdempotent

Check a workout against what the activity supports, without building it. Returns every error and warning, each naming the step it is about. Unverified combinations warn rather than fail.

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": {
      "activity": "<activity>",
      "blocks": "<blocks>"
    },
    "name": "validate_workout"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoshown in the Workout app and on the link, e.g. "Norwegian 4×4"; always give one, short enough for the Watch
blocksYes
warmupNo
activityYescall list_activities for what each one supports
cooldownNo
locationNoindoor changes what a sport offers: a stationary bike has no speed or distance

Output Schema

NameRequiredDescriptionDefault
validYes
errorsYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and non-open-world, so safety is covered. The description adds real value beyond that: it reports every error and warning rather than stopping at the first, each is attributed to a step, and unverified combinations warn instead of failing — an important severity distinction for interpreting results. It does not discuss limits or how warnings should be resolved, keeping this at a solid 3 rather than higher.

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?

Three short sentences, front-loaded with the core action, then the return shape, then the severity rule. Every sentence carries distinct information with 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 deeply nested workout schema, the description covers purpose, validation semantics, error/warning severity and step attribution, and an output schema exists to explain returns. What is left implicit is the workflow relationship to create_workout (whether passing validation is required or sufficient), which an agent would want when composing a plan.

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?

The description adds no direct parameter detail, but 'against what the activity supports' conveys the key semantic that the activity value constrains which blocks are legal, which is genuinely useful. With only 50% schema description coverage across 6 nested parameters, more compensation was possible; the schema's own nested descriptions carry most of the burden.

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 (check a workout), the dimension it validates against (what the activity supports), and a scope constraint ('without building it') that separates it from create_workout. An agent can tell what it does and what it does not do 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 Guidelines4/5

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

'Without building it' clearly frames the situation that selects this tool over create_workout, and the warn-vs-fail sentence tells the agent how to act on the result. It stops short of naming alternatives explicitly or stating a recommended order (validate then create), so it is clear context rather than full when/when-not 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.