Skip to main content
Glama

Extract Pdf Text

extract_pdf_text
Idempotent

Extract text and optional tables from PDFs into structured JSON, with page-range selection for targeted parsing.

Instructions

Extract text and optional tables from a PDF as structured JSON.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pagesNoOptional pages/ranges to extract, e.g. '1-5'.
source_urlNoPublic URL of the PDF.
file_base64NoBase64-encoded PDF.
extract_tablesNoWhether to extract tables too.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6

TDQS

A3.5/5.0
Behavior2/5

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

Annotations include openWorldHint and idempotentHint, but the description adds no behavioral context beyond those. It does not disclose that the tool may fetch a URL or decode base64 input, nor does it mention potential network dependencies or timeouts. The description is neutral and adds no extra insight.

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?

The description is a single, concise sentence that front-loads the action and output. No filler words or redundant 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?

The tool has four optional parameters, but the description does not explain that a PDF source (either URL or base64) must be provided, which is a critical operational detail. The output schema exists, so return structure is covered, but the input requirement gap makes the description incomplete for correct invocation.

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%, with all four parameters described in the schema. The description does not add any additional meaning beyond what the schema already provides, such as clarifying that source_url and file_base64 are alternatives and at least one is required. Baseline of 3 is appropriate given high schema coverage.

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 clearly states the action (extract), the resource (PDF), and the output format (structured JSON), and it distinguishes this tool from siblings like merge_pdfs or compress_pdf. The mention of optional tables adds specificity without ambiguity.

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?

The description implies the tool is used to extract text from PDFs but provides no explicit guidance on when to use it over alternatives (e.g., convert_file) or any exclusions. No prerequisites are mentioned, such as needing to supply either source_url or file_base64.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.