Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

GLOBALISE serves machine transcriptions (HTR) of ~4.8M pages of Dutch East India Company (VOC) records, 17th-18th century, mostly early-modern Dutch. Document IDs look like NL-HaNA_1.04.02_9966_0106 ({archive}{inventory}{scan}); any page can be opened in the web viewer at https://transcriptions.globalise.huygens.knaw.nl/detail/urn:globalise:{id} — the viewer route needs the URN prefix, so a bare ID yields a dead link.

Corpus caveats that apply to every tool:

  • Language metadata: "unknown" means not yet classified, not unidentifiable. The code "art" ("Cipher") marks encrypted Dutch text, not an artificial language. The language aggregation counts only pages carrying transcribed text: blank pages (tokenCount 0) have no language at all, so the facet can sum to less than the page total — that shortfall is blank pages, not a classification gap.

  • Scans are not always one page: many inventories are photographed as two-page openings, and line order follows the layout analysis, so both halves and their marginal columns interleave. Consecutive lines are therefore not necessarily consecutive text — use globalise_inspect_page_image or the viewer when reading order matters for a quotation.

  • The HTR model was trained on Latin script only: transcriptions of non-Roman-script languages (Persian, Bengali, Tamil, Sinhala, Chinese, Japanese, Gujarati, Buginese, Old Church Slavonic, Ancient Greek, Ancient Hebrew) are unreliable gibberish — offer the user the National Archives page-scan link from the document metadata instead. Malay ("msa") is a macrolanguage with no script metadata, so offer scan links for it too.

  • The search tokenizer strips punctuation and treats hyphens as word separators ("oost-indie" matches like "oost indie").

  • Response size: to stay within the client's per-result limit, the four list tools (globalise_search_transcriptions, globalise_find_archival_documents, globalise_lookup_commodity, globalise_lookup_measure) may return fewer than the requested size — pagination.hasMore is then true and a note states how many of how many results were kept; recover the rest by paging with a higher from, narrowing filters, or lowering size (or fragmentSize for search). globalise_retrieve_document and globalise_navigate may likewise drop trailing transcription lines on dense pages, signaled by text.truncated + text.totalLines. The reported total count is never affected by either trim.

  • Typical workflow: scope with globalise_find_archival_documents (local finding aids), search transcriptions, then retrieve or view individual pages. Two local glossaries resolve VOC vocabulary alongside search — globalise_lookup_commodity (trade good → the Dutch term the corpus uses, a sourced definition, and any period spelling variants) and globalise_lookup_measure (unit of weight/volume/length → its type, spelling variants, and period conversion ratios). globalise_inspect_page_image fetches a page scan (or a region of it) as an image for the assistant's own visual reading — call it when the user highlights a region in the document viewer, or to re-transcribe a specific passage as a second opinion on the HTR. globalise_navigate_viewer zooms/pans the user's open viewer to a region (viewUUID from globalise_view_document_ui).

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
globalise_search_transcriptionsA

Full-text search of GLOBALISE VOC (Dutch East India Company) transcriptions. ~4.8M HTR-transcribed pages from the Nationaal Archief (1.04.02), 17th-18th century. Free-text query over the page transcriptions: covers the full corpus, with filters for inventory number(s), inventory range(s) ("1053-4454", expanded server-side), a year window (yearFrom/yearTo, resolved through the local archival index to overlapping inventories — approximate, and blind to the ~28% of inventories the index lacks, mostly the 9000-11024 Zeeland copies; the note states the resolved count) and language(s). Query syntax (Elasticsearch): a bare space means OR — use uppercase AND for all-terms; plus NOT, wildcards (* ?), fuzzy matching (~N, for HTR/OCR spelling noise), exact phrases in quotes; query defaults to "" (match everything). Languages accept ISO 639-3 codes or English names; matchAll=true requires pages to contain ALL listed languages (bilingual documents) by post-filtering a capped candidate window — totals are then a lower bound, see the response note. Returns paginated hits with highlighted fragments, plus language/inventory/document aggregations. For statistics only (e.g. the language breakdown of an inventory), use query="" with size=1. Each result carries both id (URN form) and document (bare ID); open a page in the web viewer at https://transcriptions.globalise.huygens.knaw.nl/detail/ + the URN-form id. For a known document ID use globalise_retrieve_document. Use fragmentSize to trade snippet length for response size (lower = smaller, default 200).

globalise_retrieve_documentA

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.

globalise_navigateA

