intervals-icu-planner-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| INTERVALS_ICU_API_KEY | Yes | Your intervals.icu API key (intervals.icu → Settings → Developer Settings → API key). Read from the INTERVALS_ICU_API_KEY environment variable, or from a .env file in the working directory. It is never logged or printed. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Plan-level operations on the user's intervals.icu calendar.
Safety rules: push_plan and delete_plan default to dry_run=true and return a calendar diff. Show that diff to the user and get their explicit OK before calling again with dry_run=false. These tools only ever modify events whose uid was created by a plan (planner-<plan_id>-w-); nothing else on the calendar is touched.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| push_planA | Push a whole training plan (plan.yaml + .zwo workouts) to the intervals.icu calendar. Validates the plan and every workout first, then compares it with the calendar and returns a per-date diff: + new, ~ updated, = unchanged, ! stale. With dry_run=true (the default) nothing is written. Only call with dry_run=false after the user has seen the diff and agreed. Re-pushing is safe: events are matched by uid and updated in place. Args: plan_yaml: Path to the plan.yaml file. start_date: Optional YYYY-MM-DD Monday for week 1, overriding the plan's start. dry_run: true = show the diff only; false = write new and updated events. |
| get_plannedA | List planned events (workouts, notes, ...) on the calendar between two dates. Args: oldest: First day, YYYY-MM-DD. newest: Last day, YYYY-MM-DD (inclusive). plan_id: Optional plan id; only list events created by that plan. |
| delete_planA | Remove every event a plan created, and nothing else. Only events whose uid is exactly planner-<plan_id>-w- are selected. With dry_run=true (the default) it lists them and deletes nothing. Only call with dry_run=false after the user has seen the list and agreed. Args:
plan_id: The plan's id (the |
| get_fitnessB | Daily fitness (CTL), fatigue (ATL), Form (TSB = CTL - ATL) and Form as % of CTL. Args: oldest: First day, YYYY-MM-DD. newest: Last day, YYYY-MM-DD (inclusive). |
| get_activitiesA | Completed activities between two dates: type, duration, distance, training load, average and normalized power, intensity factor and average heart rate. Activities that reached intervals.icu through Strava can't be read via the API and are listed without details. Args: oldest: First day, YYYY-MM-DD. newest: Last day, YYYY-MM-DD (inclusive). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool targets a distinct resource and action: fitness metrics, planned calendar events, completed activities, plan push, and plan deletion. get_planned vs get_activities is the closest pair but the descriptions make the planned-vs-completed distinction explicit and unambiguous.
All five names follow a strict verb_noun pattern (get_*, push_plan, delete_plan) in snake_case with no deviations. The verbs accurately signal read vs. write semantics.
Five tools is well-scoped for a training-plan planner: three read tools covering fitness, planned work, and completed work, plus push/delete for the plan lifecycle. No tool feels redundant or missing at the surface level.
The plan lifecycle is covered (push validates and updates in place, delete, list), and both forward-looking and retrospective data reads exist. Minor gaps remain: no tool to inspect individual .zwo workouts or detailed activity streams/laps, and no way to read or edit single calendar events outside a plan.