Skip to main content
Glama
Loopback Training Server

Loopback Training Server

validate_plan

Checks an athlete's upcoming training schedule against plan guardrails and race date, flagging numeric soundness issues to resolve before presenting the plan as final.

Instructions

Deterministically check the athlete's upcoming schedule for soundness, using this plan's context (guardrails, race date from metadata).

Run this after queueing or reshuffling a plan's workouts, and before presenting a plan to the athlete as final. It is pure arithmetic over the queue + the athlete's real workout history — no LLM judgment — checking the coaching playbook's numeric invariants: weekly ramp vs the actual 4-week baseline, missing down weeks, long-run share, back-to-back hard days, taper shape before race_date, and the plan's own declared guardrails.

Interpreting results: critical warnings should be resolved (adjust the schedule and re-queue) or explicitly signed off by the athlete; warn items should at least be mentioned; info is context. estimated: true means the numbers rest on a pace assumption (time-based steps without a pace alert). Warnings never block anything.

Note strength_collision (info) fires for a hard run the day after a strength session — an interference heads-up, deliberately broader than the calendar's conflict flag, which only marks two sessions sharing a date. A day-after warning here with conflict=false on the calendar is consistent, not contradictory.

Args: plan_id: UUID of the plan whose context (guardrails, race date) frames the check. The schedule itself is always the athlete's full upcoming queue — runs from other plans count too.

Returns: {plan_id, warnings[], weeks[]} — warnings have {code, severity, message, week, data, estimated}; weeks summarize each planned week (planned_km, actual_km, total_km, run_days, hard_days, longest_km, baseline_km, ratio).

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

Input Schema

NameRequiredDescriptionDefault
plan_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.36

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it declares the check is pure arithmetic with 'no LLM judgment', is deterministic, non-blocking ('warnings never block anything'), and explains what estimated:true means. It also pre-empts a likely false-positive by explaining why strength_collision is deliberately broader than the calendar's conflict flag.

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?

Well structured with args, returns, and interpretation broken out, and the purpose plus trigger are front-loaded. The strength_collision paragraph is the longest block and runs slightly long, though it earns its place by preventing a specific misreading of conflicting signals.

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

Completeness5/5

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

No output schema exists, yet the description fully documents the return shape ({plan_id, warnings[], weeks[]}) down to the fields inside warnings and weekly summaries. For a single-parameter read/analysis tool with no annotations, nothing an agent needs in order to call or interpret it is missing.

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 coverage is 0%, so the description must compensate, and it does for plan_id — UUID type plus the non-obvious semantics that it only frames the context while the checked schedule is the athlete's entire upcoming queue including runs from other plans. That cross-plan scoping is a genuinely valuable clarification the schema cannot convey.

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 object ('deterministically check the athlete's upcoming schedule for soundness') and immediately scopes it to 'using this plan's context'. The enumerated invariants (weekly ramp, long-run share, taper shape before race_date) make it unmistakable versus siblings like get_plan_schedule or get_plan_context, which only retrieve rather than evaluate.

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 ('after queueing or reshuffling... and before presenting a plan to the athlete as final') rather than a vague 'use when needed'. It also supplies post-call guidance — how to act on critical/warn/info severities and that warnings never block — which removes any ambiguity about escalation.

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