Skip to main content
Glama
This connector has been deprecated

Replaced by Goal Race.

This page moved. Goal Race is now listed under its official MCP registry name, com.goalrace/goal-race.

Put a training plan on the calendar

add_training_plan
Idempotent

A whole plan from the OCR Races training-plan library on the user's calendar in one call, every session dated, instead of adding them one by one. mode 'list' (the default, no other input) returns the plans with goal, weeks and sessions a week. mode 'install' takes plan_slug and either race_date (the plan's last week is race week; sessions after race day are dropped) or start_monday (a Monday, this week or later). Installing the same plan again replaces its untouched sessions; completed ones stay. Returns the first week and how many sessions were written. All dates are the user's local calendar dates (YYYY-MM-DD) in their own time zone. Requires signing in.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "add_training_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo'list' to see the plans (default), 'install' to put one on the calendar.
plan_slugNoplan_slug from mode 'list'. Required for 'install'.
race_dateNoRace day, YYYY-MM-DD. The plan ends on that week. Use this when the user has a goal race.
start_mondayNoFirst Monday of the plan, YYYY-MM-DD. Use this when there is no race date, or to start earlier than race_date would.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations it discloses the important behaviors: reinstallation replaces untouched sessions while completed ones persist (clarifying the idempotentHint), sessions after race day are dropped, start_monday must be a Monday this week or later, dates are the user's local time zone, and sign-in is required. It also describes what is returned, all of which annotations alone do not convey.

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

Conciseness5/5

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

The bulk-installation benefit and the default 'list' mode are front-loaded, followed by install requirements and side effects. Every sentence carries operational information — no filler, no repetition of the schema.

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?

There is no output schema, but the description states what is returned (first week plus session count, or plan list with goal/weeks/sessions per week), and it covers auth, date conventions, and replacement semantics. For a four-parameter, annotation-covered tool this is complete.

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

Parameters5/5

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

Although schema coverage is already 100%, the description adds semantics the schema lacks: race_date defines the plan's final/week-of-race week and prunes later sessions, start_monday is constrained to a Monday on or after this week, and plan_slug's value comes from the 'list' mode results. This goes well past restating field descriptions.

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?

The opening clause names a specific verb and resource — pulling a whole plan from the OCR Races training-plan library onto the user's calendar — and contrasts it with the one-by-one alternative (add_sessions-style behavior). An agent can immediately tell this is bulk plan installation rather than single-session creation.

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?

It clearly states the two modes, which is the default, and when to prefer race_date versus start_monday, but it never explicitly names the sibling tool it replaces ('instead of adding them one by one' implies add_sessions without naming it). Usage context is strong but routing guidance to named alternatives is left implicit.

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