Skip to main content
Glama

UK Data: Spreadsheets and PDFs

pdf_to_text

Fetch a PDF from a URL and extract its text, per page, optionally only some pages (e.g. "1-3,7"). (cost: 3 credits)

Input Schema

NameRequiredDescriptionDefault
urlNostring, required
pagesNostring
maxCharsNonumber

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does add one genuinely useful behavioral fact, the 3-credit cost, and implies page-delimited output, but it says nothing about network/auth requirements, failure modes for image-only PDFs with no text layer, or what maxChars does to the result.

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 tight sentences, action first, capability modifier second, cost last. Every clause carries information and nothing is padded.

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

Completeness3/5

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

For a three-parameter, no-annotation, no-output-schema tool, the definition covers the core action and page selection but leaves maxChars' behavior and truncation semantics undocumented, and gives no hint about handling unusable or failed fetches.

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 nominally 100%, but the schema descriptions are placeholder-level ("string", "number"), so the real guidance comes from the description. The "1-3,7" example for pages adds concrete syntax value, but maxChars is never mentioned at all, leaving one of three parameters unexplained anywhere.

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?

States a specific verb and resource: fetch a PDF from a URL and extract its text, per page. The PDF focus plus the page-range capability makes it obviously distinct from make_xlsx and read_spreadsheet, though it never names those siblings 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?

Usage is only implied: an agent infers it should call this when it has a PDF URL and needs text. There is no statement of when to prefer it over another route, no preconditions (e.g. the URL must be publicly reachable), and no exclusions.

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