Skip to main content
Glama

Get one bill

get_bill
Read-only

Fetch a single bill by its numeric bill_id (GET /v1/bills/{bill_id}), optionally merging in sub-resources: votes (roll calls with tallies), sponsors, history (action timeline), texts (version metadata), amendments, subjects, analyses (staff analyses), calendar (scheduled events), citations (statutes the bill touches), referrals (committee referrals), sast (same-as / similar-to companion bills in the other chamber or other states), supplements (fiscal notes and summaries). analyses and citations are populated only for the deeper-coverage states. Each include is a separate API call, so ask only for what you need. Pass detail:true to get everything in one round trip instead. Get a bill_id from search_bills or semantic_search_bills. 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

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "bill_id": "<bill_id>"
    },
    "name": "get_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNotrue = one request to /v1/bills/{id}/detail with every sub-resource merged (the cheapest way to get everything). Ignores include.
bill_idYesNumeric bill_id from a search result.
includeNoSub-resources to merge into the result: votes, sponsors, history, texts, amendments, subjects, analyses, calendar, citations, referrals, sast, supplements.
max_itemsNoCap on items per included list (default 50).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/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 adds genuine operational context beyond them: each include triggers a separate API call, and two includes return empty for many states. That cost and data-availability disclosure is exactly what an agent can't infer from annotations.

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?

The core sentence is well front-loaded, but roughly a third of the text is a status_id taxonomy (1=Introduced … 8=Chaptered) and aggregate bucket definitions that have no bearing on this tool, since status_id is not a parameter here. That inflated content dilutes the operational guidance.

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?

With no output schema, the description must carry the return shape, and it does so for the merged sub-resources by naming each one and what it contains. It is thinner on the base bill object's own fields, so an agent knows what the attachments look like better than the core record.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description earns more by glossing otherwise opaque enum values: sast = 'same-as / similar-to companion bills', votes = 'roll calls with tallies', supplements = 'fiscal notes and summaries'. Without this, several include values would be unusable guesses.

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 plus the underlying endpoint: 'Fetch a single bill by its numeric bill_id (GET /v1/bills/{bill_id})'. It also distinguishes itself from siblings by naming search_bills and semantic_search_bills as the source of the bill_id, and clarifies that 'texts' here is version metadata rather than full text (which is get_bill_text's job).

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 explicit routing advice: retrieve bill_id from search_bills or semantic_search_bills, and choose between granular includes and detail:true based on round-trip cost ('ask only for what you need'). It further warns that analyses and citations are only populated for deeper-coverage states, preventing wasted calls.

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