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.

Delete sessions

remove_sessions
DestructiveIdempotent

Delete training sessions from the calendar for good: one or several by session_ids, or every planned session between start_date and end_date. One session is deleted at once. Several ids or a date range are a preview first: dry_run defaults to true and the result lists what would go; the same call with dry_run: false deletes them, 100 at most. A date range leaves completed sessions alone unless include_done is true. Where the user has Google Calendar connected, the events go too. Races on the user's list are not touched; remove_race does those. All dates are the user's local calendar dates (YYYY-MM-DD) in their own time zone. Requires signing in.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "remove_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoTrue lists what would be deleted and deletes nothing. Default true for several ids or a date range, false for one id.
end_dateNoLast day of the range, YYYY-MM-DD (inclusive). Leave out for start_date alone.
start_dateNoFirst day of a range to clear, YYYY-MM-DD. Instead of session_ids.
session_idsNoids of the sessions to delete, from get_calendar, get_training_log or add_sessions.
include_doneNoWith a date range: true also deletes completed sessions. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructive, idempotent, non-read-only, but the description adds real behavior: the 100-session cap, that completed sessions survive range deletes unless include_done is true, that Google Calendar events are deleted alongside, that races on the user's list are untouched, and that sign-in is required. The preview default that flips based on input shape is exactly the kind of nuance annotations cannot express.

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 destructive action and its three modes, then the safety preview, then side effects. Dense but every clause carries information; the only mild redundancy is restating the dry_run default that the schema also documents.

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?

With no output schema, the description still tells the agent what a preview returns ('the result lists what would go'). Auth requirement, batch cap, side effects on Google Calendar, and interaction with include_done are all covered, which is complete for a five-parameter destructive tool.

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, and the description still adds meaning: it clarifies that dry_run's default depends on whether the call is single-id versus multi-id/range, and that include_done only matters with a date range. Dates being the user's local calendar dates in their own time zone is semantics the schema only hints at with YYYY-MM-DD.

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 ('Delete training sessions from the calendar') and enumerates the three addressing modes: single id, several session_ids, or a start_date/end_date range. It also explicitly excludes races by naming remove_race, so an agent can separate this from its closest sibling without opening a schema.

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 concrete when-to-use guidance: use session_ids for specific sessions, a date range to clear planned sessions, and remove_race for races. It also explains the preview-then-commit flow (dry_run defaults to true for multi-id and range deletes). It does not cover edge cases such as an empty result or what to do when both session_ids and a range are supplied.

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