Skip to main content
Glama

BallotWatch

Search bills

search_bills
Read-onlyIdempotent

Search bills by words in the title (every word must appear) or by bill number (e.g. "H.R. 1", "119-s-5051"), most recently introduced first. Narrow with congress, stage (e.g. enacted), sponsor (a Bioguide ID) or has_vote for bills that reached a recorded floor vote.

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_bills"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 20
queryNoTitle words or a bill number. Optional when another filter is given.
stageNoLegislative stage, one of introduced, referred, subcommittee, committee, floor, passed_one, passed_both, enacted, dead (passed_one: passed one chamber; passed_both: passed both), e.g. "enacted"
sponsorNoBioguide ID of the sponsor
congressNoe.g. 119
has_voteNoOnly bills with a recorded floor vote

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / stage / description
      Added value: +"Legislative stage, one of introduced, referred, subcommittee, committee, floor, passed_one, passed_both, enacted, dead (passed_one: passed one chamber; passed_both: passed both), e.g. \"enacted\""
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations, the description discloses non-obvious matching behavior (every title word must appear), accepted bill-number formats, and result ordering (most recently introduced first). It does not describe pagination or return structure, but the annotations already cover the read-only and idempotent safety profile.

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?

Two dense, front-loaded sentences with no wasted wording. The query modes come first, followed by the narrowing filters, making the tool easy to scan.

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 six-parameter search tool with no output schema and rich annotations, the description covers the key query semantics, filters, and sort order. It leaves out return-value and pagination details, but the schema already documents limit and the annotations cover safety.

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%, so the baseline is 3. The description adds useful meaning beyond the schema, especially the AND semantics for title words and example bill-number formats, though many filter descriptions merely restate what the schema already documents.

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 states a specific verb and resource (search bills) and explains the two query modes: title words where every word must appear, or a bill number format. It is clear and specific, but it does not explicitly distinguish this tool from sibling tools such as get_bill or the generic search.

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?

It gives clear usage context: search by title words or bill number, then narrow with congress, stage, sponsor, or has_vote. It does not name alternatives or state when not to use this tool, so it stops short of explicit sibling routing.

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.