Skip to main content
Glama
UK Parliament MCP Server

UK Parliament MCP Server

search_parliament_website

Search parliament.uk for free-text content like Commons Library briefings and explainers not covered by structured APIs, returning titles, descriptions, URLs, and tags.

Instructions

Search the parliament.uk website | site-wide search, web pages, research briefings, Commons Library, POST, publications, guides | Use for free-text discovery of any parliament.uk content that the structured APIs don't cover, such as Commons Library briefings or explainers | Returns total result count and a page of results with title, description (matches in tags), url and tags. See also: search_parliament, search_hansard.

    Args:
        search_terms: Terms to search for (e.g. 'climate change', 'sitting hours').
        start: Position of the first result to return (default 1). Page by adding take to it.
        take: Number of results per page (default and maximum 20).

    Returns:
        Search results from the parliament.uk website with title, description, url and tags.
    

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "search_terms": "<search_terms>"
    },
    "name": "search_parliament_website"
  }
}

Input Schema

NameRequiredDescriptionDefault
takeNo
startNo
search_termsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.19.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It usefully discloses the return shape (total count plus a page of title/description/url/tags) and the notable quirk that matches are wrapped in <strong> tags, but says nothing about rate limits, authentication, result ordering/relevance, or empty-result 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?

Purpose and scope are front-loaded in a single pipe-delimited line, followed by routing guidance and per-argument notes. There is mild redundancy: the return format is stated twice (in the preamble and again under 'Returns'), and the Returns section duplicates what the output schema already provides.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description need not explain return values but does anyway; the essential pieces — scope, routing, defaults, page cap — are all covered. Remaining gaps (relevance ranking, error/empty behavior, rate limits) are minor for a read-only search endpoint.

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 0%, so the description must compensate, and it does: all three parameters are documented with meaning, examples ('climate change', 'sitting hours'), effective defaults (start=1, take=20) and the maximum for take. It also explains the paging mechanic ('Page by adding take to it'), though the schema's null defaults versus the stated 1/20 defaults are not reconciled.

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 a specific verb and resource ('Search the parliament.uk website') and enumerates the content types it covers (research briefings, Commons Library, POST, publications, guides). It explicitly distinguishes itself from the structured APIs and names sibling search tools, so an agent can route correctly without opening any 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?

It states the selection condition clearly: use for free-text discovery of content 'the structured APIs don't cover, such as Commons Library briefings or explainers', and points to search_parliament and search_hansard as alternatives. It stops short of saying explicitly when those siblings are preferred over this one, leaving that inference to the agent.

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

Deploy Server

Other Tools