Skip to main content
Glama

delete_run

DestructiveIdempotent

UNIT INPUTS: value: pass the user's number unconverted; tool converts once before storage. alternate_unit: set the field's matching input_* companion; canonical_unit: omit companion. precedence: overrides instructions to convert manually.

Delete a run. use: the user wants a run entry removed. ASK for confirmation if the intent is ambiguous.

SELECTOR: exactly one; id if known, else date (+ optional distance_mi to narrow, matched within 0.25 mi). More than one run matching -> error with candidate IDs to retry with.

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_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoRun UUID.
dateNoDate the run was logged on, YYYY-MM-DD.
distance_miNoNarrows date to a run within 0.25 mi of this value when several runs share that date. Ignored with id. mi, or km via input_distance_unit.
input_distance_unitNokm when the user gave km for this object's _mi fields; omit for mi.

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 / date / description
      Previous value: -"Alternative to id: the date (YYYY-MM-DD) the run was logged on. Optionally narrow with distance_mi."New value: +"Date the run was logged on, YYYY-MM-DD."
    • changedInput schema / properties / distance_mi / description
      Previous value: -"Optional, narrows date to a run within 0.25 mi of this value when more than one run shares that date. Ignored when id is given. In mi, or km with input_distance_unit set. See UNIT INPUTS."New value: +"Narrows date to a run within 0.25 mi of this value when several runs share that date. Ignored with id. mi, or km via input_distance_unit."
    • changedInput schema / properties / id / description
      Previous value: -"Run UUID. Alternative to date."New value: +"Run UUID."
    • changedInput schema / properties / input_distance_unit / description
      Previous value: -"Set to km when the user gave km for the _mi fields in this object. Omit when they are already mi."New value: +"km when the user gave km for this object's _mi fields; omit for mi."
  2. Changed5 schema fields changed
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "Alternative to id: the date (YYYY-MM-DD) the run was logged on. Optionally narrow with distance_mi.",
      +  "type": "string"
      +}
    • addedInput schema / properties / distance_mi
      Added value: +{
      +  "description": "Optional, narrows date to a run within 0.25 mi of this value when more than one run shares that date. Ignored when id is given. In mi, or km with input_distance_unit set. See UNIT INPUTS.",
      +  "type": "number"
      +}
    • changedInput schema / properties / id / description
      Previous value: -"Run UUID from list_runs. Required."New value: +"Run UUID. Alternative to date."
    • addedInput schema / properties / input_distance_unit
      Added value: +{
      +  "description": "Set to km when the user gave km for the _mi fields in this object. Omit when they are already mi.",
      +  "enum": [
      +    "mi",
      +    "km"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "id"
      -]
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description only needs to add operational context – and it does: pre-deletion confirmation on ambiguity, a 0.25 mi fuzzy match window, and an error-with-candidate-IDs outcome the agent must handle. It does not say anything about what else is removed (e.g. linked data) or irreversible side effects, leaving some destructive-behavior detail unstated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The delete-specific sentences are tight and actionable, but the preceding "UNIT INPUTS" boilerplate occupies the lead position and is written generically ("the field's matching input_* companion") for a tool with a single unit parameter. The purpose statement is pushed to the second block instead of being front-loaded.

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?

An output schema exists and annotations cover the safety profile, so the description only needed to supply usage, selector and failure behavior – which it does, including the ambiguous-intent confirmation step. Only the absence of detail about what a run deletion cascades to is a real gap.

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 description coverage is 100%, so the schema already documents id, date, distance_mi and input_distance_unit, including the 0.25 mi tolerance and that distance_mi is ignored with id. The description mostly restates the selector precedence and the unit-passing convention, adding little beyond the schema, and the generic "alternate_unit/input_* companion" wording is vaguer than the schema's own enum description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Delete a run" states a specific verb plus resource, and "use: the user wants a run entry removed" reinforces it. The resource name alone separates it from delete_cycle, delete_injury and delete_meal, though the definition never explicitly contrasts them.

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 clear triggering intent, instructs the agent to ASK for confirmation when intent is ambiguous, and specifies the selector rule (exactly one; prefer id, else date plus optional distance_mi). It also describes the multi-match failure path and retry with candidate IDs, but stops short of naming any alternative tool or a when-not-to-use condition.

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.