member_legislative_stats
Pack: congress · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/member_legislative_stats for the schema, then POST the same URL with its arguments for the data.
ANSWERS “how many bills has Rep. X sponsored”, “how bipartisan is Senator Y”, “what share of X’s bills have other-party cosponsors” — legislative activity statistics for ONE member of Congress in one Congress, computed from congress.gov records: bills sponsored, bills cosponsored, sponsored bills that became law, and how many of the member’s sponsored bills drew at least one cosponsor from the other major party (checked on the newest bills_analysed of them). These are our own computed counts, not an official score, and not GovTrack’s ranked report-card metrics (no percentile/rank is computed). Requires an API key (see get_bill).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
bioguide_id | string | yes | The member’s bioguide id, e.g. “R000603” (get_members returns them). |
congress | number | no | Congress number, e.g. 118 for 2023-2024 (default: the current Congress). |
Example call
Arguments
{
"bioguide_id": "R000603",
"congress": 118
}
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":"member_legislative_stats","arguments":{"bioguide_id":"R000603","congress":118}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('member_legislative_stats', {
"bioguide_id": "R000603",
"congress": 118
});
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the congress pack
{
"mcpServers": {
"congress": {
"url": "https://gateway.pipeworx.io/congress/mcp"
}
}
}
See Getting Started for client-specific install steps.