Skip to main content
Glama
tna-discovery-mcp

tna-discovery-mcp

by ianderso

search_records

Read-only

Search UK National Archives catalogue descriptions across TNA and 2,500 other archives by keyword, date range, series, or department to locate records and finding aids.

Instructions

Search Discovery's catalogue descriptions: TNA's records and 2,500 other archives'.

Dates select records whose covering dates overlap the range. Each hit has its id (for get_record), reference, description, covering dates, holding archive, digitised (TNA holds an image) and the record's page. A WO 97 item also carries soldier, its description parsed. Hits are finding aids, not records; a zero covers only what was searched.

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": "search_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage of results, 1-based.
sortNoOrder. Relevance ties shuffle between pages; page with 'reference' or 'date'.relevance
countNoHits per page (1-100).
queryNoWords to find in descriptions, e.g. 'atkinson manchester'. All words must match; OR, NOT, "phrases" and a trailing * work.
seriesNoA series code, e.g. 'WO 97' or 'PROB 11'.
date_toNoCovering dates to: '1834' or '1834-12-31'.
held_byNo'tna' for TNA's own records, 'other' for other archives', or an Archon code such as '182'. Default all.
date_fromNoCovering dates from: '1831' or '1831-06-15'.
departmentNoA TNA department code, e.g. 'WO' or 'HO'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, the description enumerates what a hit contains (id, reference, description, covering dates, holding archive, digitised flag, page) and flags the special WO 97 ``soldier`` field. Most importantly it discloses a non-obvious semantic caveat — "Hits are finding aids, not records; a zero covers only what was searched" — which prevents an agent from treating result counts as complete record counts.

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?

The opening clause is front-loaded with purpose and corpus, and every sentence carries new information — result fields, the soldier special case, and the finding-aid caveat. Some sentences are telegraphic to the point of being slightly cryptic ("a zero covers only what was searched"), costing a little clarity.

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 nine-parameter, open-world search with no output schema, the description does the heavy lifting by describing the shape of a hit, which an agent would otherwise have to discover by trial. Filter syntax and pagination are covered by the schema, so nothing essential is missing.

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 description coverage is 100%, so every one of the nine parameters is already documented in the schema, putting this at the baseline. The only genuine addition is the overlap rule for the date range ("Dates select records whose covering dates overlap the range"), which clarifies date_from/date_to beyond the schema's bare format examples.

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?

"Search Discovery's catalogue descriptions" gives a specific verb plus a named corpus, and the scope is bounded (TNA plus 2,500 other archives). The follow-up clause about the hit's ``id`` (for get_record) implicitly separates it from the retrieval sibling, so an agent can distinguish this from get_record without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description makes clear this is the discovery/search entry point and explicitly routes to get_record via the hit id, giving a usable when-to-use context. It does not, however, state when to prefer it over siblings like browse or find_soldier (the latter being only obliquely referenced through the WO 97 ``soldier`` field).

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