Skip to main content
Glama

Congress Search Bills

congress_search_bills
Read-onlyIdempotent

ANSWERS "what bills about X has Congress introduced" / "recent congressional bills on X" / "federal legislation about X" / "find the Act", searches US FEDERAL congressional bills (US House & Senate, national laws) BY BILL NAME, SUBJECT OR KEYWORD, including recently introduced ones. Full-text search is via GovInfo (the GPO's index of the same bill documents congress.gov itself searches, congress.gov's own /bill endpoint has no keyword query at all), then RE-RANKED locally by how well each bill's title matches the query, exact title first, then a title containing the phrase, then all query words, then partial overlap, so the first result is the best title match and each bill carries its match tier. Pass congress to restrict to one Congress (filtered locally against the search results, may miss a match if it falls outside GovInfo's own top results for that query). Prefer this over a date-sorted recent-bills listing whenever the question names a topic or a bill. Returns bill type, number, title, status, sponsor, and introduction date (via congress.gov). Use get_bill with congress + bill_type + number for full details. Requires an API key (see get_bill). NOTE: this is the US Congress (federal) ONLY, for STATE legislature bills (e.g. California, Texas, New York, or any US state legislation) use legiscan or openstates instead, not this tool.

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": {
      "limit": 10,
      "query": "Lower Energy Costs Act"
    },
    "name": "congress_search_bills"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of results to return (default: 10, max: 100)
