Skip to main content
Glama

Inspect one mapped page (Tier-2 detail)

datasheetvend_inspect_document_page
Read-onlyIdempotent

Tier-2 detail for ONE page of an already-mapped datasheet: the full measured anatomy (text metrics, MuPDF geometry census, structural geometry signals), the page's own headings and first lines, and which modules claim the page. Use it AFTER datasheetvend_extract_document_map, when the Tier-1 index says a page matters and its one-line summary is not enough. Pass the document.sha256 from the map (served free from cache). Set include_physical=true ONLY when you truly need the raw positioned tokens/vector paths — that payload can weigh hundreds of KB for one dense page. Read-only; never rebuilds, never bills.

Input Schema

NameRequiredDescriptionDefault
pageYesPhysical 1-based PDF page number to inspect.
documentRefYesThe document.sha256 from a prior datasheetvend_extract_document_map result (preferred), or the same document path/URL.
include_physicalNoInclude the raw MuPDF physical reconstruction (positioned tokens, vector paths). Heavy — default false.

Output Schema

NameRequiredDescriptionDefault
pageNostatus page_out_of_range: the page that was asked for
cachedYesWhether served from the Document Map cache
statusYesok, or page_out_of_range when the map has no such page
inspectionNostatus ok: document_map_page_inspection_v1 (page, form, headings, claimed_by_modules, anatomy, physical_map)
total_pagesNostatus page_out_of_range: the map's page count

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover read-only and idempotency, but the description adds substantial context beyond them: cache-served with no billing, never rebuilds, and a payload warning that include_physical can reach hundreds of KB for a dense page. That cost/size disclosure is the kind of thing annotations cannot express. It stops short of describing output structure or failure modes, which is acceptable given an output schema exists.

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?

Three sentences, front-loaded with what it returns, then when to call it, then how to call it. No filler; the payload-size caveat is placed exactly where the agent makes the include_physical decision.

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

Completeness5/5

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

For a read-only drill-down with an output schema, all deciding information is present: prerequisite tool, selection criteria, key parameter provenance, and the one optional parameter's cost tradeoff. Nothing needed to invoke it correctly is missing.

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 the baseline is 3; the description adds real guidance the schema does not, namely that documentRef should be the document.sha256 from a prior map result and that it is served free from cache. It also reinforces include_physical's weight, though some of that duplicates the schema's own 'Heavy — default false' note.

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?

States a specific verb and resource ('Tier-2 detail for ONE page of an already-mapped datasheet') and enumerates what is returned: measured anatomy, headings/first lines, and claiming modules. It explicitly positions itself relative to datasheetvend_extract_document_map, so an agent can separate the two without opening a schema.

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?

Gives an explicit sequencing rule ('Use it AFTER datasheetvend_extract_document_map') plus the triggering condition ('when the Tier-1 index says a page matters and its one-line summary is not enough'). It also names the one real decision point, include_physical, and gates it with 'ONLY when you truly need'.

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