list_votes
Pack: nosdeputes-fr · Endpoint: https://gateway.pipeworx.io/nosdeputes-fr/mcp
Recent recorded votes.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
deputy_slug | string | no | Filter to votes cast by a specific deputy |
limit | number | no | 1-100 (default 25) |
legislature | string | no |
Example call
Arguments
{
"limit": 25
}
curl
curl -X POST https://gateway.pipeworx.io/nosdeputes-fr/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_votes","arguments":{"limit":25}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('list_votes', {
"limit": 25
});
More examples
{
"deputy_slug": "jean-luc-melenchon",
"limit": 50
}
Response shape
| Field | Type | Description |
|---|---|---|
votes | array |
Full JSON Schema
{
"type": "object",
"properties": {
"votes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Vote identifier"
},
"url": {
"type": "string",
"description": "Full URL to vote details"
},
"date": {
"type": "string",
"description": "Vote date (YYYY-MM-DD)"
},
"titre": {
"type": "string",
"description": "Vote title/subject"
},
"resume": {
"type": "string",
"description": "Vote summary"
},
"resultat": {
"type": "string",
"description": "Result (Adoptée/Rejetée/etc)"
},
"pour": {
"type": "number",
"description": "Votes in favor"
},
"contre": {
"type": "number",
"description": "Votes against"
},
"abstention": {
"type": "number",
"description": "Abstentions"
},
"nonvotant": {
"type": "number",
"description": "Non-voters"
},
"parlementaire": {
"type": "string",
"description": "Deputy slug (if filtered)"
},
"position": {
"type": "string",
"description": "Deputy vote (pour/contre/abstention/nonvotant)"
}
}
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"nosdeputes-fr": {
"url": "https://gateway.pipeworx.io/nosdeputes-fr/mcp"
}
}
}
See Getting Started for client-specific install steps.