Skip to main content
Glama

Search bills

search_bills

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, 5=Signed into Law, 6=Vetoed, 7=Failed/Dead, 8=Chaptered. Aggregate buckets: passed={4,5,8}, failed={6,7}, alive={1,2,3}.

Input Schema

TableJSON 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, 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. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden, and it does well: it discloses the HTTP method, AND-combination semantics, direct bill-number matching in q, pagination, the 2026-forward corpus limitation, and the full status_id mapping. It does not mention auth or rate limits, but for a read-only GET search tool the key behaviors are covered.

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

Conciseness4/5

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

The description is front-loaded with purpose and usage, and most sentences earn their place. The status_id mapping is repeated from the schema, which is slightly redundant, but the overall length is reasonable for a tool with 13 optional filters and important behavioral caveats.

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?

Given 13 parameters, no annotations, and no output schema, the description covers the essential context: endpoint, filter behavior, corpus limitation, output shape, and when to escalate to get_bill. It could be more complete by explicitly routing to keyword_search_bills or semantic_search_bills for other search modes, but the schema fills most remaining parameter-level gaps.

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?

The schema already documents all 13 parameters at 100% coverage, so the baseline is 3. The description adds value beyond the schema by explaining that filters combine with AND, that a bill number in q matches the bill directly, and by providing aggregate status buckets. This is a meaningful supplement to the individual parameter descriptions.

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 opens with a specific verb and resource: 'Search or list legislation with structured filters (GET /v1/bills).' It also clarifies scope by distinguishing from get_bill ('call get_bill for the full record') and by emphasizing structured filters, which separates it from keyword or semantic search siblings.

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 explicitly says when to use the tool: 'Use this when you know the jurisdiction, sponsor, topic, or status you want.' It also notes that all filters are optional and combine with AND, and directs users to get_bill for full records. It does not explicitly contrast with keyword_search_bills or semantic_search_bills, but the structured-filter framing implies the distinction.

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