queryYesBill name, keywords or subject to match against bill titles, e.g. "Lower Energy Costs Act" or "crypto"
congressNoOptional Congress number (e.g. 111) to restrict results to, filtered locally against the search results.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / oneOf
      Added value: +[
      +  {
      +    "properties": {
      +      "bills": {
      +        "items": {
      +          "properties": {
      +            "bill_type": {
      +              "description": "Bill type code",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "bill_type_label": {
      +              "description": "Bill type label",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "congress": {
      +              "description": "Congress number",
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "id": {
      +              "description": "Bill ID",
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "introduced_date": {
      +              "description": "Bill introduction date",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "link": {
      +              "description": "GovTrack bill URL",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "match": {
      +              "description": "How well the bill's titles match the query: exact title, title containing the phrase, all query words present, some words present, or no title-word overlap",
      +              "enum": [
      +                "exact",
      +                "phrase",
      +                "all_words",
      +                "partial",
      +                "none"
      +              ],
      +              "type": "string"
      +            },
      +            "matched_title": {
      +              "description": "The bill title (display, short or official) that produced the match tier, or null",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "number": {
      +              "description": "Bill number",
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "sponsor_name": {
      +              "description": "Primary sponsor name",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "status": {
      +              "description": "Current status code",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "status_date": {
      +              "description": "Date of current status",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "status_label": {
      +              "description": "Current status label",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "title": {
      +              "description": "Full bill title",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "title_without_number": {
      +              "description": "Bill title without number prefix",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "match",
      +            "matched_title"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "candidates_ranked": {
      +        "description": "Number of distinct upstream candidate bills that were scored and ranked",
      +        "type": "number"
      +      },
      +      "congresses_searched": {
      +        "description": "Which Congresses were searched and how deeply: {in_depth, one_page, plus, hint} by default, or {exhaustive, coverage} when a congress argument was given",
      +        "type": "object"
      +      },
      +      "found": {
      +        "description": "Present and true on an answer; a miss is the found:false branch.",
      +        "enum": [
      +          true
      +        ],
      +        "type": "boolean"
      +      },
      +      "query": {
      +        "description": "Search query used",
      +        "type": "string"
      +      },
      +      "ranking": {
      +        "description": "How the bills are ordered: local title-match re-rank (exact > phrase > all_words > partial, newer Congress first on ties); GovTrack order is not by relevance",
      +        "type": "string"
      +      },
      +      "returned": {
      +        "description": "Number of bills returned",
      +        "type": "number"
      +      },
      +      "source_note": {
      +        "type": "string"
      +      },
      +      "total": {
      +        "description": "GovTrack loose keyword-match count for the query (any query word may match any bill title); see total_note",
      +        "type": "number"
      +      },
      +      "total_note": {
      +        "description": "Explains that total is a loose keyword-match count, not the number of bills about the subject",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "query",
      +      "total",
      +      "returned",
      +      "bills",
      +      "ranking",
      +      "candidates_ranked"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "A miss or an unavailable upstream: found:false with a reason and a hint (the shape check-found-false-schemas.mjs expects).",
      +    "properties": {
      +      "found": {
      +        "enum": [
      +          false
      +        ],
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "found"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties
      Removed value: -{
      -  "bills": {
      -    "items": {
      -      "properties": {
      -        "bill_type": {
      -          "description": "Bill type code",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "bill_type_label": {
      -          "description": "Bill type label",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "congress": {
      -          "description": "Congress number",
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "id": {
      -          "description": "Bill ID",
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "introduced_date": {
      -          "description": "Bill introduction date",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "link": {
      -          "description": "GovTrack bill URL",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "match": {
      -          "description": "How well the bill's titles match the query: exact title, title containing the phrase, all query words present, some words present, or no title-word overlap",
      -          "enum": [
      -            "exact",
      -            "phrase",
      -            "all_words",
      -            "partial",
      -            "none"
      -          ],
      -          "type": "string"
      -        },
      -        "matched_title": {
      -          "description": "The bill title (display, short or official) that produced the match tier, or null",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "number": {
      -          "description": "Bill number",
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "sponsor_name": {
      -          "description": "Primary sponsor name",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "status": {
      -          "description": "Current status code",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "status_date": {
      -          "description": "Date of current status",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "status_label": {
      -          "description": "Current status label",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "title": {
      -          "description": "Full bill title",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "title_without_number": {
      -          "description": "Bill title without number prefix",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        }
      -      },
      -      "required": [
      -        "id",
      -        "match",
      -        "matched_title"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "candidates_ranked": {
      -    "description": "Number of distinct upstream candidate bills that were scored and ranked",
      -    "type": "number"
      -  },
      -  "congresses_searched": {
      -    "description": "Which Congresses were searched and how deeply: {in_depth, one_page, plus, hint} by default, or {exhaustive, coverage} when a congress argument was given",
      -    "type": "object"
      -  },
      -  "query": {
      -    "description": "Search query used",
      -    "type": "string"
      -  },
      -  "ranking": {
      -    "description": "How the bills are ordered: local title-match re-rank (exact > phrase > all_words > partial, newer Congress first on ties); GovTrack order is not by relevance",
      -    "type": "string"
      -  },
      -  "returned": {
      -    "description": "Number of bills returned",
      -    "type": "number"
      -  },
      -  "source_note": {
      -    "type": "string"
      -  },
      -  "total": {
      -    "description": "GovTrack loose keyword-match count for the query (any query word may match any bill title); see total_note",
      -    "type": "number"
      -  },
      -  "total_note": {
      -    "description": "Explains that total is a loose keyword-match count, not the number of bills about the subject",
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "query",
      -  "total",
      -  "returned",
      -  "bills",
      -  "ranking",
      -  "candidates_ranked"
      -]
  2. Changed3 schema fields changed
    • changedOutput schema / properties / bills / items / properties / id / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
    • addedOutput schema / properties / source_note
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "query",
      -  "total",
      -  "returned",
      -  "bills",
      -  "total_note",
      -  "ranking",
      -  "candidates_ranked",
      -  "congresses_searched"
      -]New value: +[
      +  "query",
      +  "total",
      +  "returned",
      +  "bills",
      +  "ranking",
      +  "candidates_ranked"
      +]
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare safe/idempotent/open-world read behavior; the description adds the substantive mechanics — GovInfo full-text search followed by local title-based re-ranking with named match tiers, and the caveat that `congress` filtering happens post-hoc and may miss matches.

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 answerable question forms and the core search behavior, and every sentence carries information. It is a dense single paragraph in all-caps fragments, which costs some readability but not correctness.

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?

Output schema exists, yet the description still names returned fields and the follow-up tool, and covers scope, auth, ranking, and alternatives. Nothing needed to invoke it 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 parameters are documented structurally; the description still adds real meaning by explaining the ranking behavior of `query` and the local-filter caveat for `congress`. `limit` semantics are left to 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?

Opens with concrete example questions and a specific verb+resource: 'searches US FEDERAL congressional bills ... BY BILL NAME, SUBJECT OR KEYWORD'. It explicitly distinguishes itself from get_recent_bills, get_bill, and from state-bill tools (legiscan/openstates).

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 rules: prefer over a date-sorted recent-bills listing when a topic or bill is named, use get_bill with congress+bill_type+number for full details, and use legiscan/openstates for state legislation. Also states the API-key prerequisite.

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.