Skip to main content
Glama

push_plan

Idempotent

Validate a YAML/ZWO training plan, preview per-date calendar changes against intervals.icu, and write approved new or updated events using dry-run first.

Instructions

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.

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_yaml": "<plan_yaml>"
    },
    "name": "push_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
plan_yamlYes
start_dateNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare idempotentHint and destructiveHint=false, but the description adds the mechanism: validation of plan and every workout happens first, a per-date diff is returned with a legend (+ new, ~ updated, = unchanged, ! stale), nothing is written under dry_run, and re-pushes match events by uid and update in place. That explains why the idempotency claim holds, which the annotation alone does not.

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 the action, then behavior, then the safety gate, then args. Slightly long, and the dry_run default is restated from the schema, but the diff legend and the uid-matching note both earn their space.

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?

For a plan-level write tool with an output schema, the description covers validation, diff output shape, write semantics, and the user-approval gate, so an agent could call it correctly without further context.

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?

Schema coverage is 0%, so the description carries the full burden and does: plan_yaml as the path to the plan file, start_date as a YYYY-MM-DD Monday for week 1 that overrides the plan's own start, and dry_run's true/false meaning. The format and override semantics go beyond the bare schema types.

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 resource: push a whole training plan (plan.yaml + .zwo workouts) to the intervals.icu calendar. The scope 'whole plan, not a single workout' plus the artifact types makes it unmistakable against siblings like get_planned or delete_plan.

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?

Gives a strong sequencing rule: dry_run=true is the default and the tool should only be called with dry_run=false after the user has seen the diff and agreed. It does not explicitly name a sibling alternative, but the write-vs-read boundary against get_planned/delete_plan is clear from the description.

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