Skip to main content
Glama

globalise_view_document_ui

Read-onlyIdempotent

Open a document in an interactive viewer that pairs a zoomable IIIF scan with its line-numbered transcription, with optional search-term highlighting. Selecting transcription text sends it as context.

Instructions

Display a page for the user in an interactive scan-plus-transcription viewer. Shows a zoomable IIIF scan image beside its line-numbered transcription. Takes a document ID or URN; supports optional search-term highlighting. Selecting text in the transcription panel sends the selection to the assistant as a context note ("User selected text in document …: …").

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_view_document_ui"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewUUIDNoExisting viewer session to preserve (in-viewer page navigation). When live, the same UUID is kept and the page is swapped. Omit on first open.
documentIdYesDocument ID or URN (e.g., "NL-HaNA_1.04.02_9966_0106" or "urn:globalise:NL-HaNA_1.04.02_9966_0106")
highlightTermsNoSearch terms to highlight in the transcription

Output Schema

NameRequiredDescriptionDefault
idYes
urlsYes
metadataYes
viewUUIDNoViewer session UUID — pass to globalise_navigate_viewer to steer this open viewer.
highlightYes
imageWidthNoThe scan's native pixel width (for region coordinate projection)
navigationYes
imageHeightNoThe scan's native pixel height
iiifImageUrlYes
transcriptionYes
archivalContextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses a real side effect: selecting text in the transcription panel sends the selection to the assistant as a context note. It also clarifies this renders UI for the user rather than returning data, which annotations do not capture. Missing details like whether the call blocks or how the viewer session lifecycle works keep it from a 5.

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?

Front-loaded with the core action, then layers in the viewer composition, accepted inputs, and the selection-note behavior. Four compact sentences with no filler, though the closing selection-note sentence could be trimmed slightly.

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?

Given an output schema exists, the description needn't explain return values, and it covers the interaction model and inputs well. It leaves open the blocking/session behavior of the viewer, a minor gap for a UI-launching tool.

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?

Schema coverage is 100%, so all three parameters are already documented, including viewUUID's session-preservation semantics. The description only restates documentId (ID or URN) and highlightTerms (optional search-term highlighting) without adding new meaning, so the baseline 3 applies.

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?

States a concrete verb and resource: 'Display a page for the user in an interactive scan-plus-transcription viewer,' then specifies the paired scan/transcription panels. It is clearly a UI presentation tool, but it never names a sibling such as globalise_inspect_page_image to make the boundary explicit.

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?

Implies usage by saying it takes a document ID or URN and supports optional highlighting, and the schema's viewUUID hints at first-open vs in-viewer navigation. However, the description itself gives no explicit when-to-use/when-not guidance or named alternative for viewing a page.

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