Skip to main content
Glama
okra-project

okraPDF PDF MCP server

Official
by okra-project

Inspect Parsed HTML

inspect_html

Inspect a parsed PDF's text structure as clean HTML pages without page images or bounding boxes.

Instructions

Show the STRUCTURED text output of a parsed document: the canonical extracted nodes rendered as plain webpage-like HTML pages — no page images, no bounding boxes. Omit page to render the available pages together (capped, ~50 pages for long docs); pass page for one specific page. Uses canonical DocumentAgent nodes (not vendor playground facets) and returns status="ready" only when node-backed HTML exists, else a not-ready state. For the visual extraction (page images + bounding-box overlays) instead, use view_document.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoOptional 1-indexed page number to inspect. Omit to render every same-document HTML page in one inspector container.
facetNoDeprecated no-op retained for older clients. inspect_html always renders canonical document nodes.
selectorNoCSS selector/query to run inside the PDFQuery Inspector UI (e.g. "table", "[data-label=Table]").*
document_idYesokraPDF document ID to inspect.
parse_facetNoDeprecated no-op retained for older clients. inspect_html always renders canonical document nodes.
parse_if_missingNoDeprecated no-op retained for older clients. inspect_html never queues a parser run.
Behavior5/5

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

With no annotations, the description carries full burden and succeeds: discloses return status ('status="ready"' only when node-backed HTML exists, else not-ready state), page count cap, and exclusions ('no page images, no bounding boxes'). This goes beyond simple read/write hints.

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?

Four tightly written sentences: purpose, usage pattern, behavioral guarantee, and alternative tool. Every sentence earns its place, front-loaded with the main purpose, and no redundancy with schema descriptions.

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 no output schema, the description adequately conveys return status and rendering type. It covers key constraints (page cap, canonical nodes) and distinguishes from view_document. Minor gap: doesn't mention error/not-found behavior for invalid document_id, but overall sufficient.

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 coverage is 100%, so baseline is 3. The description adds value by explaining page behavior (omit vs pass), and clarifying deprecated parameters (facet, parse_facet, parse_if_missing) as no-ops. It doesn't cover selector semantics, but schema already does.

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's purpose: 'Show the STRUCTURED text output of a parsed document' with specific details about canonical nodes rendered as webpage-like HTML. It explicitly contrasts with view_document ('For the visual extraction... instead, use view_document'), distinguishing it from siblings.

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

Usage Guidelines5/5

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

Provides explicit usage instructions: omit page for all pages (capped ~50) or pass page for specific page. Clearly directs users to view_document for visual extraction, offering a concrete alternative. Also clarifies canonical vs vendor facets implicitly guiding when to use.

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/okra-project/pdf-mcp'

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