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 session

update_session
Idempotent

Change the plan for one session, including the day it is on: pass date to reschedule it ('move Sunday's run to Saturday'), time, title, type, duration_min, distance_m, elevation_m, notes or tags. Only the fields you send change. Recording a finished workout is log_session, not this. Where the user has Google Calendar connected, the event changes or moves there too. 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": {
      "session_id": "<session_id>"
    },
    "name": "update_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoNew local date, YYYY-MM-DD. This is how a session is rescheduled.
tagsNoNew tags; replaces the old ones, [] clears them.
timeNoNew start time HH:mm, or empty string to clear it.
typeNoNew session type.
notesNoNew plan notes; replaces the old ones.
titleNoNew title.
distance_mNoNew planned distance in metres.
session_idYesid of the training session, from get_calendar, get_training_log or add_sessions.
elevation_mNoNew planned vertical gain in metres.
duration_minNoNew planned duration in minutes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), and the description adds genuinely new behavior: partial-update semantics ('Only the fields you send change'), Google Calendar side effects where connected, local-date/time-zone convention, and an authentication requirement. These are exactly the facts an agent needs before mutating a user's calendar.

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 action, then tight sentences for exclusions, side effects, and formatting rules. The long field enumeration partially restates the schema and lengthens the opening sentence, but it remains readable and mostly earns its 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 10-parameter mutation tool with no output schema, the description covers the essential gaps: partial-update behavior, auth, timezone/date format, external calendar side effects, and the alternative logging tool. Nothing an agent needs to call this safely 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 the schema carries the per-field definitions. The description still adds value by framing date as the rescheduling mechanism and by stating that all dates are the user's local calendar dates in YYYY-MM-DD within their own time zone, which is a cross-cutting rule not repeated per parameter.

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 ('Change the plan for one session') and enumerates the mutable fields, including the notable ability to move a session to a new day. It explicitly contrasts with the sibling log_session, so an agent can route correctly 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?

Gives a positive use case with a concrete natural-language example ('move Sunday's run to Saturday') and an explicit exclusion: recording a finished workout belongs to log_session, not here. The boundary between planning edits and logging is unambiguous.

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