recent_divisions
Pack: uk-parliament · 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/recent_divisions for the schema, then POST the same URL with its arguments for the data.
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 |
|---|---|---|
Results | array | |
TotalResultCount | number |
Full JSON Schema
{
"type": "object",
"properties": {
"Results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Id": {
"type": "number"
},
"Time": {
"type": [
"string",
"null"
]
},
"Date": {
"type": "string"
},
"DivisionHasTime": {
"type": "boolean"
},
"ExternalId": {
"type": "string"
},
"AyesCount": {
"type": "number"
},
"NoesCount": {
"type": "number"
},
"House": {
"type": "string"
},
"DebateSection": {
"type": "string"
},
"DebateSectionSource": {
"type": "string"
},
"Number": {
"type": "string"
},
"DebateSectionExtId": {
"type": "string"
},
"MemberVotedAye": {
"type": "null"
},
"TextBeforeVote": {
"type": "string"
},
"TextAfterVote": {
"type": "string"
},
"EVELType": {
"type": "null"
},
"EVELInfo": {
"type": "null"
},
"EVELAyesCount": {
"type": "null"
},
"EVELNoesCount": {
"type": "null"
},
"IsCommitteeDivision": {
"type": "boolean"
}
}
}
},
"TotalResultCount": {
"type": "number"
}
},
"description": "Recent recorded parliamentary votes"
}
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 uk-parliament pack
{
"mcpServers": {
"uk-parliament": {
"url": "https://gateway.pipeworx.io/uk-parliament/mcp"
}
}
}
See Getting Started for client-specific install steps.