Skip to main content
Glama

Simple Muscle

Read requested training analysis

get_analysis_context
Read-only

Use this when a workout.completed or analysis.requested event arrives. Read the request_id to retrieve the account-owned completed session, previous matching workouts and week summary. Follow analysisBrief for the selected scope: overall progress and muscle-group coverage for history, specific exercise progression for a workout, or only the selected exercise over time. Follow next_cursor, report missing or truncated history, and reply with the analysis in the receiving AI chat so the user can ask follow-up questions. Use get_session for full set details and get_workout for current targets, which are not historical goal snapshots. No save call is required. This tool never edits workouts.

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": {
      "request_id": "<request_id>"
    },
    "name": "get_analysis_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNo
request_idYes

Output Schema

NameRequiredDescriptionDefault
noteYes
weekYes
scopeYes
targetYes
sessionsYes
truncatedYes
exercise_idYes
next_cursorYes
analysisBriefYes
previousWorkoutsYes

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=true, destructiveHint=false and openWorldHint=false, so safety is covered structurally; the description still adds real value by disclosing ownership scoping ("account-owned"), cursor following, and that truncated or missing history must be reported. It stops short of stating error behavior for an invalid or expired request_id, and "report missing or truncated history" is left vague about how the agent should surface that. Solid but not full marks.

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-loaded with the trigger condition, then the retrieval, then the alternatives — a sensible order. Some sentences are long and pile on multiple imperatives, and the final two clauses ("No save call is required. This tool never edits workouts.") restate the same non-mutation point, but little is genuinely wasted.

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?

An output schema exists, so return values need not be re-explained, and the description covers trigger, scope selection via analysisBrief, pagination, and the follow-up loop. Remaining gaps are the cursor input's semantics and failure/error handling for bad request_ids.

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%, so the description must carry the parameter meaning and it largely does not. It explains what request_id selects but says nothing about the `cursor` integer input (bounds 0-100000), and "Follow next_cursor" names a different, presumably output-side field, which risks the agent passing a wrong value or ignoring the input cursor entirely.

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 — read the request_id to retrieve the account-owned completed session, previous matching workouts and week summary — and explicitly delineates it from siblings ("Use get_session for full set details and get_workout for current targets"). An agent can tell this apart from the other read tools 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?

Gives an explicit trigger condition ("when a workout.completed or analysis.requested event arrives"), names the two competing tools and what they cover instead, and enumerates the scope variants driven by analysisBrief. It even prescribes the follow-up action (reply in the receiving chat, no save call required).

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