Skip to main content
Glama

delete_injury

DestructiveIdempotent

Permanently delete an injury entry and all its severity history.

SELECTOR: exactly one; id if known, else injury (case-insensitive body part or injury type substring, e.g. "shoulder"), optionally narrowed by date (an injury active on that day). injury matching more than one entry -> 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_injury"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoInjury ID.
dateNoYYYY-MM-DD; narrows injury to one active on this date. Ignored with id.
injuryNoBody part or injury type substring, case-insensitive (e.g. "shoulder").

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"Optional, narrows the injury selector to one active on this date (YYYY-MM-DD). Ignored when id is given."New value: +"YYYY-MM-DD; narrows injury to one active on this date. Ignored with id."
    • changedInput schema / properties / id / description
      Previous value: -"Injury ID to delete. Alternative to injury."New value: +"Injury ID."
    • changedInput schema / properties / injury / description
      Previous value: -"Alternative to id: body part or injury type substring, case-insensitive (e.g. \"shoulder\"). Optionally narrow with date."New value: +"Body part or injury type substring, case-insensitive (e.g. \"shoulder\")."
  2. Changed4 schema fields changed
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "Optional, narrows the injury selector to one active on this date (YYYY-MM-DD). Ignored when id is given.",
      +  "type": "string"
      +}
    • changedInput schema / properties / id / description
      Previous value: -"Injury ID to delete. Required."New value: +"Injury ID to delete. Alternative to injury."
    • addedInput schema / properties / injury
      Added value: +{
      +  "description": "Alternative to id: body part or injury type substring, case-insensitive (e.g. \"shoulder\"). Optionally narrow with date.",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "id"
      -]
  3. First observed

TDQS

A4.6/5.0
Behavior4/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 the safety profile is supplied. The description adds real context beyond them by naming the cascade (severity history is also destroyed) and the multi-match error path, though it does not say what happens when the id does not exist or whether a confirmation step is expected.

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

Conciseness5/5

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

Two tight units: the destructive action front-loaded in the first sentence, then a labeled SELECTOR block with precedence, examples, and failure mode. No redundant restatement of the tool name or schema.

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 with an output schema, the definition covers the scope of deletion, selector resolution, and ambiguity handling. The only notable gaps are the behavior on a non-existent id and whether any confirmation or precondition is required.

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% and each parameter already carries a description, so the baseline is 3. The description adds genuine meaning on top: precedence between id and injury, that date is optional narrowing rather than a required part of the selector, and what a substring match actually resolves against.

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 the blast radius: "Permanently delete an injury entry and all its severity history." That is clearly distinguishable from log_injury, update_injury and the other delete_* siblings, which target different resources.

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?

The SELECTOR block explicitly encodes selection policy: exactly one selector, prefer id when known, otherwise a case-insensitive injury substring, optionally narrowed by date. It also names the fallback behavior on ambiguity (error with candidate IDs to retry with), so the agent knows how to recover rather than guessing.

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.