Skip to main content
Glama

globalise_retrieve_document

Read-onlyIdempotent

Fetch one page's line-by-line transcription and metadata by document ID or URN, including languages, dates, license, and previous/next page links.

Instructions

Retrieve one page's transcription and metadata by document ID or URN. IDs look like "NL-HaNA_{archive}{inventory}{scan}" (URN form: "urn:globalise:..."). Returns the transcription line-by-line, metadata (languages, dates, license), previous/next page IDs, and links to the web viewer and the National Archives page scan. On very dense pages trailing lines may be trimmed to fit the response — text.truncated is then true and text.totalLines gives the full count (use globalise_view_document_ui for the complete page). To search by keywords use globalise_search_transcriptions; for sequential browsing use globalise_navigate.

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

Input Schema

NameRequiredDescriptionDefault
documentIdYesDocument ID or URN (e.g., "NL-HaNA_1.04.02_9966_0106" or "urn:globalise:NL-HaNA_1.04.02_9966_0106")

Output Schema

NameRequiredDescriptionDefault
idYes
textNo
urlsNo
archiveNo
documentYes
metadataNo
navigationNo
scanNumberYes
inventoryNumberYes

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 readOnly/idempotent/non-destructive, and the description adds substantive behavior they cannot express: the response shape (line-by-line transcription, metadata, prev/next IDs, viewer links) and a concrete truncation edge case with the exact flags (text.truncated, text.totalLines) plus the remedy tool. That is a genuine disclosure of a degradation mode an agent would otherwise misread as a complete page.

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?

Four compact sentences: purpose, accepted formats, return contents, then the truncation caveat and sibling routing. No filler, and the caveat is placed after the happy path where it is actionable rather than buried.

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 single-parameter read with a full output schema and complete annotations, nothing an agent needs is missing. The description even covers the one non-obvious failure mode (trimmed trailing lines) and names the tool that gives the complete page.

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% and the schema already supplies both ID examples, so the schema does most of the work. The description still adds a structural template for IDs (archive_inventory_scan) and confirms a single required key, giving slightly more than the baseline for a one-parameter tool.

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 first sentence names a specific verb and resource: 'Retrieve one page's transcription and metadata by document ID or URN.' The scope (single page) and key (ID/URN) are stated up front, which cleanly separates it from search-based siblings.

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 routes explicitly: keyword lookup goes to globalise_search_transcriptions, sequential browsing goes to globalise_navigate, and full untruncated pages go to globalise_view_document_ui. Both the alternatives and the conditions selecting them are named.

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