Skip to main content
Glama

Uk Parliament Search Bills

uk_parliament_search_bills
Read-onlyIdempotent

Search legislation before the UK Parliament through the official Bills API (bills-api.parliament.uk), matching bill titles and short titles and filtering by parliamentary session id, current stage id, sponsoring member id, and current house (1 = Commons, 2 = Lords). Returns bill id, title, short title, current stage, house, and last-updated date, sortable by title or update date. Answers which Westminster bills concern a subject and how far each has progressed.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "Online Safety Bill"
    },
    "name": "uk_parliament_search_bills"
  }
}

Input Schema

NameRequiredDescriptionDefault
skipNo0-based offset
sortNoTitleAscending | TitleDescending | DateUpdatedAscending | DateUpdatedDescending
takeNo1-50 (default 20)
queryNoSearch bill title and short title
stageNoStage id (1=intro, 2=first reading, etc.)
sessionNoSession id (numeric)
member_idNoSponsoring member id
current_houseNo1 = Commons, 2 = Lords

Output Schema

NameRequiredDescriptionDefault
billsNoList of bill records matching search criteria
totalResultsNoTotal count of matching bills

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered structurally. The description adds real context about the upstream source (bills-api.parliament.uk) and the sortable result set, but its return-field sentence duplicates the output schema and it says nothing about rate limits, auth, or paging behavior beyond what the schema states.

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?

Three sentences, front-loaded with the primary action and source, then filters, then returns, then purpose. Slightly dense in the middle sentence but no filler and nothing that could be cut without losing information an agent would otherwise have to infer.

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?

With eight optional parameters, an output schema present, and rich annotations, the description covers what the tool searches, which fields filter it, how results sort, and what kind of question it answers. Nothing essential for a correct first invocation 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 eight parameters is already documented, including the numeric house coding. The description restates the filter names and repeats '1 = Commons, 2 = Lords' verbatim from the schema rather than adding semantics such as how session or stage ids relate to each other. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 legislation before the UK Parliament') and names the underlying official API, plus what is matched (bill titles and short titles). It is clearly a list/search operation rather than a single-record fetch, which distinguishes it in practice from uk_parliament_get_bill, though that sibling is never named so the contrast is inferred rather than stated.

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 closing sentence gives a concrete usage frame: answering which Westminster bills concern a subject and how far each has progressed, which tells an agent what question this tool answers. There are no explicit exclusions or named alternatives, so an agent must infer that a by-id lookup belongs elsewhere.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.