Skip to main content
Glama
paulieb89

UK Legal Research MCP Server

Search Parliamentary Bills

bills_search_bills
Read-onlyIdempotent

Search UK parliamentary bills by keyword, session, house, or legislative stage. Returns paginated bill summaries with current stage and act status.

Instructions

USE THIS TOOL WHEN searching UK parliamentary bills by keyword, session, house, or legislative stage.

Returns a paginated page of bill summaries (title, current stage, whether it became an Act). AFTER calling, pass a bill_id into bills_get_bill for full detail (sponsors, long title, Royal Assent date).

Authoritative source for UK parliamentary bill status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYesBillSearchInput.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe search term that was used
offsetYesNumber of results skipped before this page
limitYesMaximum results requested in this call
returnedYesNumber of results actually on this page
totalNoTotal results matching the query across all pages, if the upstream API reported it. None if unknown.
has_moreYesTrue if more results exist beyond this page. Re-call with offset=offset+returned to fetch the next page.
billsNoMatching bills. Use the integer `id` field from any bill to call bills_get_bill for full detail.
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, etc. The description adds that it returns a paginated page of summaries and that it is an authoritative source. No contradictions, and the added pagination detail is useful behavioral context beyond annotations.

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?

Three sentences, front-loaded with a clear usage directive, each sentence adds essential information. No wasted words, well-structured.

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 output schema exists, the description adequately describes the return type (bill summaries with title, stage, Act status) and provides next-step guidance. Complete for a search tool with available detail tool.

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 100% with each parameter described. The description provides additional context by framing the search capabilities (keyword, session, house, stage) and explaining pagination with offset/limit hints, enhancing understanding beyond the schema.

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 explicitly states 'searching UK parliamentary bills' and lists the search criteria (keyword, session, house, legislative stage). It clearly distinguishes from sibling tool bills_get_bill by indicating that this tool returns summaries and the other provides full details.

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?

The description opens with 'USE THIS TOOL WHEN' and specifies the search criteria. It also advises to use bills_get_bill after calling for more detail, effectively telling when not to use this tool (when full detail is needed).

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/uk-legal-mcp'

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