Skip to main content
Glama

Search UK Parliament bills

search_uk_bills
Read-onlyIdempotent

Search UK Parliament bills by keyword, current or originating house, Act status, or update order to filter and find relevant legislative bills.

Instructions

Search UK Parliament bills by title keyword, current house, originating house, enacted Act status, or update order.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_uk_bills"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax bills to return (default 10).
is_actNoIf true, return only bills that received Royal Assent and became Acts.
sort_orderNoSort order (default "DateUpdatedDescending").
search_termNoKeyword to match in bill titles (e.g. "Arbitration", "Health", "AI").
current_houseNoFilter by current parliamentary house.
originating_houseNoFilter by originating house.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile needs no restating. Beyond that the description only repeats the filter list, adding nothing about result volume, the default limit of 10, or whether filters are ANDed together — useful behavioral context that is left to the schema.

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?

A single front-loaded sentence with the verb and resource first and the filter dimensions trailing; there is no filler, hedging, or redundant restatement.

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

Completeness3/5

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

For a six-parameter read-only search this is the minimum viable: the schema documents every parameter and the annotations cover safety, but with no output schema the description should at least say what a bill record look like or how results are paged/ordered by default. Adequate but with clear gaps.

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?

With 100% schema description coverage and three enum-typed parameters, the schema already carries full parameter meaning. The description's mention of 'update order' and 'enacted Act status' loosely maps to sort_order and is_act but adds no syntax, default, or interaction detail beyond what the schema provides.

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?

States a specific verb ('Search') and resource ('UK Parliament bills') and enumerates the filter axes (title keyword, current house, originating house, Act status, update order). It is clearly distinguishable from the sibling getters (details, publications, stages, types) by being a query rather than a fetch-by-id, though it does not explicitly name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the reader can infer this is the entry point for finding bills before drilling into get_uk_bill_details or get_uk_bill_stages, but the description never says so. There is no when-not-to-use guidance, no note about zero-result behavior, and no statement that all filters are optional and combinable.

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