Skip to main content
Glama
Loopback Training Server

Loopback Training Server

get_plan

Fetch a training plan by ID to review its schedule, status, metadata, and session progress, plus whether it is ready to wrap up.

Instructions

Get a training plan by ID, including its metadata.

Args: plan_id: UUID of the plan.

Returns: Plan object with name, activity_type, status, dates, description, metadata, plus two computed fields: - progress: session counts (total/completed/skipped/remaining) — queued Apple Watch runs, plus scheduled strength sessions for plans with a recurring schedule. A strength session counts as completed when a synced Hevy workout landed on its date, skipped when the date passed with no match, remaining otherwise. (The runs_* field names predate strength support; they count sessions of either kind.) - finishable: true when an active plan looks done (window passed, or every session retired with ≥1 completed and no end date still ahead — a plan queued a week at a time is not done each time its queue runs empty). Nothing auto-completes; if true, offer the athlete a wrap-up (complete_plan on the dashboard or update_plan status="completed").

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": {
      "plan_id": "<plan_id>"
    },
    "name": "get_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
plan_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.36

TDQS

A3.7/5.0
Behavior4/5

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

No annotations, so the description carries the burden and does a lot: it explains the computed progress semantics (how completed/skipped/remaining are derived from Apple Watch runs and Hevy workouts), the counterintuitive runs_* naming, and the finishable condition with its edge case. It also clarifies that nothing auto-completes — important behavior. Missing: pagination, error behavior for unknown IDs, and read-only/safety framing, but overall strong.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and well-sectioned via Args/Returns, but the progress/finishable explanation is verbose and the parenthetical asides make it dense. Most content earns its place, yet the finishable sentence is convoluted.

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?

No output schema, so the Returns section appropriately documents the return shape including computed fields and their derivation rules. Complete enough for an agent to interpret the response, though error/not-found behavior isn't described.

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

Parameters4/5

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

Only one parameter with 0% schema coverage; the description states plan_id is a UUID of the plan, which is the essential missing detail. The schema abandons description, but the only param is fully covered by the Args section.

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: retrieves a training plan by its UUID, including metadata. It is distinguishable from siblings like get_plan_schedule or get_plan_workouts, though it does not explicitly say when to prefer those narrower siblings.

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?

Usage is implied by the read-by-ID purpose, and there is a single embedded usage instruction ('if true, offer the athlete a wrap-up'). However there's no explicit when-to-use vs get_plan_context/get_plan_schedule guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.