Skip to main content
Glama

delete_recovery_session

DestructiveIdempotent

Permanently delete a recovery session log entry. Irreversible. Ambiguous intent -> ask which session to remove.

SELECTOR: exactly one; id if known, else session_date (+ optional session_category to narrow). More than one session 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_recovery_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoRecovery session ID.
session_dateNoDate the session was logged on, YYYY-MM-DD.
session_categoryNoNarrows session_date to one category when several sessions share that date. Ignored with id.

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 / id / description
      Previous value: -"Recovery session ID. Alternative to session_date."New value: +"Recovery session ID."
    • changedInput schema / properties / session_category / description
      Previous value: -"Optional, narrows session_date to one category when more than one session shares that date. Ignored when id is given."New value: +"Narrows session_date to one category when several sessions share that date. Ignored with id."
    • changedInput schema / properties / session_date / description
      Previous value: -"Alternative to id: the date (YYYY-MM-DD) the session was logged on. Optionally narrow with session_category."New value: +"Date the session was logged on, YYYY-MM-DD."
  2. Changed4 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"Recovery session ID. Required — do not proceed without it."New value: +"Recovery session ID. Alternative to session_date."
    • addedInput schema / properties / session_category
      Added value: +{
      +  "description": "Optional, narrows session_date to one category when more than one session shares that date. Ignored when id is given.",
      +  "enum": [
      +    "breathwork",
      +    "progressive_muscle_relaxation",
      +    "meditation",
      +    "cold_exposure",
      +    "heat_sauna",
      +    "contrast_therapy",
      +    "lymphatic_drainage",
      +    "stretching_mobility",
      +    "yoga",
      +    "journaling",
      +    "other"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / session_date
      Added value: +{
      +  "description": "Alternative to id: the date (YYYY-MM-DD) the session was logged on. Optionally narrow with session_category.",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "id"
      -]
  3. First observed

TDQS

A4.4/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 'Irreversible' largely restates structured data; however, the description adds genuinely new behavior: multi-match returns an error listing candidate IDs to retry with, which is not expressible in annotations. It stops short of saying whether dependent records (strategies, plans) are affected.

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?

Front-loads the irreversible action, then the disambiguation instruction, then a labeled SELECTOR block. No sentence is filler and the structure mirrors how an agent would reason before calling a destructive tool.

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?

Output schema exists so return values need no explanation, and the ambiguity/error path is covered. What is missing is any statement about side effects on related recovery data or whether the deletion can be recovered from, which matters for a destructive tool with no confirm step.

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, and the descriptions of id, session_date, and session_category are already in the schema. The description does add the exclusivity rule the schema omits (required_parameters is 0 and no oneOf is expressed), which is the key value-add, but it does not add format or edge-case detail beyond that.

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 recovery session log entry. The word 'log entry' scopes it precisely and separates it from the many other delete_* siblings (delete_cycle, delete_meal, delete_workout) without needing to name them.

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 an explicit selection rule (exactly one selector; id if known, else session_date plus optional category), an ambiguity escape hatch ('Ambiguous intent -> ask which session to remove'), and the failure mode when multiple rows match. An agent knows when to call this and when to stop and ask.

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.