Skip to main content
Glama

get_bills

Read-only

Congressional bills and resolutions from api.congress.gov (Library of Congress), refreshed daily for the current and previous Congress. Metadata only: sponsors, text and summaries are at api_url and congress_gov_url. bill_id is '{congress}-{TYPE}-{number}', e.g. '119-HR-134'. Dates are YYYY-MM-DD, inclusive: since/until on latest_action_date, introduced_* on introduction_date. Detail: keyvex.com/docs/tools/get_bills

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": "get_bills"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 50.
sinceNo
titleNoCase-insensitive substring of the title.
untilNo
bill_idNo
sort_byNoDefault latest_action_date.
congressNoe.g. 119 (2025-2027).
bill_typeNoHR/S bills; *RES simple, *JRES joint, *CONRES concurrent resolutions.
sort_orderNoDefault desc.
origin_chamberNo
introduced_sinceNo
introduced_untilNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • removedInput schema / properties / bill_id / description
      Removed value: -"Composite bill identifier ('{congress}-{TYPE}-{number}', e.g., '119-HR-134'). Direct doc lookup, fastest path."
    • changedInput schema / properties / bill_type / description
      Previous value: -"Type 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)."New value: +"HR/S bills; *RES simple, *JRES joint, *CONRES concurrent resolutions."
    • changedInput schema / properties / congress / description
      Previous value: -"Congress number (e.g., 119 = January 2025 onward; 118 = January 2023 - January 2025)."New value: +"e.g. 119 (2025-2027)."
    • removedInput schema / properties / introduced_since / description
      Removed value: -"Introduction-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."
    • removedInput schema / properties / introduced_until / description
      Removed value: -"Introduction-date upper bound (ISO YYYY-MM-DD inclusive)."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum bills to return. Default 50, max 500."New value: +"Default 50."
    • removedInput schema / properties / origin_chamber / description
      Removed value: -"Filter to bills originating in one chamber."
    • removedInput schema / properties / since / description
      Removed value: -"Latest-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."
    • changedInput schema / properties / sort_by / description
      Previous value: -"Sort key. Default: latest_action_date (most recently active first). Use introduction_date to sort by when the bill was originally introduced."New value: +"Default latest_action_date."
    • changedInput schema / properties / sort_order / description
      Previous value: -"Default: desc."New value: +"Default desc."
    • changedInput schema / properties / title / description
      Previous value: -"Case-insensitive substring against bill title. Useful for topic searches ('artificial intelligence', 'border security', etc.)."New value: +"Case-insensitive substring of the title."
    • removedInput schema / properties / until / description
      Removed value: -"Latest-action date upper bound (ISO YYYY-MM-DD inclusive)."
  2. First observed

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, and non-destructive behavior, so the bar is lower. The description adds useful context beyond annotations: daily refresh, coverage limited to current and previous Congress, metadata-only scope, ID format, and date-field semantics. It does not discuss pagination behavior or error cases, but the added context is substantial.

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 dense but front-loaded: resource and source first, then scope, then field limitations, then ID/date conventions, then a docs link. Every sentence carries useful information, though the single-paragraph format is slightly packed for quick scanning.

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 12-parameter, read-only search tool with no output schema, the description supplies the essential context: data source, refresh cadence, Congress scope, metadata-only limitation, ID format, and date conventions. It does not describe the response shape in detail, but the metadata-only statement and URL pointers give enough orientation to call the tool correctly.

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 description coverage is only 50%, and the description compensates meaningfully by explaining that bill_id is '{congress}-{TYPE}-{number}', that dates are YYYY-MM-DD and inclusive, and that since/until apply to latest_action_date while introduced_* apply to introduction_date. It does not cover every parameter (e.g., origin_chamber, limit), but it adds clear semantics for the ambiguous ones.

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 states a specific resource (congressional bills and resolutions), names the authoritative source (api.congress.gov / Library of Congress), and scopes the data to the current and previous Congress refreshed daily. An agent can tell exactly what this tool returns without opening the schema.

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 clearly establishes when to use this tool for bill metadata and explicitly says sponsors, text, and summaries are not included but available via api_url and congress_gov_url. It does not name a sibling alternative such as get_congressional_trades, but the resource scope is clear enough for selection.

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