Skip to main content
Glama

Pinpal Receipts

Attach a document to a line

attach_document

Move an Inbox document onto the line you chose (from list_lines, or a suggestion in list_inbox). The line becomes found (check) and the thread says so. Set the line done afterwards only if you checked that amount, date and merchant match.

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": {
      "id": "<id>"
    },
    "name": "attach_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe document id, from list_inbox.
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

A4/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only but non-destructive, closed-world mutation. The description adds value beyond them by disclosing the observable side effects: the line is marked as found and the thread reflects it, plus a guardrail on the separate 'done' transition. It does not cover failure modes such as a document already attached to another line or an invalid line reference.

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 sentences, no filler, with the core action front-loaded and the conditional guardrail second. Every clause carries distinct information: what moves, where it goes, the resulting state, and the follow-up condition.

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 full schema documentation, no output schema, and annotations covering the safety profile, the description supplies the essential state-change behavior and a follow-up caveat. Remaining gaps are edge cases (re-attaching an already attached document, invalid line) and the undo path, which are secondary but not irrelevant.

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 100%, so every parameter (id, line, month, number) is already documented including the line-vs-month/number alternative. The description only reinforces the provenance of id and line, adding no format or conflict-resolution detail beyond the schema. Baseline 3 applies.

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?

"Move an Inbox document onto the line you chose" gives a specific verb (move/attach) and both resources (document, line), so the operation is unmistakable. It also names where the inputs come from (list_lines, list_inbox), which separates it from read_document and upload_document, though it never explicitly contrasts with the inverse sibling detach_document.

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?

It supplies clear workflow context: pick the line via list_lines or a suggested line from list_inbox, then optionally apply a follow-up. The conditional "Set the line done afterwards only if you checked that amount, date and merchant match" is a real usage constraint. It stops short of a 5 because no when-not-to-use case or alternative tool (e.g. detach_document for undoing) is named.

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