Skip to main content
Glama

Pinpal Receipts

Upload a receipt

upload_document

Add a receipt or invoice you found: text for a text receipt (a mail body), or base64 for a small picture, never both. For a PDF or any file you have as a file, use create_upload_link instead: writing a file out as base64 is slow and costly. Give the line's ID (line, like #1042), or month and number, to put it straight on a line; give only month to sort it among that month's lines; give none for the Inbox. When exactly one line matches by amount and date it is attached at once and the line becomes found. Returns the document with what the reader found and suggested lines.

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

Input Schema

NameRequiredDescriptionDefault
lineNoThe line's ID, like #1042 (list_lines and read_line show it): names the line alone, instead of month and number.
nameYesThe file name with its extension, like adobe-invoice.pdf or receipt.jpg.
textNo
monthNoThe month as YYYY-MM, like 2026-09; with number, or give line instead.
base64No
numberNoThe line's number in the month, like 12; with month, or give line instead.
contentTypeNoThe MIME type when the name does not say.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations declare writable, non-destructive, non-open-world, so the safety profile is already covered; the description still adds real value by disclosing the auto-attach side effect ('exactly one line matches by amount and date it is attached at once and the line becomes found') and the cost caveat for base64. It does not cover permissions, duplicate handling, or how to undo an attach, which keeps it short of a 5.

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-loaded with the payload-type decision, then the routing rules, then the return value — the order matches how an agent must decide. Every sentence carries a distinct constraint; there is no restatement of the name or title.

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 7-parameter, no-output-schema mutation tool it covers payload choice, line targeting, the auto-attach outcome, and the return shape. Minor gaps remain: it never mentions `name` (required, with extension conventions the schema describes) or `contentType`, nor what happens when no line matches.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema (71% coverage) documents individual parameters but cannot express the mutual exclusivity of `text`/`base64` or the precedence among `line` vs `month`+`number` vs `month` alone vs none. The description supplies exactly those rules plus the default-to-Inbox behavior, adding meaning the schema cannot.

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?

Opens with a specific verb and resource ('Add a receipt or invoice you found') and immediately distinguishes the two payload modes (text vs base64). It also names the sibling tool that handles the other case (PDF/real files → create_upload_link), so an agent can route without opening either schema.

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?

Explicit when-to-use branches: text for a mail body, base64 for a small picture, 'never both', and create_upload_link for files. It also specifies the three targeting modes (line ID; month+number; month only; none for Inbox), leaving nothing to inference.

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