Skip to main content
Glama

inspect_pdf

Classify each PDF page as text, scanned, mixed, or blank using the text layer and image geometry, to identify which pages require OCR.

Instructions

Classify each page of a PDF as text / scanned / mixed / blank.

Uses the PDF text layer and image geometry only — no OCR is run. Use this first to decide whether (and which pages need) OCR.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It clearly explains the mechanism ('Uses the PDF text layer and image geometry only') and discloses a key limitation ('no OCR is run'), which is essential context for an agent deciding whether this tool is sufficient. It does not detail output structure, but that is less critical here.

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 compact and front-loaded: the first line states the core function and output categories, the second line clarifies mechanism and intended usage. Every sentence adds value with no repetition or filler.

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?

The tool is simple (one parameter, no output schema), and the description covers what it does, how it works, and where it fits in the workflow. It does not spell out the exact return structure or edge cases, but for an inspection tool the stated categories and intended sequencing are sufficient 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?

The single parameter 'path' has 0% schema description coverage, and the description does not explicitly define it. However, by repeatedly referencing 'a PDF', the description provides enough inference that the path is the location of the PDF file. It adds contextual meaning but does not fully compensate for the absent schema descriptions.

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 ('Classify'), identifies the resource ('each page of a PDF'), and names the exact output categories ('text / scanned / mixed / blank'). It also distinguishes itself from OCR workflows by explicitly stating 'no OCR is run', which separates it from the sibling tool ocr_pdf.

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 gives clear contextual guidance: 'Use this first to decide whether (and which pages need) OCR.' This tells an agent when to invoke the tool without explicitly naming the alternative tool or providing exclusion conditions, keeping it at a 4 rather than a 5.

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/phatpham9/markitdown-ocr-mcp'

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