Skip to main content
Glama

Inspect one mapped page (Tier-2 detail)

inspect_document_page

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 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

TableJSON Schema
NameRequiredDescriptionDefault
pageYesPhysical 1-based PDF page number to inspect.
documentRefYesThe document.sha256 from a prior 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.

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and meets it: it explicitly states 'Read-only; never rebuilds, never bills' and discloses that include_physical returns very large payloads. This gives the agent strong expectations about side effects, cost, and performance.

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 information-dense but not bloated. Purpose is front-loaded, the workflow constraint follows immediately, and every sentence contributes either usage sequencing, parameter guidance, or behavioral disclosure. No filler or redundant restatement of the schema.

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 3-parameter, no-output-schema tool with no annotations, the description is complete: it explains when to call it, what it returns at a sufficient level, how to reference the document, how to handle the heavy flag, and the read-only/no-cost behavior. Nothing critical for correct invocation 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, but the description adds real value beyond the schema: documentRef is 'served free from cache' and the map result is the preferred source, while include_physical is tied to 'raw positioned tokens/vector paths' and a concrete payload-size warning.

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 opens with a precise verb/resource pairing: 'Tier-2 detail for ONE page of an already-mapped datasheet.' It enumerates exactly what the page-level inspection returns — measured anatomy, headings, first lines, and module claims — and distinguishes it from the Tier-1 map, so an agent can immediately tell it apart from sibling tools.

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?

The description gives explicit sequencing: use AFTER extract_document_map, when the Tier-1 index says a page matters and its one-line summary is insufficient. It also provides the prerequisite input (document.sha256 from the map) and warns when the heavy include_physical option should or should not be enabled.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a clearly distinct role: extract_document_map builds the page/topic index, extract_pinout extracts pin data, inspect_document_page provides page-level detail, and read_document_map_instructions returns usage rules. There is no meaningful overlap between these contracts.

Naming Consistency5/5

All tool names follow a consistent snake_case verb-first pattern: extract_, inspect_, read_. Even though the verbs differ, the structure is uniform and predictable.

Tool Count4/5

Four tools is on the smaller side but appropriate for the focused workflow of document mapping, pinout extraction, and page inspection. Each tool earns its place in the pipeline.

Completeness3/5

The document map locates topics like ratings and dimensions, but there is no structured extraction tool for those sections—only pinout extraction is provided. Agents can partially work around this by inspecting pages, but the coverage is notably incomplete for a general datasheet analysis server.

Resources