recent_divisions
Pack: uk-parliament · Endpoint: https://gateway.pipeworx.io/uk-parliament/mcp
Recent divisions (recorded votes) in the UK Parliament, read from the official Hansard API at hansard-api.parliament.uk, filterable by house (Commons or Lords) and a start date, up to 25 per call. Returns each division title, date, house, and division id. Answers what the House of Commons or House of Lords has voted on lately at Westminster.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
house | string | no | Commons | Lords |
date_from | string | no | YYYY-MM-DD |
take | number | no | 1-25 (default 25) |
Example call
Arguments
{
"house": "Commons",
"take": 20
}
curl
curl -X POST https://gateway.pipeworx.io/uk-parliament/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"recent_divisions","arguments":{"house":"Commons","take":20}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('recent_divisions', {
"house": "Commons",
"take": 20
});
More examples
{
"house": "Lords",
"date_from": "2024-01-01"
}
Response shape
| Field | Type | Description |
|---|---|---|
divisions | array | List of recent division (vote) records |
Full JSON Schema
{
"type": "object",
"description": "Recent recorded parliamentary votes",
"properties": {
"divisions": {
"type": "array",
"description": "List of recent division (vote) records",
"items": {
"type": "object",
"description": "Individual division record"
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"uk-parliament": {
"url": "https://gateway.pipeworx.io/uk-parliament/mcp"
}
}
}
See Getting Started for client-specific install steps.