Skip to main content
Glama

Pinpal Receipts

Read a document

read_document
Read-only

Look at a document yourself: an image comes back as the image, a PDF or text as its text where possible. Give the document's id (from list_inbox or read_line), or the line (its ID, or month and number) and the file number.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoThe document id.
fileNoThe 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.7/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, non-destructive, closed-world operation. Beyond that, the description adds important behavioral detail: images are returned as images, while PDFs and text are returned as text 'where possible,' which signals that extraction may not always succeed.

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?

The description is two tightly packed sentences with no wasted language. The first sentence front-loads what the tool returns, and the second explains how to identify the target document.

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 read-only tool with five optional parameters and no output schema, the description covers the key return behavior and the main parameter-combination patterns. It is not fully exhaustive about failure modes or empty results, but it gives enough context for an agent to invoke the tool correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the full parameter baseline is already 3. The description adds useful practical meaning by saying the id comes from list_inbox or read_line, and by summarizing the alternative way to identify a document through a line and file number.

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 description states a specific action and resource: looking at a document's contents and returning either the image or extracted text. It also clarifies the return modality, which distinguishes this from metadata-oriented siblings. However, it does not explicitly contrast this with read_line or other document-related tools.

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

Usage Guidelines2/5

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

The description implies that this tool is used to inspect a document's content and identifies where to get a document id, but it gives no explicit when-to-use or when-not-to-use guidance relative to alternatives. It also does not explain prerequisites or common failure cases.

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