Skip to main content
Glama

Extract pdf text / pdf extract (document text) — pdf text, pdf extract, document text

pdf_extract
Read-only

Text-layer PDF extract (POST /pdf). Install via GET https://pdf.kymac.co/llms.txt only. Prefer Authorization: Bearer; X-API-Key is an alias. Golden URL https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf — compare ok true/false JSON in llms.txt. First key includes 1 free credit. Quote first with quote_credits (no debit). Debits 1 credit on ok:true (credit.debit reason=pdf_success). 200 bodies include credits_burned and credits_remaining. HTTP fails use code/message/retryable/next (error aliases message). 401 next=refresh key. 402: code=insufficient_credits, retryable=false, next=buy credits. Retryable fails use next=retry. No OCR.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesAbsolute http(s) URL of a text-layer PDF. Golden proof URL: https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior1/5

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

Annotation Contradiction: readOnlyHint=true implies no side effects or state changes, but the description explicitly states 'Debits 1 credit on ok:true' and mentions updated credit fields in the 200 response body. This is a direct behavioral contradiction with the annotation.

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

Conciseness2/5

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

The description is a dense run-on collection of operational fragments with no sectioning or paragraph breaks. Critical scope information like 'No OCR' is buried at the end, and the telegraphic style makes the tool harder to parse quickly.

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 paid API, the description covers endpoint, auth, installation, credit cost, response fields, error format, retry behavior, and testing URL. The only real gap is that the extracted text payload structure is implied by the tool name rather than explicitly described.

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 100%, and the url parameter already documents the absolute http(s) URL and text-layer requirement. The description repeats the golden URL and adds workflow details, but does not materially extend the meaning of the url parameter itself.

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 opens with 'Text-layer PDF extract (POST /pdf)', giving a precise verb, resource, and endpoint. Closing with 'No OCR' further clarifies the tool's exact scope and separates it from potential OCR-based alternatives.

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

Usage Guidelines4/5

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

The description provides strong invocation guidance: install via llms.txt, prefer Bearer auth, quote credits before calling, and use the golden URL to verify output. There is no alternative PDF tool among the siblings, but 'No OCR' and the credit workflow serve as practical when-to-use/when-not-to-use indicators.

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