Skip to main content
Glama

gb_search_govuk

Read-onlyIdempotent

Search GOV.UK for tribunal decisions, HMRC manuals, CMA cases, and other official documents. Filter by document type, date, and organisation to locate authoritative legal and regulatory information.

Instructions

Search GOV.UK documents - tribunal decisions, HMRC manuals, CMA cases and more.

Maps to the GOV.UK Search API (www.gov.uk/api/search.json - confirmed live 2026-07-07: keyless, Open Government Licence v3.0). One upstream aggregating many institutions; filter with document_type. Legally weighty types with live-verified totals (2026-07-07): employment_tribunal_decision (132,162), hmrc_manual_section (85,315), residential_property_tribunal_decision (17,088), employment_appeal_tribunal_decision (2,571), cma_case (2,565), utaac_decision (2,031), tax_tribunal_decision (1,414), asylum_support_decision (101).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNomax items to return (1..100).
queryNofull-text search terms.
startNoresult offset for pagination (0-based).
to_dateNoISO 8601 date (YYYY-MM-DD), inclusive. Same server-side filter.
from_dateNoISO 8601 date (YYYY-MM-DD), inclusive - passed server-side via ``filter_public_timestamp`` (unlike Find Case Law, GOV.UK supports this).
organisationNoGOV.UK organisation slug, e.g. ``"competition-and-markets-authority"``.
document_typeNoGOV.UK ``content_store_document_type`` slug (see above).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsNo
totalYes
query_echoNo
dataset_noteNowww.gov.uk Search API + Content API (keyless, Crown copyright, Open Government Licence v3.0) - one upstream aggregating many institutions' documents: employment tribunal decisions, employment appeal tribunal decisions, tax tribunal decisions, Upper Tribunal (AAC) decisions, residential property tribunal decisions, HMRC internal manuals, CMA competition cases and more (filter by document_type). GOV.UK documents have no neutral-citation or ELI scheme; human_readable_citation is '{Title} ({document type}, {date}, GOV.UK)'. Tribunal decisions carry the judgment as a PDF attachment with a short HTML body; HMRC manual sections carry the full text in body_html.
Behavior5/5

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

Beyond the readOnly and idempotent annotations, the description discloses that the API is keyless, under the Open Government Licence v3.0, and confirmed live as of 2026-07-07. It also provides live-verified totals for legally weighty document types, adding concrete behavioral context about the upstream data source and filtering behavior.

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 description is front-loaded with the core purpose, then adds useful API mapping and document type details. The long list of type counts is valuable but somewhat verbose, so it earns a strong score rather than a perfect one.

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?

Annotations cover safety and idempotency, the schema covers all parameters, and an output schema exists, so the description only needs to add real-world context. It provides the exact endpoint, license, live verification date, and document type options, making it complete for agent selection and invocation.

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?

The schema already documents all 7 parameters with descriptions (100% coverage). The main description adds a curated list of valid document_type slugs with raw counts, directly enriching the document_type parameter beyond the schema's "see above" note. Other parameters are not further elaborated, so it stays slightly above baseline.

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 description opens with "Search GOV.UK documents - tribunal decisions, HMRC manuals, CMA cases and more," specifying the verb and resource clearly. It distinguishes itself from siblings like gb_search_case_law by naming the GOV.UK API and listing concrete document types, making the tool's purpose unambiguous.

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 clearly implies when to use this tool by listing supported content types and noting it maps to the GOV.UK Search API. However, it does not explicitly state when not to use it or mention alternative tools like gb_search_case_law, so it provides context but no exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/matematicsolutions/gb-eli-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server