Skip to main content
Glama

Delete receipt

delete_receipt
Destructive

Delete one of the caller's receipts by id (its line items go with it). Only the caller's own receipt is reachable. Destructive — runs only after you confirm via confirm_action; the result names the deleted line-item count. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.

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": {
      "receipt_id": "<receipt_id>"
    },
    "name": "delete_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
receipt_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the destructiveHint annotation: it discloses the line-item cascade, ownership scoping, that the call is proposed rather than performed, the returned status='confirmation_required' with action_id and plan_token, and that the result reports the deleted line-item count.

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?

Safety and cascade facts are front-loaded and the confirmation flow is called out in caps, which is well structured. The confirmation requirement is stated twice in slightly different words ('runs only after you confirm via confirm_action' then the CONFIRMATION block), which is some redundancy.

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

Completeness5/5

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

With no output schema, the description compensates by describing both the proposal response shape and what the eventual result contains. For a one-parameter destructive tool, nothing an agent needs in order to call it safely is missing.

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 0% for the single receipt_id parameter, and the description only adds that it is an id belonging to the caller's own receipt. It conveys the ownership constraint but no format, range, or identifier-shape guidance, which is the baseline for one required param.

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 ('Delete one of the caller's receipts by id') and adds the cascade scope ('its line items go with it'), which is enough to separate it from the many other delete_* siblings at a glance.

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?

Explicitly scopes callers to their own receipts and lays out the required two-step path through confirm_action, so an agent knows the precondition before calling. It stops short of naming any alternative (e.g., a bulk or permanent delete) or exclusion cases, so it falls just under the top mark.

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