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.

Start a training block

add_block

Put a training block on the calendar: a named stretch of weeks with one goal — 'Weight loss, 9 Nov to 28 Feb', 'Calf strength', 'Speed & power, 6 weeks'. Use it when the user says what they are working on for a run of weeks, or builds to a race. The sessions themselves are still add_sessions: a block never owns them, it says what the weeks are for. Send weeks (how many it runs) or end_date. Any weekday may start it. Blocks may run alongside each other, but a day has one main block: with main true this refuses if another main block covers the same days, and names it. Set main false for the one that runs alongside ("strength held at maintenance"). All dates are the user's local calendar dates (YYYY-MM-DD) in their own time zone. Requires signing in.

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": {
      "name": "<name>"
    },
    "name": "add_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalNoOne line, e.g. '5 x 1 km at 4:30/km by week 6'. Max 200 characters. Optional.
mainNoTrue (default) for the block these weeks belong to; false for one running alongside it.
nameYesWhat the user calls it, e.g. 'Weight loss', 'Speed & power'. Max 80 characters.
notesNoThe progression, the weekly rules, what is held at maintenance. Markdown allowed. Optional.
weeksNoHow many weeks it runs from start_date. Send this or end_date.
colourNoThe band's tick colour, from the calendar's session palette. Default 'run'.
race_idNoThe race this block builds to (race_id from get_calendar). Optional.
end_dateNoLast day, YYYY-MM-DD. Send this or weeks.
start_dateNoFirst day, YYYY-MM-DD. Defaults to today.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Goes well beyond the annotations on the key behavioral fact: with main true it "refuses if another main block covers the same days, and names it," which is the failure mode an agent must anticipate. It also discloses time-zone semantics and that authentication is required. However, the requirement to sign in is asserted without saying what the tool returns or what happens to the block when sessions overlap in other ways, so it falls short of a full behavioral account.

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 core purpose and example blocks, then rules for weeks/end_date, main, and dates. Dense with examples but each sentence carries distinct information; the example strings in the opening line are slightly more ornamental than the rest and edge toward the verbose side.

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 9-parameter mutation tool with no output schema, the definition covers creation inputs, start-date flexibility, time zone, the main/alongside distinction and its refusal behavior, and the ownership boundary with sessions. Nothing an agent needs in order to call this and interpret a failure 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 100%, so the baseline is 3; the description earns the fourth point by adding meaning the schema lacks, namely that weeks and end_date are alternatives ("Send weeks ... or end_date"), that any weekday may start a block, and what main actually controls day-to-day. The goal, colour, and notes parameters are not elaborated beyond their schema text, keeping it out of the top band.

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?

Specific verb and resource: "Put a training block on the calendar: a named stretch of weeks with one goal," immediately grounded with realistic examples. It also draws the boundary with add_sessions in the same breath, so an agent can tell the two apart without opening either schema.

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?

Explicit trigger conditions: "Use it when the user says what they are working on for a run of weeks, or builds to a race." Names the alternative tool (add_sessions) and what it is for, and adds a rule for choosing main true vs main false with a concrete use case ("strength held at maintenance").

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