Skip to main content
Glama
Wellness Project MCP

Wellness Project MCP

delete_workout

DestructiveIdempotent

Permanently delete a logged workout session with all its exercises and sets, or remove a saved workout template. Identify the session by ID, date, or workout name; irreversible and requires an exact match.

Instructions

undefined Permanently delete a workout session and all its exercises and sets. Use when the user wants to remove a logged workout entirely.

FIND THE SESSION: call directly, no preliminary list for an ID. Pass session_id if already known. Otherwise pass session_date (YYYY-MM-DD, defaults to today) and, only if more than one session was logged that day, name (a substring of the workout's focus/type, e.g. "Push" or "Leg Day", case-insensitive) to narrow it down. This action is irreversible and removes the session, all supersets, and all sets — a match that isn't exactly one session returns an error explaining why, with nothing deleted; retry with session_id or a narrower name, never guess.

SAVED WORKOUTS: pass saved_workout_id to delete a reusable Saved Workout instead of completed workout history.

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": "delete_workout"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoSubstring of the workout's focus/type (e.g. "Push", "Leg Day"), case-insensitive, to disambiguate multiple sessions on the same date. Only used when session_id is omitted.
session_idNoPositive session ID returned by a workout tool. If unknown, omit it and use session_date + name; never guess.
session_dateNoDate the session was logged. Format: YYYY-MM-DD. Used with name to find the session when session_id is omitted; defaults to today if both are omitted.
saved_workout_idNoSaved Workout ID to delete. When present, deletes the reusable prescription and does not touch completed workout history.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.3.0
    • changedInput schema / properties / session_id / description
      Previous value: -"Session ID, if already known. Alternative to session_date + name — see FIND THE SESSION above."New value: +"Positive session ID returned by a workout tool. If unknown, omit it and use session_date + name; never guess."
    • addedInput schema / properties / session_id / minimum
      Added value: +1
  2. First observedv1.2.1

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=true, so safety is largely covered; the description nevertheless adds real context beyond them: irreversibility, cascade scope (supersets and sets), and the all-or-nothing failure contract where a non-unique match deletes nothing. It does not discuss permissions or confirmation requirements, but the strong failure semantics make this above baseline rather than exceptional.

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?

Content is front-loaded and organized under FIND THE SESSION and SAVED WORKOUTS headers, with essentially no filler. The stray leading 'undefined' token is a serialization artifact that blemishes an otherwise tight definition and costs a point.

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 destructive, parameter-optional tool this covers everything an agent needs: target selection and precedence, cascade scope, irreversibility, the failure contract, and the alternate saved-workout branch. An output schema exists, so return-value documentation is correctly omitted.

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 description coverage is 100%, so the baseline is 3, and the description earns an extra point by adding resolution order (session_id > session_date + name), the conditional trigger for name ('only if more than one session was logged that day'), the today default, and the fact that saved_workout_id switches the deletion target entirely. That precedence logic is meaningfully more than the schema states.

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 — 'Permanently delete a workout session and all its exercises and sets' — and immediately scopes the target ('a logged workout entirely') while noting the saved_workout_id variant later. An agent can distinguish this from update_workout, get_workout, and the other delete_* siblings without opening any 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 explicit when-to-use ('when the user wants to remove a logged workout entirely'), an explicit anti-pattern ('no preliminary list for an ID'), a described resolution strategy (session_id first, else session_date + optional name), and an exclusion path for saved workouts. It even prescribes what to do on failure ('retry with session_id or a narrower name, never guess').

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