Skip to main content
Glama
Loopback Training Server

Loopback Training Server

update_plan

Change a training plan's status, dates, name, description, or metadata to mark it completed or abandoned, start an upcoming block, or adjust scheduling.

Instructions

Update a training plan.

Common uses: mark as completed/abandoned, start an upcoming block, update metadata, adjust dates.

Args: plan_id: UUID of the plan. name: New plan name. status: New status — "active", "upcoming", "completed", "archived" or "abandoned". Nothing promotes a plan on its start date, so starting an upcoming block is an explicit update_plan(status="active"). description: Updated description. metadata: Replacement metadata object (replaces entire metadata, not merged). end_date: New end date (YYYY-MM-DD).

Returns: The updated plan.

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": "update_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
statusNo
plan_idYes
end_dateNo
metadataNo
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.36

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must carry the whole behavioral load. It delivers the most important non-obvious trait — "Replacement metadata object (replaces entire metadata, not merged)" — which an agent could easily get wrong, and documents the legal status values. It omits what happens to already-scheduled workouts when dates shift, permission/validation constraints, and irreversibility, which matter for a mutation tool.

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 purpose and use cases, then an Args block and a one-line Returns — a clean, predictable structure. The parenthetical straddling three lines about upcoming blocks is slightly verbose but conveys a rule that is worth the space.

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 six-parameter mutation tool with no annotations and no output schema, the definition covers purpose, all parameters, the status lifecycle, and the return value. Remaining gaps are secondary effects — how date changes interact with scheduled workouts and whether completed/archived plans can still be modified.

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?

Schema description coverage is 0%, so the description is the only source of parameter meaning — and it documents all six, including the plan_id format (UUID), end_date format (YYYY-MM-DD), the full status enum list, and the replace-vs-merge semantics of metadata. The only gap is that it never says explicitly that omitted/null fields are left unchanged.

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?

"Update a training plan" states a specific verb and resource, and the "Common uses" line enumerates the concrete mutations this tool performs (status changes, metadata, dates). It does not name which sibling to use instead (e.g. clear_plan_schedule or update_plan_note), so differentiation relies on the agent's own reading of the sibling list.

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?

The "Common uses" list gives concrete situations to reach for this tool, and the note that "Nothing promotes a plan on its start date, so starting an upcoming block is an explicit update_plan(status='active')" is a genuinely non-obvious usage rule. It stops short of stating when NOT to use it or pointing at alternatives for adjacent edits.

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