get_votes

Pack: congress · Endpoint: https://gateway.pipeworx.io/congress/mcp

Get recent congressional votes on bills. Returns question, result, chamber, vote counts (yes/no/abstain), date, and related bill.

Parameters

NameTypeRequiredDescription
limitnumbernoNumber of votes to return (default: 20, max: 100)
congressnumbernoCongress number to filter by (e.g., 119)

Example call

Arguments

{
  "limit": 20
}

curl

curl -X POST https://gateway.pipeworx.io/congress/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_votes","arguments":{"limit":20}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_votes', {
  "limit": 20
});

More examples

{
  "congress": 119,
  "limit": 50
}

Response shape

Always returns: total, returned, votes

FieldTypeDescription
totalnumberTotal votes available
returnednumberNumber of votes returned
votesarray
Full JSON Schema
{
  "type": "object",
  "properties": {
    "total": {
      "type": "number",
      "description": "Total votes available"
    },
    "returned": {
      "type": "number",
      "description": "Number of votes returned"
    },
    "votes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "number",
              "null"
            ],
            "description": "Vote ID"
          },
          "congress": {
            "type": [
              "number",
              "null"
            ],
            "description": "Congress number"
          },
          "session": {
            "type": [
              "number",
              "null"
            ],
            "description": "Session number"
          },
          "chamber": {
            "type": [
              "string",
              "null"
            ],
            "description": "Chamber (House or Senate)"
          },
          "number": {
            "type": [
              "number",
              "null"
            ],
            "description": "Vote number"
          },
          "question": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vote question text"
          },
          "question_details": {
            "type": [
              "string",
              "null"
            ],
            "description": "Additional question details"
          },
          "result": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vote result"
          },
          "category": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vote category label"
          },
          "created": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vote date/time"
          },
          "yes_votes": {
            "type": [
              "number",
              "null"
            ],
            "description": "Number of yes votes"
          },
          "no_votes": {
            "type": [
              "number",
              "null"
            ],
            "description": "Number of no votes"
          },
          "other_votes": {
            "type": [
              "number",
              "null"
            ],
            "description": "Number of abstain/other votes"
          },
          "related_bill_title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Related bill title"
          },
          "link": {
            "type": [
              "string",
              "null"
            ],
            "description": "GovTrack vote URL"
          }
        }
      }
    }
  },
  "required": [
    "total",
    "returned",
    "votes"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "congress": {
      "url": "https://gateway.pipeworx.io/congress/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026