Skip to main content
Glama

Generate workout

generate_workout

Generates an AI workout via Content API. Use when the user wants to create a personalized workout on-the-fly. Returns workout structure (not persisted to team library by default).

Input Schema

NameRequiredDescriptionDefault
localeNo
team_idNo
difficultyNo
category_idYes
duration_maxNo
duration_minNo
end_user_ageNo
end_user_genderNo
exercise_sourcesNo
end_user_goal_idsNo
user_requirementsNo
end_user_fitness_levelsNo

Output Schema

NameRequiredDescriptionDefault
_viewTypeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds useful context that output is AI-generated and non-persisted, but says nothing about generation latency, cost/quota via the Content API, or whether team_id changes the persistence outcome — a real ambiguity given the parameter exists.

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?

Three short sentences that lead with the action and end with the persistence caveat — no filler. It could be tightened slightly by merging the use-case and persistence clauses, but nothing here is wasted.

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

Completeness3/5

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

An output schema exists, so return shape needn't be described, and the persistence caveat is a valuable addition. However, with 12 mostly-optional inputs and zero schema documentation, an agent gets no help choosing which optional parameters to populate or when the defaults are appropriate.

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

Parameters2/5

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

Schema description coverage is 0% across 12 parameters, and the description supplies no parameter meaning at all. It does not explain the duration_min/duration_max pairing, what exercise_sources control, or how end_user_* fields shape the result, so the burden of low coverage is not met.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Generates an AI workout via Content API') and identifies the backend. It also says the output is returned but not persisted by default, which implicitly separates it from create_workout. It never names an alternative sibling outright, so sibling differentiation is only partial.

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?

'Use when the user wants to create a personalized workout on-the-fly' gives a usage condition, and 'not persisted by default' hints at the distinction from create_workout. But there is no explicit when-not, no mention of recommend_workouts or generate_program as alternatives, and no guidance for the mandatory category_id lookup path.

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