Skip to main content
Glama

upload_block

Upload a block of planned workouts to the intervals.icu calendar, verify durations to catch silent DSL errors, and update without duplicates on re-run.

Instructions

Puts a block of planned workouts in the intervals.icu calendar.

From there the workouts sync to Zwift (Workouts -> Custom -> Intervals.icu) and Garmin.

Write the block name, the workout names and the descriptions in ENGLISH, even when talking to the user in another language. The calendar, Zwift and Garmin are English, and these workouts outlive the conversation.

After the upload, the server's interpretation of each workout is compared with the duration you stated. That catches DSL mistakes that would otherwise be silent — above all nested repeats, which make the workout shorter than intended without the server complaining. Read the warnings: a workout can upload without errors and still be wrong.

Re-run with the same block_name to correct; it creates no duplicates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workoutsYesThe workouts to put in the calendar.
block_nameYesName of the block, e.g. 'winter-block-2027'. ALWAYS in ENGLISH, whatever language the conversation is in. Becomes part of each workout's external_id and is the key for listing or deleting the block later. Uploading the same block name again UPDATES the workouts instead of duplicating them — re-run with the same name to correct a block.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description carries full burden. It discloses key behaviors: sync to Zwift/Garmin, the English requirement, the duration comparison check, pitfalls with nested repeats, and the idempotent re-run behavior. This goes well beyond a simple 'upload' and alerts the agent to potential silent failures.

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 description is three concise paragraphs, front-loaded with the primary purpose. Each sentence earns its place: sync destinations, language constraints, the duration-check warning, and idempotency. No redundant information, and the structure makes it easy to scan.

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?

The description covers all essential context for safe and effective use: external sync side effects, language expectations, the silent-failure warning, and update behavior. Since an output schema exists, return value documentation is not needed. The description is fully adequate for this tool's complexity.

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

Parameters3/5

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

Schema description coverage is 100%, and the schema itself provides rich details for both parameters (e.g., block_name's update semantics, duration_minutes' comparison check). The tool description adds little parameter-specific meaning beyond what the schema already states, so the baseline of 3 applies.

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 description opens with a specific verb and resource: 'Puts a block of planned workouts in the intervals.icu calendar.' It clearly distinguishes this from siblings like list_block, delete_block, and export_block by focusing on the upload/creation/update action. The additional sync details (Zwift, Garmin) further clarify its role.

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 description explains when to use the tool (to put workouts in the calendar) and provides crucial guidance for correction: 'Re-run with the same block_name to correct; it creates no duplicates.' It does not explicitly mention alternatives or when not to use it, but the purpose is so distinct that an agent can infer usage. The warning about silent DSL mistakes also guides careful usage.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/staffanbergvall/intervals-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server