Skip to main content
Glama

delete_workout

DestructiveIdempotent

Saved workout operations

  • routing: new performed session -> in-app chat propose_workout (review card; Save logs), external MCP and native voice log_workout. Correct a stored session -> update_workout, never another log. Delete a whole session -> delete_workout, never an update. Future workouts -> in-app proposal tools; external clients without cards may use log_workout(save_as_saved_workout=true) for a reusable template. saved_workout_id selects a template, never a completed session.

  • resolve: known session ID, or an unambiguous date/name. Ambiguous sessions, sets or superset slots need exact identification. Never invent IDs. Validate every part of an update before writing; preserve everything outside the target.

  • remove one set/exercise -> targeted update; whole session only when requested. Deletions are irreversible. Confirm only persisted changes; after a partial/uncertain write, read back before any retry.

Permanently delete a workout session with all its supersets, exercises and sets. use: the user wants a logged workout removed entirely.

FIND THE SESSION: call directly, no preliminary list for an ID. session_id if known; else session_date (default today); add name only when several sessions share that day. Irreversible: not exactly one match -> errors with the reason, deletes nothing; retry with session_id or a narrower name, never guess.

SAVED WORKOUTS: saved_workout_id deletes a reusable Saved Workout instead of completed 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
nameNoCase-insensitive substring of the focus/type (e.g. "Push", "Leg Day") to pick between sessions on session_date. Only without session_id.
session_idNoPositive session ID from a workout tool. Unknown -> omit and use session_date + name; never guess.
session_dateNoYYYY-MM-DD; default today. Finds the session when session_id is omitted.
saved_workout_idNoSaved Workout ID to delete; completed workout history is untouched.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / name / description
      Previous value: -"Substring 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."New value: +"Case-insensitive substring of the focus/type (e.g. \"Push\", \"Leg Day\") to pick between sessions on session_date. Only without session_id."
    • changedInput schema / properties / saved_workout_id / description
      Previous value: -"Saved Workout ID to delete. When present, deletes the reusable prescription and does not touch completed workout history."New value: +"Saved Workout ID to delete; completed workout history is untouched."
    • changedInput schema / properties / session_date / description
      Previous value: -"Date 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."New value: +"YYYY-MM-DD; default today. Finds the session when session_id is omitted."
    • changedInput schema / properties / session_id / description
      Previous value: -"Positive session ID returned by a workout tool. If unknown, omit it and use session_date + name; never guess."New value: +"Positive session ID from a workout tool. Unknown -> omit and use session_date + name; never guess."
  2. Changed2 schema fields changed
    • 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
  3. Changed5 schema fields changed
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Substring 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.",
      +  "type": "string"
      +}
    • addedInput schema / properties / saved_workout_id
      Added value: +{
      +  "description": "Saved Workout ID to delete. When present, deletes the reusable prescription and does not touch completed workout history.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / session_date
      Added value: +{
      +  "description": "Date 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.",
      +  "type": "string"
      +}
    • changedInput schema / properties / session_id / description
      Previous value: -"Session ID from list_workouts. Required — do not proceed without it."New value: +"Session ID, if already known. Alternative to session_date + name — see FIND THE SESSION above."
    • removedInput schema / required
      Removed value: -[
      -  "session_id"
      -]
  4. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=true, so the safety profile is pre-loaded. The description still adds real value beyond them: irreversibility, the all-or-nothing error behavior ("not exactly one match -> errors with the reason, deletes nothing"), and the read-back-after-partial-write rule. It does not, however, describe exactly what the response returns or how to recover a deleted session.

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?

Headers and bullets make it scannable and the routing block is front-loaded, but the tool's own purpose statement is buried after a long shared routing preamble, and "never guess" / "never invent IDs" is repeated across sections. Each sentence is substantive, though some of the routing content is clearly general to the whole workout tool family rather than specific to delete.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive tool this covers resolution strategy, ambiguity handling, irreversibility, and the saved-workout variant, and an output schema exists so return values need not be described. The remaining gap is minor: no explicit statement of permissions or whether saved-workout deletion cascades to sessions created from that template.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/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 schema already explains each of the four parameters, including the name/session_date fallback. The description reinforces the precedence logic (session_id first, else session_date, add name only when several sessions share that day) and clarifies that saved_workout_id targets a template rather than completed history, but adds no format or edge-case detail beyond what the schema documents.

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 with all its supersets, exercises and sets" — and explicitly distinguishes it from update_workout (correct a session) and log_workout (new session). The SAVED WORKOUTS section further clarifies the second target type so an agent knows both what gets deleted and what does not.

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 routing rules: new session -> propose_workout/log_workout, correct a stored session -> update_workout, delete whole session -> delete_workout "never an update", remove one set/exercise -> targeted update. It also names the use case ("the user wants a logged workout removed entirely") and the when-not conditions, leaving nothing to inference.

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.