Skip to main content
Glama

Search bills

search_bills
Read-only

Search or list legislation with structured filters (GET /v1/bills). Use this when you know the jurisdiction, sponsor, topic, or status you want. Every filter is optional and they combine with AND. A bill number typed into q (e.g. 'HB 1', 'SB0002') matches that bill directly. Returns bill summaries plus pagination; call get_bill for the full record. Corpus is 2026-forward only. status_id values: 1=Introduced, 2=In Committee, 3=Passed One Chamber, 4=Passed Both Chambers (for a simple resolution, bill_type_id 2: Adopted, its final step), 5=Signed into Law, 6=Vetoed, 7=Failed/Dead, 8=Chaptered. Aggregate buckets: passed={4,5,8}, failed={6,7}, alive={1,2,3}.

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
qNoFree-text search across title, description, and subject names.
limitNoMax rows to return (default 25).
stateNo2-letter postal code (e.g. FL), DC, or US for Congress.
topicNoCanonical topic slug, e.g. 'healthcare'. See list_topics.
offsetNoPagination offset.
subjectNoRaw subject name (ILIKE match).
status_idNoFilter by status. status_id values: 1=Introduced, 2=In Committee, 3=Passed One Chamber, 4=Passed Both Chambers (for a simple resolution, bill_type_id 2: Adopted, its final step), 5=Signed into Law, 6=Vetoed, 7=Failed/Dead, 8=Chaptered. Aggregate buckets: passed={4,5,8}, failed={6,7}, alive={1,2,3}.
session_idNoNarrow to one session.
bill_numberNoBill number, compact (HB1) or padded (HB0001).
updated_sinceNoISO-8601 date or timestamp; only bills changed since then.
title_containsNoSubstring match against the bill title only.
include_sponsorsNoAttach a sponsors array (people_id, name, party, district, sponsor_type) to every bill. Use this whenever the answer needs to name who sponsored the bills.
sponsor_last_nameNoLast name of a bill sponsor.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / status_id / description
      Previous value: -"Filter by status. status_id values: 1=Introduced, 2=In Committee, 3=Passed One Chamber, 4=Passed Both Chambers, 5=Signed into Law, 6=Vetoed, 7=Failed/Dead, 8=Chaptered. Aggregate buckets: passed={4,5,8}, failed={6,7}, alive={1,2,3}."New value: +"Filter by status. status_id values: 1=Introduced, 2=In Committee, 3=Passed One Chamber, 4=Passed Both Chambers (for a simple resolution, bill_type_id 2: Adopted, its final step), 5=Signed into Law, 6=Vetoed, 7=Failed/Dead, 8=Chaptered. Aggregate buckets: passed={4,5,8}, failed={6,7}, alive={1,2,3}."
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so safety is covered. The description adds material context beyond them: that all filters are optional and combine with AND, that results are bill summaries plus pagination rather than full records, and the critical corpus limit ('2026-forward only'). It does not discuss rate limits or result-size behavior beyond the schema's limit cap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded well: purpose, then filter usage, then return shape and corpus limit. But roughly half the text is a verbatim duplicate of the status_id enum and aggregate buckets already spelled out in the schema, which bloats a description that would otherwise be tight and information-dense.

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 13-parameter search tool with no output schema and only read-only annotations, the description covers the essentials an agent needs: AND semantics, optional filters, summary-plus-pagination return shape, the 2026-forward corpus boundary, and the handoff to get_bill. Only minor gaps remain, such as default page size and how total counts are reported.

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 the baseline is 3. The description does add one genuinely new insight, that a bill number typed into q (e.g. 'HB 1', 'SB0002') resolves to that bill directly, which goes beyond the schema's 'Free-text search across title, description, and subject names.' However, the long status_id enumeration is copied verbatim from the schema and the AND-combination rule is the only other addition, so most parameters gain no new meaning.

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 or list legislation with structured filters') and even names the underlying endpoint (GET /v1/bills). The qualifier 'structured filters' implicitly separates it from keyword_search_bills and semantic_search_bills, but those siblings are never named, so the differentiation is left to inference.

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?

'Use this when you know the jurisdiction, sponsor, topic, or status you want' gives a clear positive selection condition, and 'call get_bill for the full record' plus the pointer to list_topics handle the obvious follow-ups. It never states when NOT to use it (e.g., for free-text or semantic matching, where keyword_search_bills / semantic_search_bills would apply), so there are no explicit exclusions.

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.

Resources