Skip to main content
Glama
UK Parliament MCP Server

UK Parliament MCP Server

search_parliament

Search across UK Parliament members, bills, committees, Hansard, written questions, and web pages in one call. Use it as a starting point when you don’t know which record type holds the answer.

Instructions

Search across Parliament in one call - members, bills, committees, Hansard debates, written questions and parliament.uk web pages | search everything, find anything, cross-search, where is this mentioned, general search | Use as a starting point when you don't know which kind of record holds the answer | Returns the top matches and total counts for each kind of record, with the tool to call next for each. Combines: search_members, search_bills, search_committees, search_hansard_full, search_written_questions, search_parliament_website. See also: search_parliament_website (faster, single call, for briefings, explainers and other free-text web content), parliament_workflow (to plan a research approach).

    Args:
        query: Search text (e.g. 'Renters Rights', 'Starmer', 'Treasury', 'net zero').
        take: Number of top matches per kind of record (default 5).

    Returns:
        Per-category matches and totals.
    

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": {
      "query": "<query>"
    },
    "name": "search_parliament"
  }
}

Input Schema

NameRequiredDescriptionDefault
takeNo
queryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses that the tool combines six specific sibling searches and returns top matches, totals, and the next tool to call. It stops short of explicitly stating read-only/no-side-effect behavior or any limits, but the search behavior is otherwise transparent.

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 definition is front-loaded and structured with clear usage, alternatives, Args and Returns sections. The keyword-synonym phrase is somewhat noisy, but the rest earns its place by providing routing and parameter context.

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?

For a broad multi-category search tool with an output schema, the description is largely complete: it explains scope, alternatives, parameters, return shape and next-step routing. It could mention pagination/limits or no-result behavior, but nothing essential for calling it correctly 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 description coverage is 0%, so the description must compensate, and it does: it explains query as search text with concrete examples and clarifies take as number of top matches per kind of record. It does not document advanced query syntax or maximum values, but the core semantics are covered.

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 states a specific verb and broad resource: search across Parliament, covering members, bills, committees, Hansard, written questions and web pages. It clearly distinguishes the tool as a cross-category starting point, including from sibling search_parliament_website.

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?

It explicitly says to use this as a starting point when you don't know which record type holds the answer. It also names alternatives and their roles, including search_parliament_website for faster web-content searches and parliament_workflow for research planning.

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