Skip to main content
Glama

Search GOV.UK

govuk_search
Read-onlyIdempotent

Search GOV.UK's official content database to find government information, services, and documents using specific queries and filters.

Instructions

Search GOV.UK's 700k+ content items using the official Search API.

Returns a list of matching content items with title, description, link, format, owning organisation(s), and last updated timestamp.

Use filter_format to narrow to specific content types (e.g. 'transaction' for citizen-facing services, 'guide' for guidance, 'publication' for official documents). Use filter_organisations to restrict to a department.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYesSearchInput with query, count, start, optional format/org filters, and optional sort order.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe free-text query that was searched.
totalYesTotal matching results across all pages on GOV.UK.
startYesOffset used for this page (zero-based).
countYesMax results requested for this page.
returnedYesNumber of results actually returned in this response.
has_moreYesTrue if more results exist beyond this page. Re-call with start=start+returned to fetch the next page.
resultsNoMatching pages. Use the `link` field of any result as the `base_path` input to govuk_get_content for the full item.
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=true. The description adds valuable context beyond annotations: it discloses the scale ('700k+ content items'), return format details ('title, description, link, format, owning organisation(s), and last updated timestamp'), and API source ('official Search API'), enhancing behavioral understanding without contradictions.

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?

The description is front-loaded with the core purpose, followed by return details and usage tips in three concise sentences. Each sentence adds value: the first sets scope, the second outlines outputs, and the third provides filter guidance, with zero wasted words.

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?

Given the tool's complexity (search with multiple filters), rich annotations, 100% schema coverage, and presence of an output schema, the description is complete. It covers purpose, scale, returns, and filter usage, leaving parameter details to the schema and output details to the output schema, making it fully adequate.

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%, providing detailed parameter documentation. The description adds minimal semantics beyond the schema, mentioning 'filter_format' and 'filter_organisations' with brief examples but no new syntax or format details. This meets the baseline for high schema coverage.

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 clearly states the tool's purpose: 'Search GOV.UK's 700k+ content items using the official Search API.' It specifies the verb ('Search'), resource ('GOV.UK's 700k+ content items'), and distinguishes from siblings like 'govuk_grep_content' by mentioning the official API and content scope.

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 provides clear context for when to use specific filters ('Use filter_format to narrow to specific content types... Use filter_organisations to restrict to a department'), but does not explicitly state when to use this tool versus alternatives like 'govuk_grep_content' or 'list_resources'. It offers practical guidance without naming 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/paulieb89/govuk-mcp'

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