Skip to main content
Glama

inspect

Read PDF page count, metadata, and per-page facts to verify document structure before extraction, OCR, or citation.

Instructions

Document and media evidence when Markdown is not enough. video_timeline (bounded scene/cue timeline) and render_frame (actual decoded frames), and cite_check (quote/location support, not semantic truth), are anymd Pro; PDF operations: inspect (page facts, metadata), render_page (PNG images), extract_regions (crop bounding boxes), ocr_pages / analyze_regions (configured OCR or vision provider), structure (JSON with document map, elements, geometry; profile quality|research adds trust and accessibility reports), compare (page-level diff of sources[0] vs sources[1]).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "operation": "<operation>",
      "sources": "<sources>"
    },
    "name": "inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
ocrNoLocal OCR engine for ocr_pages: auto, vlm, or tesseract. Omit to use the configured command provider.
scaleNo
profileNostructure only: fast (default), quality, or research (adds safety, trust, accessibility).
sourcesYes
timelineNovideo_timeline only (required there): half-open playback window with required end_ms, at most ten minutes and twenty detected-cut scenes. caption only samples one frame per scene through a user-configured local-command adapter.
citationsNocite_check only: 1–100 quotes with required page and bounding_box; exactly one PDF source.
languagesNo
max_pagesNo
operationYes
timeout_msNo
transcriptNovideo_timeline only: also attach timed ASR cues from preinstalled local Qwen3-ASR weights. Never downloads models. Default false.
max_regionsNo
sample_pagesNo
include_imageNo
normalizationNo
timestamps_msNorender_frame only: playback timestamps in integer milliseconds (at most twenty). Returns decoded frame metadata with the actual decoded timestamp.
include_metadataNo
max_output_charsNo
max_pixels_per_pageNo
expected_source_sha256Nocite_check and video operations: fail if the admitted source's SHA-256 differs from this hexadecimal value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.1

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It usefully discloses that cite_check is "quote/location support, not semantic truth," that structure profiles can add trust and accessibility reports, and that compare is a page-level diff of sources[0] vs sources[1]. It still omits permissions, side effects, return format, and error behavior for the various operations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first sentence. The second sentence is a dense run-on list of operations with nested parentheticals and semicolons, making it hard to scan despite being relatively compact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 20-parameter, multi-operation tool with no annotations and no output schema, the description provides only a high-level operation list. It does not explain parameter semantics, return values, or operational constraints such as permissions and side effects, leaving significant gaps an agent would need to fill.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 35%, so the description needs to compensate, but it leaves most of the 20 parameters (e.g., max_pages, sample_pages, include_image, max_regions, scale) unexplained. Much of what it does say about operations duplicates the schema's const descriptions for the operation field.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool provides "Document and media evidence when Markdown is not enough" and enumerates concrete operations such as render_page, extract_regions, structure, and compare. That makes the overall purpose clear, but it does not explicitly distinguish this tool from the sibling tools outline, read, and search, and the name "inspect" remains broad.

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?

It gives a broad condition for use ("when Markdown is not enough") and identifies the available PDF/media operations. However, it does not say when to choose this tool over outline, read, or search, nor does it state when not to use it or what prerequisites each operation requires.

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

Deploy Server

Other Tools