Skip to main content
Glama

UK Data for Agents

pdf_to_text

Read-onlyIdempotent

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

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": "pdf_to_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNostring, required
pagesNostring
maxCharsNonumber

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 declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral facts: it performs a network fetch of an external URL, returns text broken out per page, and costs 3 credits — the credit cost in particular is not captured anywhere else.

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?

A single compact sentence that front-loads the action, then the page-selection option with an inline example, then the cost in parentheses. No filler, and each clause carries information the agent needs.

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 extraction tool with no output schema, the description covers the core operation, page selection, and cost, but omits the semantics of `maxChars` and says nothing about failure modes (non-PDF URLs, scanned/image-only PDFs) or the precise shape of the per-page result.

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 descriptions are placeholder type restatements ("string, required", "string", "number") despite the nominal 100% coverage, so real meaning must come from the description. It explains `url` (source PDF) and `pages` (with the "1-3,7" syntax example) but says nothing about `maxChars`, leaving a truncation-cap parameter wholly opaque.

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 names a specific verb and resource: fetch a PDF from a URL and extract its text per page. It is clearly distinct from the spreadsheet-oriented siblings, though it never explicitly contrasts itself with them, which is why it stops short of 5.

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 context is implied (you have a PDF URL and want its text) and the page-range option is illustrated with a concrete example, but there is no explicit when-to-use/when-not guidance or reference to the sibling tools as alternatives. The cost note helps the agent weigh the call but doesn't steer tool selection.

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