Skip to main content
Glama
adathouse
by adathouse

Get bill details

get_bill

Retrieve full details of a legislative bill from Congress.gov. Identify bills by cdgId or congress, bill type, and number. Optionally include actions, cosponsors, committee activities, titles, and text versions.

Instructions

Fetch a single bill's full details. Identify it either by cdgId or by the combination of congress + billType + number. Optionally include related actions, cosponsors, committee activities, titles and text versions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cdgIdNoThe bill's cdgId. Provide this OR congress+billType+number.
congressNoCongress number, e.g. 119.
billTypeNoBill type code, e.g. HR, S, HJRES.
numberNoBill number, e.g. 1234.
includeActionsNoInclude the action history.
includeCosponsorsNoInclude the list of cosponsors.
includeCommitteeActivitiesNoInclude committee referral/activity history.
includeTitlesNoInclude all titles for the bill.
includeTextVersionsNoInclude text version documents.
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does not disclose any behavioral traits such as side effects, authentication needs, rate limits, or error handling. The description only states what the tool does, not how it behaves.

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

Conciseness5/5

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

The description is two sentences, concise, and front-loaded with the main purpose. Every part adds value with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description should hint at return fields. It says 'full details' but does not specify what that includes beyond the optional inclusions. With 9 parameters, more detail on the response would improve completeness.

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 coverage is 100%, so parameter descriptions already exist. The description adds context on the identification options (cdgId vs congress+billType+number) and optional booleans, but this largely reinforces schema info without adding new meaning.

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 clearly states the tool fetches a single bill's full details, and specifies two distinct identification methods. This is specific and distinguishes from sibling tools like search_bills, which is for listing multiple bills.

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?

The description explains how to identify the bill (cdgId or congress+billType+number) and mentions optional inclusions. However, it does not explicitly state when to use this versus alternatives like search_actions or search_cosponsors, though context from sibling names implies when to use those.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adathouse/cdgmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server