Fetch the previous or next page in a GLOBALISE VOC inventory. Sequential reading through Dutch East India Company records (Nationaal Archief 1.04.02), relative to a document ID. Returns the target page's details (text, metadata, links); on very dense pages trailing transcription lines may be trimmed to fit the response (flagged by text.truncated + text.totalLines). Errors if no page exists in that direction.

globalise_find_archival_documentsA

Search finding-aid metadata to scope the archive before full-text search. A local index of 228K+ entries. Two sources: OBP digitized indexes (~227K entries: settlement, year, folio, inventory, description) and GM Generale Missiven (~950 official letters: chamber, dates, scan URLs, and — for the ~558 published in RGP — published-edition links to Retroboeken scans + GitHub plain text). The query field uses SQLite FTS5 — a bare space means AND — all terms must appear; plus OR/NOT, prefix*, "exact phrase", and (expr) grouping. Terms with special characters (hyphens, slashes, apostrophes) are auto-quoted for you while your AND/OR/NOT operators are kept intact, so peper OR oost-indie works as written. Only input FTS5 itself cannot parse (unbalanced quotes/parens) falls back to a whole-phrase search, flagged in the response note. Note: settlement is OBP-only; chamber/htrAvailable are GM-only; folio filters require an inventoryNumber. Inventory numbers in the results feed the inventoryNumber filter of globalise_search_transcriptions to reach the actual transcribed pages.

globalise_lookup_commodityA

Resolve a trade good to the historical term the corpus uses, with a definition. A ~3,500-entry glossary: bilingual labels plus a sourced, confidence-rated definition per concept. Two main uses: (1) resolve a modern/English term to the historical, predominantly Dutch word the corpus uses (coffee→koffie); (2) read a sourced definition. Some concepts also carry period spelling variants (altLabels), but only ~10% do — pepper, coffee, nutmeg have none — so for recall in globalise_search_transcriptions take the Dutch label, OR in any altLabels, then add fuzzy (~1)/wildcards (the corpus prefers c- over k-, -ij over -ie: koffie→coffij). The query field uses SQLite FTS5 over labels + variants + definitions — a bare space means AND — all terms must appear; plus OR/NOT, prefix*, "exact phrase"; label/variant hits rank above definition hits. Omit the query to page through the glossary alphabetically. Every definition carries its definitionSource and a confidence rating — over half are LLM-generated, so present low/medium-low ones tentatively, say only what the definition states, and prefer the authoritative sources (wnt, aat, vocGlossarium, PoolParty). prefLabelEn is occasionally a mistranslation — prefer the definition. The raw concept ID stays internal, but each result includes thesaurusUrl, a public permalink to the concept in the GLOBALISE thesaurus (its SKOS hierarchy of broader/narrower terms + cited source, often a Zotero record) — offer it when a user wants to place a good in its trade taxonomy or follow its source.

globalise_lookup_measureA

Look up historical weights and measures and their conversion ratios. ~213 units of weight, volume, length, area, quantity, and misc, from the 1764–1771 Memoriën van Munten, Maaten, en Gewigten. Each result reliably carries: the unit label, its type (weight/volume/length/area/quantities/misc — load-bearing, since a few labels like roede/voet are homonyms distinguished only by type), period spelling variants, and the conversion ratios it appears in (~731 across the dataset). This is NOT a precise unit converter: early-modern units were unstable, so a ratio holds only for the settlement and commodity it was recorded for (a bahar of pepper ≠ a bahar of cloves) — always read each conversion against its context field, and do not convert to modern equivalents without it. The context often pins the commodity as well as the place (e.g. "rijst, Batavia", "goud, zilver, Mokka"), and the same unit's ratio routinely differs by good — so the context is where the commodity-specific value lives, not just the prose definition. A self-referential ratio ("1 X = 1 X") attests the unit was used in that context without a recorded local equivalence. Spelling variants double as query expansion: feed them into globalise_search_transcriptions (which is spelling-blind) to catch documents a modern spelling misses. Definitions are sparse (only ~22% of units carry any, mostly Dutch) — a bonus, not the core; most units have none. The query field uses SQLite FTS5 over label + variants + definition text — a bare space means AND — all terms must appear; plus OR/NOT, prefix*, "exact phrase"; label/variant hits rank above definition hits. Terms with special characters (hyphens, slashes, apostrophes) are auto-quoted for you while your AND/OR/NOT operators are kept intact, so peper OR oost-indie works as written. Only input FTS5 itself cannot parse (unbalanced quotes/parens) falls back to a whole-phrase search, flagged in the response note. Omit the query to page through the unit list alphabetically.

globalise_inspect_page_imageA

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.

globalise_navigate_viewerA

