Skip to main content
Glama

get_roll_call_votes

Read-only

Roll-call votes, House (api.congress.gov) and Senate (senate.gov XML), one row per vote; no voice votes and no per-member positions (see source_data_url). While senate.gov refuses our requests, new Senate votes may come from Voteview (source 'voteview'). vote_id is '{chamber}-{congress}-{session}-{number}', e.g. 'house-119-1-240'. Fields: keyvex.com/docs/tools/get_roll_call_votes

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_roll_call_votes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 50.
sinceNoYYYY-MM-DD, inclusive, on start_date.
untilNoYYYY-MM-DD, inclusive, on start_date.
resultNoCase-insensitive substring.
bill_idNoe.g. '119-HR-134'.
chamberNo
sort_byNoDefault start_date.
vote_idNo'{chamber}-{congress}-{session}-{rcNumber}', e.g. 'house-119-1-240'.
congressNo
sort_orderNoDefault desc.
session_numberNo1 = the Congress's first year.
legislation_typeNoHR/S bills; *RES simple, *JRES joint, *CONRES concurrent resolutions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • changedInput schema / properties / bill_id / description
      Previous value: -"Filter to votes on a specific bill (composite key like '119-HR-134'). Use to chain a bill lookup → votes on that bill."New value: +"e.g. '119-HR-134'."
    • removedInput schema / properties / chamber / description
      Removed value: -"Filter to House or Senate roll calls."
    • removedInput schema / properties / congress / description
      Removed value: -"Congress number (e.g., 119)."
    • changedInput schema / properties / legislation_type / description
      Previous value: -"Filter to votes on a specific legislation type."New value: +"HR/S bills; *RES simple, *JRES joint, *CONRES concurrent resolutions."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum votes to return. Default 50, max 500."New value: +"Default 50."
    • changedInput schema / properties / result / description
      Previous value: -"Substring match against result text (e.g., 'passed', 'failed', 'agreed')."New value: +"Case-insensitive substring."
    • changedInput schema / properties / session_number / description
      Previous value: -"Session within the Congress. Session 1 = first calendar year of the Congress; Session 2 = second year."New value: +"1 = the Congress's first year."
    • changedInput schema / properties / since / description
      Previous value: -"Vote-start date lower bound (ISO YYYY-MM-DD inclusive)."New value: +"YYYY-MM-DD, inclusive, on start_date."
    • changedInput schema / properties / sort_by / description
      Previous value: -"Default: start_date (most recent votes first)."New value: +"Default start_date."
    • changedInput schema / properties / sort_order / description
      Previous value: -"Default: desc."New value: +"Default desc."
    • changedInput schema / properties / until / description
      Previous value: -"Vote-start date upper bound (ISO YYYY-MM-DD inclusive)."New value: +"YYYY-MM-DD, inclusive, on start_date."
    • changedInput schema / properties / vote_id / description
      Previous value: -"Composite vote identifier ('{chamber}-{congress}-{session}-{rcNumber}', e.g., 'house-119-1-240'). Direct doc lookup, fastest path."New value: +"'{chamber}-{congress}-{session}-{rcNumber}', e.g. 'house-119-1-240'."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (readOnly/openWorld/non-destructive), the description discloses genuinely useful operational behavior: House data from api.congress.gov, Senate from senate.gov XML, and a dynamic fallback to Voteview (source 'voteview') while senate.gov is refusing requests. That fallback caveat is the kind of thing an agent cannot learn from structured fields and materially affects interpreting results. It stops short of describing pagination or completeness/coverage of the fallback.

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?

One dense but front-loaded sentence-pair: sources and grain first, then exclusions, then the source-quirk caveat, then the id format. Little wasted text, though the trailing 'Fields: keyvex.com/docs/tools/get_roll_call_votes' is telegraphic and the domain lacks a scheme, which slightly interrupts scannability.

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?

For a 12-parameter, filter-only read tool with no output schema, the description covers sources, grain, exclusions, and the id convention, which is enough to call it correctly. The return fields are offloaded to an external link rather than summarized, so an agent cannot know the row shape without leaving the definition.

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 description coverage is 83%, so the schema already documents nearly every parameter, including enum meanings. The description restates the vote_id compound format (already in the schema) and defers field-level detail to an external docs URL rather than adding new semantics for limit, since/until, sort, or result. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (roll-call votes) with both chambers and their upstream sources, plus the grain ('one row per vote'). The exclusions ('no voice votes and no per-member positions') sharpen the boundary, though no sibling tool is named for contrast (e.g. get_bills for the underlying legislation).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the filters and grain rather than stated: an agent can infer querying by chamber, congress, date range, or bill. There is no explicit when-to-use / when-not guidance and no pointer to an alternative for per-member positions or voice votes, which are exactly the cases the description rules out.

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