Skip to main content
Glama

Roarer

Get program

get_program
Read-onlyIdempotent

Returns a program's structure by week: workouts and exercises with planned sets, repetitions, weight and supersets. Takes the program id and optionally one week number.

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": {
      "program_id": "<program_id>"
    },
    "name": "get_program"
  }
}

Input Schema

NameRequiredDescriptionDefault
weekNoReturn only this week of the program, 1 or higher.
program_idYes

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
weekNo
levelNo
is_activeYes
trainingsNo
is_catalogYes
descriptionNo
weeks_countNo
weight_unitYes
duration_minutesNo

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, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is fully covered. The description adds genuine value by describing the shape of the returned structure (week-grouped workouts and exercises with planned sets, reps, weight, supersets), but says nothing about error behavior for an unknown program_id or whether an omitted week returns the full program.

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?

Two tight sentences, front-loaded with the return shape before the parameter note. The second sentence largely restates the schema, so it is slightly redundant, but nothing is padded or ambiguous.

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 two-parameter read tool with an output schema and full safety annotations, the description covers what is returned and how week scopes it. The remaining gaps (explicit default behavior when week is null, not-found handling) are minor given the structured data already supplied.

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?

Schema coverage is 50%: week is documented in the schema (1+, max 520) while program_id is only typed as a uuid. The description restates both parameters at a high level and implies that omitting week yields the entire program, which is mild added meaning, but it adds no format or constraint detail beyond the schema.

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?

"Returns a program's structure by week" gives a specific verb and resource, and the follow-on clause enumerates the payload (workouts, exercises, sets, reps, weight, supersets). It is clear what the tool returns, but it never distinguishes itself from siblings like get_catalog_program or list_my_programs, leaving the agent to infer which program-retrieval tool is which.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no named alternative among the many sibling tools. The phrase "optionally one week number" hints at a filtering mode, but the agent gets no rule for choosing this over get_workout, get_next_workout, or list_my_programs.

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