Skip to main content
Glama

Pinpal Receipts

Move a receipt back to the Inbox

detach_document
Destructive

Undo a wrong match: the file leaves the line and waits in the Inbox again. A line left with no receipt goes back to missing.

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": {
      "file": "<file>"
    },
    "name": "detach_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe file's number in the line.
lineNoThe line's ID, like #1042 (list_lines and read_line show it): names the line alone, instead of month and number.
monthNoThe month as YYYY-MM, like 2026-09; with number, or give line instead.
numberNoThe line's number in the month, like 12; with month, or give line instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag this as destructive and not read-only, so the safety profile is known. The description adds real consequence detail beyond that: the file returns to the Inbox and a line left with no receipt reverts to missing — the exact state change an agent needs to anticipate. It stops short of saying whether the detach can be reversed or what is returned.

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 short sentences with no filler, and the core outcome is front-loaded before the secondary 'note goes back to missing' consequence. Every clause carries distinct information.

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 four-parameter mutation with no output schema, the description covers the outcome and side effects well, and the schema carries the addressing logic. What is missing is only minor: reversibility and whether re-attaching is possible after detachment.

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 all four parameters are documented in the schema, including the line-vs-month/number addressing alternatives. The description adds no parameter-level meaning, which is acceptable at full coverage but leaves it at the baseline.

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?

The definition states a specific effect: the file leaves the line and returns to the Inbox, framed as undoing a wrong match. That is concrete enough to separate it from attach_document or send_to_accountant without opening any schema, though it never names the inverse sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Undo a wrong match' implies the correct situation for use, which is a reasonable trigger condition. However, it gives no explicit when-not guidance, no mention of attach_document as the counterpart operation, and no prerequisites (such as needing the file already attached).

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