Skip to main content
Glama

PDFWix

Extract text from a PDF

extract_pdf_text
Read-onlyIdempotent

Pull the text out of a PDF, page by page, so it can be read, summarised or analysed. Works on text-based PDFs, not on photos of pages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesA single input file, given as either an HTTPS url or base64 contents.
pagesNoOptional page selection such as "1-5" or "1, 3, 7". Defaults to the whole document.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and open-world behavior. The description adds valuable context beyond those hints: output is returned page by page, and the tool is ineffective on scanned or image-based PDFs. It does not state the exact failure mode for scanned pages, but it gives a clear limitation.

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?

Two short, front-loaded sentences with no filler. Each clause contributes: the action, the output granularity, the use cases, and the critical scanned-PDF limitation.

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?

Given full schema coverage and annotations that establish safety and idempotence, the description covers the key non-obvious constraint (text-based only) and hints at return shape via 'page by page'. An explicit return-format contract would improve completeness, but nothing essential is missing for invoking the tool correctly.

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 description coverage is 100%, and the schema already explains the file object (url/base64/filename) and optional pages parameter. The description adds no parameter-specific detail, which is acceptable because the schema carries the semantic weight.

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 uses a specific verb ('Pull the text out') and resource ('a PDF'), and adds 'page by page' to convey granularity. It distinguishes itself from sibling PDF tools, none of which extract text content, and from get_pdf_info by focusing on text rather than metadata.

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?

It explicitly states when to use the tool (when PDF text needs to be read, summarised, or analysed) and when not to use it ('not on photos of pages'). It does not name a specific sibling alternative, but no sibling performs text extraction, so the guidance is sufficient.

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