Skip to main content
Glama

read_document

Read a document (PDF or image) from a URL and return its contents as markdown (tables preserved) or plain text. Costs $0.00075 per page, billed to the PennyOCR account; the response includes the exact cost_usd and per-page citations. Use estimate_cost first for big documents. Supports page ranges and hard spend caps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYeshttp(s) URL of the PDF or image
pagesNoPage range like '1-20,25'. Default: all pages.
outputNoOutput format. Default markdown.
max_pagesNoRefuse (with the numbers) if selection exceeds this many pages.
max_cost_usdNoRefuse (with the numbers) if the run would cost more than this.

TDQS

A4.9/5.0
Behavior5/5

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

No annotations exist to carry the transparency burden, but the description discloses important behaviors: per-page pricing, billing to a specific account, response includes exact cost_usd and per-page citations, and support for limits. This goes beyond basic read-only intent.

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 three sentences with no filler. Every clause contributes new information: input type, output formats, pricing, response contents, pre-estimation guidance, and controls.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the 5 parameters and no output schema, the description gives a complete operating picture: input, output, cost behavior, cost guardrails, and the relevant sibling tool. It is sufficient for an agent to both select the tool and invoke it appropriately.

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?

The schema covers all 5 parameters, so the baseline is 3, but the description adds value by explaining cost implications ($0.00075/page), billing account, and the response containing cost_usd and citations. This clarifies the meaning and consequences of max_pages and max_cost_usd beyond the schema.

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?

The description clearly identifies the action (read), the resource (document from a URL), and the output formats (markdown with tables preserved or plain text). It also distinguishes the tool from its sibling estimate_cost by framing reading as the downstream step after estimation.

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?

Concrete usage guidance is provided: use estimate_cost first for large documents, and make use of page ranges and hard spend caps. This explicitly tells the agent when to invoke a different tool and when to constrain this tool's costs.

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.

TDQS

A4.5/5.0
Disambiguation5/5

The two tools are clearly distinct: one estimates cost, the other performs OCR. There is no overlap in purpose or behavior.

Naming Consistency5/5

Both tools follow the same verb_noun pattern (estimate_cost, read_document), making the naming predictable and consistent.

Tool Count3/5

With only two tools, the server feels minimal but appropriate for its focused OCR purpose. The count is borderline thin, but each tool serves a necessary part of the workflow.

Completeness4/5

The core workflow of estimating cost and reading documents is covered well. Minor gaps exist, such as no ability to list past reads or handle file uploads, but these are outside the obvious scope.