Skip to main content
Glama

Mirror Eye

extract_pdf

PDF to text: download a PDF and return its text page by page. Document extraction and PDF parsing. Price: 0.005 USDC on Base or 0.005 USDT on BNB Chain.

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

Input Schema

NameRequiredDescriptionDefault
urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/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, and it does add real value by disclosing the x402 payment requirement and the price/chain options. It also states the return shape (text, page by page). However, it omits practical behavior such as size or page limits, whether the URL must point directly at a PDF, and what happens on a failed download or unpaid call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and return format, and the payment details are useful. The middle clause 'Document extraction and PDF parsing' is pure keyword restatement and earns no place.

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 one-parameter tool with no output schema, the description covers purpose, return shape, and payment cost, which is most of what an agent needs. The remaining gap is the semantics of the URL argument and any extraction limits.

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

Parameters2/5

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

Schema description coverage is 0% for the single `url` parameter, so the description must compensate and largely does not. 'Download a PDF' hints that the URL targets a PDF file but gives no format, size, or accessibility requirements.

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: download a PDF and return its text page by page. This is clearly distinct from web-page style siblings like read_page, though the description never explicitly contrasts with any named sibling.

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?

No explicit guidance on when to choose this over read_page or other extraction options, and no prerequisites or exclusions. The only implicit cue is that the input must be a PDF, which the agent has to infer from the name and the phrase 'PDF to text'.

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