Skip to main content
Glama

KeyVex

get_bills

Read-only

Returns congressional bill metadata from api.congress.gov. Use this when the user asks about: bills introduced this Congress, the status of a specific bill, House vs Senate bill volume, what bills mention a topic, or to bridge from a roll-call vote (legislation_type + legislation_number) to the underlying bill. Source: api.congress.gov v3 (Library of Congress). Covers ALL bill types: HR (House Bill), S (Senate Bill), HRES (House Simple Resolution), SRES (Senate Simple Resolution), HJRES (House Joint Resolution), SJRES (Senate Joint Resolution), HCONRES (House Concurrent Resolution), SCONRES (Senate Concurrent Resolution). v1A returns metadata only: title, type + number, originating chamber, latest action (date + text), and links. Sponsors, cosponsors, full action history, bill text, and CRS summaries live at api_url (structured JSON) and congress_gov_url (public HTML). Agents follow those for prose detail. Bill identifiers are stable composite keys formatted as {congress}-{TYPE}-{number}, e.g., '119-HR-134', '119-S-1234', '118-HJRES-5'. Use bill_id for the fastest direct lookup. Pure-publisher posture: KeyVex returns what's in the public record. No legislative outcome predictions, no 'likely to pass' signals.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum bills to return. Default 50, max 500.
sinceNoLatest-action date lower bound (ISO YYYY-MM-DD inclusive). Useful for 'what's moved recently'. NOTE: this filters the most-recent floor/committee action, which can move with activity even on a bill introduced a year ago. For 'introduced in the last N months' questions, use introduced_since instead.
titleNoCase-insensitive substring against bill title. Useful for topic searches ('artificial intelligence', 'border security', etc.).
untilNoLatest-action date upper bound (ISO YYYY-MM-DD inclusive).
bill_idNoComposite bill identifier ('{congress}-{TYPE}-{number}', e.g., '119-HR-134'). Direct doc lookup, fastest path.
sort_byNoSort key. Default: latest_action_date (most recently active first). Use introduction_date to sort by when the bill was originally introduced.
congressNoCongress number (e.g., 119 = January 2025 onward; 118 = January 2023 - January 2025).
bill_typeNoType code. HR/S are bills; HRES/SRES are simple resolutions (single-chamber, non-binding); HJRES/SJRES are joint resolutions (both chambers, can become law); HCONRES/SCONRES are concurrent resolutions (both chambers, non-binding).
sort_orderNoDefault: desc.
origin_chamberNoFilter to bills originating in one chamber.
introduced_sinceNoIntroduction-date lower bound (ISO YYYY-MM-DD inclusive). The right filter for 'bills introduced in the last N months' — distinct from since/until, which track latest action. Older bill records may have an empty introduction_date if they were ingested before that field was added; those will be excluded from introduced_since/introduced_until results until the bill is re-scraped.
introduced_untilNoIntroduction-date upper bound (ISO YYYY-MM-DD inclusive).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-destructive, and the description goes well beyond by disclosing exactly what v1A returns (metadata only) versus what is deliberately not included (sponsors, cosponsors, action history, text, CRS summaries), plus the 'pure-publisher, no predictions' posture. This is rich behavioral context not present in structured fields.

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?

Front-loaded with purpose and usage before details, and every section serves a purpose. It is lengthy and the full bill-type enumeration partially duplicates the bill_type enum already documented in the schema, which is mild redundancy, but overall it is well organized and skimmable.

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?

With no output schema, the description carries the full burden of describing returns and does so explicitly (title, type+number, originating chamber, latest action, links) and redirects to api_url/congress_gov_url for detail. Nothing an agent needs to call this 12-param, all-optional tool correctly is missing.

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, but the description adds genuine meaning beyond the schema: the composite {congress}-{TYPE}-{number} key format, that bill_id is the fastest direct-lookup path, and the semantic distinction between latest-action filters and introduction-date filters. It reinforces rather than merely repeats the schema.

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?

States a specific verb+resource (returns congressional bill metadata) plus scope (all bill types, from api.congress.gov). It explicitly distinguishes itself from siblings by naming the roll-call-vote bridge use case and pointing prose detail to other sources, so an agent can tell what it does versus get_roll_call_votes or unified_search.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use list mapped to concrete user questions (bills this Congress, status of a specific bill, House vs Senate volume, topic mentions, roll-call bridge). It also names the fastest path (use bill_id) and disambiguates since/until vs introduced_since in the schema. Alternatives and exclusions are covered.

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