Skip to main content
Glama

Delete custom exercise

delete_exercise
Destructive

Delete one of the user's OWN custom exercises. If sets or templates use it, it is refused unless replace_with (another exercise) is given: those sets and template rows are moved to the replacement first, so no history is lost. Library exercises can't be deleted. Confirm with the user first.

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": {
      "exercise": "<exercise>"
    },
    "name": "delete_exercise"
  }
}

Input Schema

NameRequiredDescriptionDefault
exerciseYesExercise id (preferred) or exact name
replace_withNoExercise name (fuzzy) that takes over its logged sets and template rows
replace_with_exercise_idNoExact id of the replacement (preferred when known)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description goes well beyond them: it discloses the refusal behavior when dependents exist, the order of operations (rows are moved to the replacement first), the guarantee that no history is lost, and the human-confirmation requirement. These are non-obvious behavioral traits an agent could not derive from the annotations.

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?

Three tight sentences, front-loaded with the scope then the failure condition then the confirmation requirement. Nearly every clause earns its place, though the confirmation instruction could sit first for an agent workflow perspective.

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 single-entity mutation with annotations covering the safety profile and no output schema, this is close to complete: it covers scope, blockers, replacement semantics and confirmation. A minor gap is whether a deletion without dependents is reversible or how the refusal is surfaced to the caller.

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% and the schema already describes exercise as 'id (preferred) or exact name' and replace_with as taking over logged sets and template rows, so the description's parameter information largely restates structured data. The baseline of 3 applies; the description adds the causal detail that replacement happens before deletion but not the precedence between the two replacement parameters.

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 a scope qualifier ('Delete one of the user's OWN custom exercises') and immediately excludes library exercises, so an agent can tell this apart from update_exercise or create_exercise 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-not conditions ('Library exercises can't be deleted'), the blocking condition (in-use sets or templates) and the escape hatch (supply replace_with), plus a procedural prerequisite ('Confirm with the user first'). Nothing about when to call this vs. not call it is left 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.

Resources