Skip to main content
Glama

Congress Get Votes

congress_get_votes
Read-onlyIdempotent

ANSWERS "how did the Senate vote on X" / "recent House roll calls" / "cloture vote tally", recent roll-call votes for ONE chamber, newest first within that chamber + session. House votes come from the Clerk of the House's own records (via congress.gov's official API), addressed directly by roll-call number (House roll numbers are sequential 1..N within a session), so this is capped at 25 per call for House, since each House vote costs its own upstream request; a higher limit is silently clamped with a note, not an error. Senate votes come from the Congressional Record (U.S. Government Publishing Office), which prints every Senate roll call with its member lists; senate.gov itself refuses automated requests and is not read. Each Senate vote carries its number, the Record issue date, the question and outcome sentence as the Record words them (null when the Record text has none this tool can match, never inferred from the tally), and its yea/nay tally; a roll the Record text could not be parsed with confidence is listed under unparsed, and a gap in the returned vote numbers is named in note. For HOW EACH SENATOR VOTED, attendance and party-line share use congress_member_votes (chamber "senate"). Pass chamber: "house" or "senate", the two chambers number their votes independently, so there is no combined listing. Returns question, result, yes/no tallies and date for each vote; every response names its own chamber, congress, session and source. Pass congress + session to look at a specific past session (session can only be left out for the CURRENT Congress); omit both for the current session. A chamber/congress/session nothing has been published for returns a named reason, never a silent empty list. A House roll number that congress.gov has no record of (e.g. vacated and never reused) is skipped and named in note, not silently missing.

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": 20,
      "chamber": "senate"
    },
    "name": "congress_get_votes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of votes to return (default 20, max 100).
chamberYesRequired: "house" or "senate".
sessionNo1 or 2, each Congress has exactly two sessions, one per calendar year. Can be omitted only when congress is also omitted, or is the current Congress (it is then inferred from today's date).
congressNoCongress number, e.g. 119. Omit for the current Congress.

Output Schema

NameRequiredDescriptionDefault
totalNoTotal votes available
votesNo
returnedNoNumber of votes returned

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / session / description
      Previous value: -"1 or 2 — each Congress has exactly two sessions, one per calendar year. Can be omitted only when congress is also omitted, or is the current Congress (it is then inferred from today's date)."New value: +"1 or 2, each Congress has exactly two sessions, one per calendar year. Can be omitted only when congress is also omitted, or is the current Congress (it is then inferred from today's date)."
  2. Changed2 schema fields changed
    • changedOutput schema / properties / votes / items / properties / result / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / votes / items / properties / session / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number"
      +]
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare a safe, idempotent, read-only, open-world read, and the description goes well past them: House results are capped at 25 per call with higher limits silently clamped (not an error), Senate rolls come from the Congressional Record rather than senate.gov, unparseable rolls surface under `unparsed`, and gaps in vote numbering are named in `note` rather than silently missing. These are exactly the failure modes an agent needs before calling.

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 the questions it answers and zero obvious filler; even the aside about senate.gov refusing automated requests justifies the data source. The weakness is structure: it is one dense run-on block mixing sourcing, caps, error semantics and argument rules, so an agent must scan it linearly rather than pick out bulleted facts.

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 four-parameter tool with two data pipelines and edge cases, the description covers sourcing, per-chamber behavior, limits, omission rules, and empty/gap responses. An output schema exists and the description still flags key return fields (question, result, yes/no tallies, date, chamber/congress/session/source), so an agent has everything needed to call it 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 coverage is 100%, so the schema already documents all four parameters and the baseline would be 3. The description still adds meaning the schema does not: the two chambers number their votes independently, House roll numbers are sequential 1..N within a session, and session can only be left out for the current Congress. That is genuine semantic value beyond the field descriptions.

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 the exact user questions it answers ("how did the Senate vote on X", "recent House roll calls", "cloture vote tally") and states the resource precisely: recent roll-call votes for ONE chamber, newest first within chamber + session. It explicitly distinguishes itself from congress_member_votes (per-senator detail) and rules out a combined listing, so an agent can separate it from siblings without opening schemas.

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: use the other tool (congress_member_votes with chamber "senate") when per-member vote breakdowns, attendance, or party-line share are needed. It states the chamber argument options, explains when congress/session may be omitted (only for the current Congress), and says there is no combined listing — leaving little 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.