Skip to main content
Glama

Congress Get Bill

congress_get_bill
Read-onlyIdempotent

Look up one congressional bill from congress.gov (the Library of Congress's official API) by its real-world identifier, congress number, bill type and bill number, e.g. the 118th Congress H.R. 1. Returns title, sponsor, current status (congress.gov's free-text latestAction) with its date, introduced date, whether/which law it became, and the congress.gov link. Does NOT return bill text, cosponsors, committee assignments or vote history. Requires an API key: a free api.data.gov key works, supplied automatically when called through the Pipeworx gateway.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "number": 1,
      "congress": 118,
      "bill_type": "house_bill"
    },
    "name": "congress_get_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberYesBill number within that congress, e.g. 1 for H.R. 1
congressYesCongress number, e.g. 118
bill_typeYesBill type: hr, s, hres, sres, hjres, sjres, hconres or sconres (congress.gov's own short codes). The long GovTrack-era forms (house_bill, senate_bill, ...) and 'h.r.' are also accepted.

Output Schema

NameRequiredDescriptionDefault
idYesBill ID
linkNoGovTrack bill URL
titleNoFull bill title
numberNoBill number
statusNoCurrent status code
congressNoCongress number
bill_typeNoBill type code
status_dateNoDate of current status
sponsor_nameNoPrimary sponsor name
status_labelNoCurrent status label
bill_type_labelNoBill type label
introduced_dateNoBill introduction date
title_without_numberNoBill title without number prefix

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / id / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, and the description goes well beyond them: it lists exactly what comes back, explicitly excludes bill text, cosponsors, committee assignments and vote history, and discloses the API-key requirement plus the fact that the gateway supplies the key automatically. That negative scope and auth detail are exactly the context an agent cannot get from 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.

Conciseness5/5

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

Front-loaded with purpose, then returns, then exclusions, then the auth caveat — each in one sentence with no filler. The parenthetical identifying congress.gov as the Library of Congress's official API earns its space by establishing source authority.

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?

For a three-parameter read tool with full schema coverage, rich annotations and an output schema, nothing material is missing. Return shape, exclusions and auth handling are all covered, so an agent can call this correctly on the first attempt.

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% and the schema already documents all three parameters, so the baseline would be 3. The description adds framing the schema lacks — that these three fields together form the real-world identifier and what a valid identifier looks like — which marginally improves an agent's chance of supplying a coherent triple.

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 ('Look up one congressional bill from congress.gov') and pins the scope to a single record keyed by a real-world identifier. The explicit example ('the 118th Congress H.R. 1') and the enumerated return fields make the tool's job unambiguous against a search-style sibling.

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 makes clear this is a single-record lookup that requires a known congress number, bill type and number, which implicitly routes identifier-less requests elsewhere. It does not explicitly name an alternative such as congress_search_bills or say 'use that when you only have a keyword,' so the when-not guidance is left to inference.

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.