Skip to main content
Glama

Moneda

detach_receipt

Destructive

Unlink a receipt from its transaction, leaving the receipt itself intact as an orphan. Use this to correct a wrong match, or to free a transaction so a different receipt can be attached. Does NOT delete anything.

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": {
      "receiptId": "<receiptId>"
    },
    "name": "detach_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiptIdYesReceipt id to detach (from list_receipts output).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare destructiveHint=true, and the description clarifies the crucial nuance: only the association is destroyed, the receipt record survives as an orphan. That is exactly the kind of disambiguation annotations cannot express. It stops short of stating reversibility (can it be re-attached?) or any permission requirements, but the core blast radius is covered.

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?

Three short sentences, front-loaded with the action and its outcome, then usage cases, then the negative constraint. No filler.

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?

A single-parameter mutation with no output schema, and the description covers purpose, use cases, and side effects adequately. A note on whether the transaction becomes re-attachable or whether the orphan receipt can be re-linked would close the remaining 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?

With one parameter at 100% schema description coverage, the schema already documents receiptId, its uuid format, and its provenance from list_receipts output. The description adds nothing about the parameter, so the baseline 3 applies.

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?

Specific verb ('Unlink') plus resource ('receipt from its transaction') and an explicit statement of the resulting state ('orphan'). This is clearly separable from delete_receipt and attach_receipt, which are adjacent operations in the sibling list.

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 two concrete when-to-use cases: correcting a wrong match and freeing a transaction for a different receipt. It also implicitly excludes the delete path with 'Does NOT delete anything', though it never names the sibling tools (attach_receipt, delete_receipt) that an agent would otherwise choose between.

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