Skip to main content
Glama

pdf_texto

Extrae el texto de un PDF, página por página.

Args:
    fuente: URL pública del PDF o su contenido en base64.
    paginas: Rango opcional, por ejemplo `1-5,9`. Sin valor, todas.

Input Schema

NameRequiredDescriptionDefault
fuenteYes
paginasNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden but only partially: it discloses that extraction is page-by-page and that the source may be a URL or base64. It does not say whether it handles scanned/image PDFs (vs ocr), whether there are size or rate limits, or how pages are separated in the output.

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?

The purpose sentence is front-loaded and the Args block is compact with zero filler. The pseudo-docstring formatting is slightly mechanical but every line carries information.

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 two-parameter extraction tool with no output schema, the description covers inputs and page semantics adequately but omits the expected return shape (e.g., how text is segmented per page) and whether non-text PDFs are handled. These omissions matter for a retrieval tool an agent must interpret results from.

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?

Schema description coverage is 0%, so the description must compensate, and it largely does: 'fuente' is explained as a public URL or base64 content, and 'paginas' is given a concrete range syntax example ('1-5,9') plus its default behavior. Minor gap: no note on out-of-range or malformed page specs.

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+resource ('Extrae el texto de un PDF, página por página'), which is clear enough to distinguish plain-text extraction from siblings like pdf_markdown and pdf_tablas. However, it never explicitly names or contrasts those alternatives, so differentiation relies on the agent inferring from the sibling list.

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 guidance on when to use this versus ocr (scanned PDFs), pdf_markdown, or pdf_tablas. The only behavioral note is the default 'Sin valor, todas', which describes a parameter default rather than usage context. The agent is left to infer selection entirely.

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