Skip to main content
Glama

Search Bills

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.

Input Schema

TableJSON 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

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

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld, idempotent, and non-destructive behaviors, lowering the burden on the description. The description adds useful context: it uses the official Bills API and explains the high-level behavior of returning matching bills with their progress. It does not contradict annotations and provides some extra detail beyond 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?

The description is three sentences, each earning its place: it states the action and data source, lists filters and return fields, and summarizes the use case. It is front-loaded with the core purpose and avoids redundancy or fluff.

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 8 optional parameters, 100% schema coverage, an output schema, and strong annotations, the description provides sufficient context. It mentions the external API source, the type of search, available filters, and the kinds of results returned. There are no significant gaps that would prevent an agent from using the tool correctly.

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 coverage is 100%, so the baseline is 3. The description restates the filtering categories (session, stage, member, house) and mentions sorting, but these are already fully described in the schema. It does not add meaningful per-parameter semantics beyond what the schema already provides, so the score stays at the baseline.

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 uses a specific verb ('Search') and resource ('legislation before the UK Parliament'), clearly distinguishing it from sibling tools like get_bill or bill_stages. It also states what is returned and the use case ('Answers which Westminster bills concern a subject and how far each has progressed'), making the purpose unambiguous.

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 description provides clear context that this is a search/filter tool for bills, with explicit mention of searchable fields and filters. It does not explicitly name alternative tools, but the context strongly implies when to use it (e.g., finding bills by subject) versus fetching a single bill or browsing stages. There are no exclusions or conflicting guidance.

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.

TDQS

B3.4/5.0
Disambiguation2/5

Several tools are near-duplicates (ask_pipeworx and ask_pipeworx_beta are currently identical; ai_visibility_check vs scan_competitor_ai_presence overlap), and the massive mix of unrelated domains (Polymarket betting, general data lookup, AI visibility) alongside UK Parliament tools makes selection confusing. An agent would struggle to know whether to use ask_pipeworx, ask_pipeworx_beta, or ask_pipeworx_grounded, or which of the five polymarket tools fits.

Naming Consistency3/5

Most tools use snake_case with readable names, but the action placement varies (verb_noun like get_bill vs noun_verb like bet_research, entity_profile), and there are compound names like generate_llms_txt and scan_competitor_ai_presence. The style is mostly consistent but the verb_noun pattern is not uniform across the set.

Tool Count2/5

38 tools is heavy, and the overwhelming majority are unrelated to the server's stated UK Parliament purpose. Only 7 tools (get_bill, search_bills, bill_stages, get_member, search_members, search_hansard, recent_divisions) have anything to do with Parliament, making the count wildly inappropriate for the apparent scope.

Completeness2/5

The Parliament-specific surface is thin: basic bill/member/Hansard lookups exist, but there are no tools for specific divisions/votes, committees, publications, or detailed procedural information. The vast non-Parliament tooling is irrelevant, creating a dead end for any real Parliament research beyond the basics.