query_entity
Pack: tweedekamer-nl · 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/query_entity for the schema, then POST the same URL with its arguments for the data.
Query a Tweede Kamer (Dutch Parliament) OData v4 entity set with full OData passthrough.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
entity | string | yes | |
filter | string | no | OData $filter. eq/ne/gt/lt + contains()/startswith()/endswith(). String literals in single quotes (double an embedded quote). E.g. “Afkorting eq ‘VVD’”, “contains(Achternaam,‘Rut’)”, “AantalZetels gt 10”. |
orderby | string | no | OData $orderby, e.g. “Achternaam asc” or “GewijzigdOp desc”. |
select | string | no | OData $select: comma-separated Dutch field names, e.g. “Id,Achternaam,Roepnaam,Functie”. |
expand | string | no | OData $expand: navigation properties to inline, e.g. “FractieZetel”. |
top | number | no | Max records to return (default 25, OData $top). |
skip | number | no | Records to skip for paging (OData $skip). |
count | boolean | no | If true, include total match count as @odata.count. |
Example call
Arguments
{
"entity": "Persoon",
"filter": "Achternaam eq 'Rutte'",
"select": "Id,Achternaam,Roepnaam,Functie",
"top": 10
}
curl
curl -X POST https://gateway.pipeworx.io/tweedekamer-nl/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query_entity","arguments":{"entity":"Persoon","filter":"Achternaam eq '\''Rutte'\''","select":"Id,Achternaam,Roepnaam,Functie","top":10}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('query_entity', {
"entity": "Persoon",
"filter": "Achternaam eq 'Rutte'",
"select": "Id,Achternaam,Roepnaam,Functie",
"top": 10
});
More examples
{
"entity": "Fractie",
"filter": "AantalZetels gt 10",
"orderby": "AantalZetels desc",
"select": "Id,Naam,Afkorting,AantalZetels",
"top": 25
}
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 tweedekamer-nl pack
{
"mcpServers": {
"tweedekamer-nl": {
"url": "https://gateway.pipeworx.io/tweedekamer-nl/mcp"
}
}
}
See Getting Started for client-specific install steps.