Skip to main content
Glama

globalise_inspect_page_image

Read-onlyIdempotent

Fetch page scan image bytes for your own visual analysis, either the whole page or a zoomed region, to read details and re-transcribe garbled HTR passages.

Instructions

Returns page-scan image bytes for the assistant's own visual analysis. Fetches the scan (base64) — whole page or a region of it. The image is for your own analysis; to show the page to the user, use globalise_view_document_ui. Not for finding pages: use globalise_search_transcriptions. Use region 'full' (default) to see the whole page, or a region to zoom into details: read a specific passage, a name, a numeral, marginalia, seals, or stamps. Call it when the user highlights a region in the document viewer — a chat message or context note like "[Highlight: region pct:31.2,18.4,22.0,6.1 on document NL-HaNA_1.04.02_9966_0106 in viewer 3f2b…]" — passing that documentId and region verbatim, and the UUID after 'in viewer' as viewUUID. Region coordinates: 'pct:x,y,w,h' (percentage of the full image, recommended), 'crop_pixels:x,y,w,h' (pixels of the full image — use with nativeWidth/nativeHeight from a prior response), or 'x,y,w,h' (legacy IIIF pixels). The response includes nativeWidth/nativeHeight (the scan's true pixel size) and cropPixelWidth/cropPixelHeight (the returned crop's size). To read a small hand, request a tighter region rather than a bigger size: size is clamped per page shape to what arrives intact, and anything beyond that is downscaled before it reaches the assistant, so a narrower crop raises pixels-per-letter where a larger size raises nothing. A clamp is reported in note. quality 'gray' can help with faint ink. The corpus transcriptions are machine HTR: use this tool to re-transcribe a specific passage as a second opinion where the HTR looks garbled (strongest on short passages, proper names, numerals, and marginalia; on long dense text the HTR is often the better reading — say so). Transcribe what you actually see and flag uncertain readings. Especially valuable on non-Latin-script pages (Persian, Tamil, Chinese, ...), where the Latin-script HTR is known-unreliable. Auto-navigation: pass viewUUID (from a highlight message or the globalise_view_document_ui result) and the viewer zooms to the inspected region (navigateViewer defaults to true); a local (stdio) server also finds an open viewer for the page without it. Use globalise_navigate_viewer separately to steer the user's open viewer to a region without fetching bytes for your own analysis.

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": {
      "documentId": "<documentId>"
    },
    "name": "globalise_inspect_page_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoWidth of the returned image in pixels (its longer edge when the page's dimensions are unavailable) (200-1988). Omit it to fit the page automatically (up to 1568) — recommended. Whatever you pass is clamped per page shape so the crop is never upscaled and never exceeds what the model accepts intact: a larger size is downscaled before the model sees it, so to read a small hand request a tighter region, not a bigger size. Sizes align to multiples of 28 for clean coordinate handling.
regionNoIIIF region: 'full' (default), 'square', 'pct:x,y,w,h' (percentage of the full image), 'crop_pixels:x,y,w,h' (pixels of the full image — use with nativeWidth/nativeHeight from a prior response), or 'x,y,w,h' (legacy IIIF pixels). E.g. 'pct:0,60,40,40' for the bottom-left 40%.full
qualityNoImage quality — 'gray' can help read faint ink or inscriptionsdefault
rotationNoClockwise rotation in degrees
viewUUIDNoViewer session to steer — from a highlight message ("… in viewer <uuid>") or a globalise_view_document_ui result. Pass it to auto-zoom that viewer. When omitted, a local (stdio) server finds an open viewer for this page; a remote (HTTP) server does not.
documentIdYesDocument ID or URN (e.g., "NL-HaNA_1.04.02_9966_0106" or "urn:globalise:NL-HaNA_1.04.02_9966_0106")
navigateViewerNoAuto-navigate the open viewer to the inspected region (no effect when region is 'full' or no viewer is open).

Output Schema

NameRequiredDescriptionDefault
noteNoCaveats about how this result was computed — e.g. a requested size clamped down because the region has no more real pixels, or because anything larger would be downscaled before the assistant sees it (a tighter region is then the way to more detail).
scanNo
errorNo
regionYes
qualityNo
rotationNo
viewUUIDNoThe active viewer session this inspect targeted (for follow-up globalise_navigate_viewer calls)
inventoryNo
viewerUrlNoWeb viewer deep link for the whole page
cropRegionNoThe region as sent to the IIIF server (crop_pixels: prefix stripped)
documentIdYes
fetchTimeMsNo
nativeWidthNo
nativeHeightNo
requestedSizeNoEffective size after the never-upscale and vision-budget clamps
cropPixelWidthNoActual pixel width of the returned crop (read from the bytes)
regionRecoveryNoOut-of-bounds recovery hint — retry with clampedTo or a corrected box within validRange.
cropPixelHeightNo
viewerNavigatedNoTrue only when the open viewer is actively polling and the auto-zoom was delivered. When the zoom was merely queued (iframe not polling), viewerZoomQueued is true instead.
viewerZoomQueuedNoTrue when the auto-zoom command was queued but the viewer iframe has not polled recently — it applies if/when the iframe polls. On hosts whose app bridge does not support server tools, queued commands are never delivered.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare this a read-only, idempotent, non-destructive fetch, and the description still adds substantial behavior the annotations cannot: size clamping per page shape, downscaling before the image reaches the model, a `note` field reporting clamps, and auto-navigation side effects via viewUUID. It also sets expectations for the analysis output ('transcribe what you actually see and flag uncertain readings') and its known weakness on long dense text.

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

Conciseness4/5

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

Purpose and the primary exclusions are front-loaded, and the paragraph flows from what it does to how to call it to the analysis caveats. It is long, and the size-clamping rationale is stated in both the description and the `size` schema entry, which is mild duplication rather than waste.

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 7-parameter tool with an output schema, the description covers everything an agent needs: invocation triggers, coordinate derivation, viewer side effects, quality/rotation hints, and how to interpret the returned dimensions. Return-value explanation is minimal because the output schema carries it.

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

Parameters5/5

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

Schema coverage is already 100%, yet the description adds decision-relevant meaning: the three region coordinate syntaxes with a recommendation of 'pct:', the rule that a tighter crop beats a larger size for legibility, and that crop_pixels should be paired with nativeWidth/nativeHeight from a prior response. The highlight-message-to-parameter mapping is guidance found nowhere in the schema.

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?

Opens with a specific verb and resource: 'Returns page-scan image bytes for the assistant's own visual analysis,' and immediately scopes it ('whole page or a region of it'). It explicitly separates itself from globalise_view_document_ui (showing the user) and globalise_search_transcriptions (finding pages), so an agent can route correctly without opening another 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 concrete when-to-use triggers — a highlight message with region percentages, a garbled HTR passage, non-Latin-script pages — plus explicit when-not-to-use with named alternatives in each case. It even describes how to parse the highlight string into documentId, region, and viewUUID, and steers steer-the-viewer-only work to globalise_navigate_viewer.

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