Skip to main content
Glama

verify_extraction

Audit a PDF extraction for silently dropped pages by comparing to a ground-truth audit. Returns per-page status and overall PASS/REVIEW/FAIL verdict.

Instructions

Audit an extraction of a PDF for silently-dropped pages — the failure where an extractor returns nothing for a page that has real text while reporting success. Pass extracted_text with another engine's output (Reducto, Mistral OCR, LlamaParse, Docling, an in-house parser — as JSON, Markdown, or plain text) to certify THAT engine against the source PDF; omit it to have pdfmux extract the document itself and certify its own read. Returns the per-page audit — each page marked usable / silently-empty / recovered / review / unverifiable — the "N of M pages silently dropped" headline, and an overall PASS/REVIEW/FAIL verdict with a tamper-evident signature. Reuses pdfmux's own audit pass as the ground truth.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fmtNoauto
engineNoexternal
file_pathYes
extracted_textNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The description discloses behavioral traits such as returning per-page audit statuses (usable/silently-empty/recovered/review/unverifiable), a headline with count of silently dropped pages, and an overall verdict with tamper-evident signature. It also explains the ground truth method (reusing pdfmux's audit pass). No annotations exist, so the description carries full burden and meets it well.

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 description is a single paragraph that introduces the core concept first ('Audit an extraction of a PDF...') and then adds detail. It is efficient with no wasted words, though slightly dense.

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 the presence of an output schema, the description does not need to detail return values but still summarizes them. It covers main use cases and parameter semantics. Complexity is moderate and all key aspects are addressed, with minor gaps like error scenarios.

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?

The schema has 0% description coverage, but the description adds meaning: it explains that extracted_text can be from another engine or omitted, and names the engine as a parameter. It could be more specific about fmt and engine values, but overall it compensates for schema gaps.

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 tool audits a PDF extraction for silently-dropped pages, specifying the verb 'audit', resource 'extraction of a PDF', and unique failure mode. It distinguishes from sibling tools like convert_pdf or extract_structured by focusing on verification rather than conversion or extraction.

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 explains when to use the tool: pass extracted_text from another engine for certification, or omit it for self-certification. It provides clear context but does not explicitly state when not to use or list alternatives beyond the two modes.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NameetP/pdfmux'

If you have feedback or need assistance with the MCP directory API, please join our Discord server