Skip to main content
Glama

globalise_search_transcriptions

Read-onlyIdempotent

Search 4.8 million Dutch East India Company transcription pages by full text, inventory, year, and language to locate VOC records and highlighted snippets.

Instructions

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

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "globalise_search_transcriptions"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoPagination offset (default: 0)
sizeNoResults per page (1-500, default: 10). Large result sets consume more context.
queryNoSearch query (Elasticsearch). A space means OR — matches pages with ANY term; write uppercase AND for all-terms (peper AND koffie). Also NOT, wildcards (* ?, including leading *schip), fuzzy ~N (the key tool for HTR/OCR spelling noise — coffij~1 over koffie), exact phrases in quotes, proximity ("phrase"~N). NB: opposite default from globalise_find_archival_documents (FTS5, where space = AND). Defaults to "*" (match everything) — combine with filters and size=1 to get aggregation statistics cheaply.*
sortByNoSort by: "_score" (relevance), "document" (doc ID), "invNr" (inventory). Default: "_score"_score
yearToNoLatest year (inclusive); see yearFrom. Either bound may be given alone.
matchAllNoWith 2+ languages: require pages to contain ALL of them (bilingual/multilingual). Post-filters the first 500 raw hits (one candidate window, independent of from/size); total is a lower bound unless the note says all candidates were scanned.
yearFromNoEarliest year (inclusive) — resolved via the local archival index to the inventories whose finding-aid dates overlap the window, then applied as an inventory filter (intersecting any inventoryNumber/inventoryRange). Approximate: most inventories span 1-3 years, and the index dates ~4,981 of the corpus's ~6,890 inventories (the 9000-11024 Zeeland-copy series is largely unindexed), so pages in unindexed inventories are excluded — the note reports the resolved count.
languagesNoFilter by language(s), as ISO 639-3 codes ("nld", "fas") or English names ("Dutch", "Persian"); mixing is fine. Default: documents matching ANY listed language.
sortOrderNoSort order: "asc" or "desc" (default: "desc")desc
fragmentSizeNoMax length (characters) of each highlighted snippet in highlightedFragments. Lower = smaller responses; higher = more context per hit. 20-500, default 200 (the upstream API default is 100).
inventoryRangeNoRestrict to an inclusive span of inventory numbers, "A-B" (one or several). Expanded server-side, so a whole series is one filter: "1053-4454" = Overgekomen Brieven en Papieren (chronological, 1607-1794), "7527-11024" = Zeeland chamber copies. Lettered part-inventories (9014A) are not matched by a range — list them in inventoryNumber.
inventoryNumberNoRestrict to inventory number(s). Single: "9966" or multiple: ["9966", "4293"]. Unions with inventoryRange.

Output Schema

NameRequiredDescriptionDefault
noteNoCaveats about how this result was computed — e.g. how an inventoryRange/year filter was resolved (and its coverage limit), a matchAll scan cap, or a size-cap that shortened snippets and/or dropped trailing results to fit the response budget (it then states how many of how many were kept and how to recover the rest).
totalYes
resultsYes
paginationYes
aggregationsNoFacet counts over the filtered result set. A facet for a field you are filtering ON is omitted (upstream computes self-facets without their own filter, i.e. as unfiltered corpus counts) — the note field says so when it happens.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent/open-world; the description adds substantive behavior the annotations cannot: the year window is resolved through an approximate local index that is blind to roughly 28% of inventories, matchAll post-filters a capped candidate window so totals become a lower bound, and range filters are expanded server-side. It also supplies the web-viewer URL pattern for a returned page.

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 is front-loaded and every clause carries operational content, but it is one long paragraph with deep parenthetical nesting (the year-window caveat in particular) that is harder to scan than a short bulleted structure would be. Nothing is outright padding.

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 12-parameter search tool with an output schema, the description covers the gaps that matter: query dialect, approximate filters, lower-bound totals, aggregation shortcut, and the viewer URL. Nothing an agent needs to call it correctly or interpret counts 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% and the parameter descriptions already carry most syntax detail, so the baseline is 3; the prose still adds integration-level meaning, such as combining query="*" with size=1 to cheaply obtain aggregation statistics, fragmentSize trading snippet length against response size, and how year and inventory filters intersect. The overlap with the schema text keeps it from a 5.

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 ('Full-text search of GLOBALISE VOC transcriptions') and immediately scopes it with corpus size, source archive, and period. It also distinguishes itself from siblings by naming globalise_retrieve_document for known document IDs and by contrasting its query default with globalise_find_archival_documents.

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 explicit when-to-use routing: use query="*" with size=1 for statistics only, use globalise_retrieve_document for a known ID, and use uppercase AND here versus the opposite space-default in the FTS5 sibling. It also states when fragmentSize should be lowered and how to combine filters with a match-all query.

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