Zooms or pans the user's already-open page viewer to a region. Use it to steer the user's view to a detail. Requires a viewUUID from a prior globalise_view_document_ui call (the viewer must be open). Not for opening the viewer — use globalise_view_document_ui. Not for visual analysis — use globalise_inspect_page_image (which also zooms the viewer whose viewUUID you pass).

By default, region coordinates are in full-image space (percentages or pixels of the original scan), not relative to the current viewport — the same pct:x,y,w,h used in globalise_inspect_page_image targets the identical area here. Exception: when a command includes relativeTo, region is interpreted in that inspected crop's local coordinate space.

Coordinates need to come from an inspected image: the scan's layout is unknown until globalise_inspect_page_image has returned it, so inspect the target area first and reuse (or refine) those coordinates here.

Region formats: 'pct:x,y,w,h' (percentage of the full scan), 'crop_pixels:x,y,w,h' (pixels of the full scan — bound with nativeWidth/nativeHeight from globalise_inspect_page_image; when used with relativeTo + relativeToSize it is instead pixels within that crop), 'x,y,w,h' (legacy IIIF pixels), or 'full' | 'square'. Out-of-bounds regions are rejected with a recovery hint — correct and retry.

Coordinate shortcut: to zoom to a sub-region of a prior inspect crop, pass relativeTo with the crop's region string and give region in crop-local coordinates (pct: directly, or crop_pixels: with relativeToSize:{width:cropPixelWidth,height:cropPixelHeight}) — the server projects to full-image space deterministically.

The deliveryState field says whether the iframe drained the commands immediately (delivered_recently), the viewer exists but has not polled recently so the commands are queued (queued_waiting_for_viewer — typical when scrolled offscreen), or no viewer has connected yet (no_live_viewer_seen). In the queued case the command is preserved server-side and applies when the viewer resumes polling — a normal delivery state, not a failure. no_live_viewer_seen is normal in the first few seconds after globalise_view_document_ui returns (the widget iframe starts polling only once the host renders it) — the queued commands apply on its first poll, so there is no need to wait or re-send. An unknown or expired viewUUID is a different, explicit error (sessions expire after ~30 min idle; re-open with globalise_view_document_ui). Host caveat: the reverse channel requires the host's MCP Apps bridge to support app-initiated tool calls (serverTools) — on hosts without it the iframe never polls and queued commands are never delivered; the response says so once the viewer is >30s old; then give the user a viewer link (globalise_inspect_page_image is for reading the detail yourself).

globalise_poll_viewer_commandsA

Internal channel for the document-viewer iframe. It drains the navigation commands that globalise_navigate_viewer queued for one viewUUID. Not for the assistant: a call from the assistant consumes the queued commands, so the zoom never reaches the user's viewer.

globalise_view_document_uiA

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 …: …").

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
GLOBALISE Document ViewerInteractive document viewer for VOC transcriptions with IIIF images

TDQS

A4.3/5.0

Scored across 10 tools

Disambiguation4/5

The three access paths are explicitly delineated: metadata search (find_archival_documents), full-text search (search_transcriptions), and direct/sequential retrieval (retrieve_document, navigate), and the descriptions cross-reference each other to prevent misselection. The trickier pairs are also spelled out — inspect_page_image (own analysis) vs view_document_ui (show the user) vs navigate_viewer (steer without fetching) — but inspect_page_image also auto-navigates the viewer, which blurs the line with navigate_viewer, and poll_viewer_commands is an assistant-forbidden tool that sits in the same namespace as callable tools.

Naming Consistency5/5

Every tool uses the same globalise_ prefix followed by a snake_case verb_noun construction (find_archival_documents, search_transcriptions, retrieve_document, lookup_commodity, navigate_viewer). The only mild wrinkle is that navigate/navigate_viewer and inspect_page_image/view_document_ui use different verbs for related actions, but the pattern itself is unbroken.

Tool Count4/5

Ten tools is a well-scoped set for a research corpus spanning discovery, retrieval, glossary lookup, and viewer control, with each tool earning a distinct role. One tool (poll_viewer_commands) is explicitly internal to the iframe and not intended for the assistant, so it is dead weight in the assistant-facing surface.

Completeness5/5

The lifecycle is genuinely covered: scope via finding-aid metadata, full-text search with filters and aggregations, direct and sequential page retrieval, visual inspection of scans, glossary resolution for commodities and measures, and a user-facing viewer. Minor gaps (no citation/export tool, no inventory-level browse listing) are workarounds via existing search and aggregation features.

Maintenance

ActivityNo data
ResponsivenessNo recent community issues