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.

Change a training block

update_block
Idempotent

Change a training block: rename it, move or extend its dates ('extend the speed block by two weeks' is weeks, counted from its start), rewrite the goal or notes, switch main on or off, change the colour, link a race. block_id comes from get_blocks or add_block. Only the fields you send change. Sessions in those weeks are never touched. Turning main on, or moving a main block's dates, refuses if another main block covers the same days. 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": {
      "block_id": "<block_id>"
    },
    "name": "update_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalNoNew one-line goal; empty string clears it.
mainNoMake it the day's main block, or set it to run alongside.
nameNoNew name.
notesNoNew notes; empty string clears them.
weeksNoRe-end the block this many weeks after its start date.
colourNoNew tick colour.
race_idNoLink to a race (race_id from get_calendar); empty string unlinks.
block_idYesID of the block, from get_blocks or add_block.
end_dateNoNew last day, YYYY-MM-DD.
start_dateNoNew first day, YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses partial-update semantics, that session records in the affected weeks are never modified, the conflict rule that main-on or main date moves are rejected when another main block overlaps, the date format and local-timezone convention, and the sign-in requirement. These are real behavioral traits an agent cannot infer from readOnlyHint/destructiveHint/idempotentHint alone.

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?

Front-loads the operation and its field list, then layers preconditions, side effects, and format/auth notes in short declarative sentences. No sentence is redundant; the parenthetical example for 'extend the speed block by two weeks' resolves an ambiguity compactly.

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 10-parameter mutation tool with no output schema, everything an agent needs to call it safely is present: id provenance, partial-update rule, conflict rejection conditions, date format/timezone, and auth requirement. Nothing meaningful 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 already 100%, so baseline is 3; the description still adds interpretation for the trickiest parameter by defining 'weeks' as counted from the block's start date and anchoring date semantics to the user's local timezone. Clearing behavior (empty string) is left to the schema. Genuine but modest added value on top of an already descriptive schema.

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 plus an enumeration of every editable facet (name, dates, goal/notes, main toggle, colour, race link), so the agent knows exactly what surface is mutated. It is immediately distinguishable from add_block/remove_block/update_session siblings.

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?

Explicitly routes the agent to get_blocks or add_block for obtaining block_id and states the partial-update rule ('Only the fields you send change'). It also flags the main-block date-overlap refusal, which is effectively a precondition. It stops short of naming the sibling to use for week-level session edits, though 'Sessions in those weeks are never touched' performs the same disambiguation.

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