query_entity
Pack: folketinget-dk · Endpoint: https://gateway.pipeworx.io/folketinget-dk/mcp
Query a Folketinget (Danish Parliament) OData v3 entity collection. Returns matching rows under the value array. Fields and values are in Danish (e.g. titel=title, navn=name, opdateringsdato=last-updated). Supports OData $filter/$orderby/$expand/$select with $top/$skip paging. Example filters: “year(opdateringsdato) eq 2024”, “substringof(‘klima’,titel)”, “typeid eq 3”.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
entity | string | yes | |
filter | string | no | OData $filter, e.g. “year(opdateringsdato) eq 2024” or “substringof(‘klima’,titel)”. |
top | number | no | OData $top — max rows to return (default 20). |
skip | number | no | OData $skip — rows to skip for paging. |
orderby | string | no | OData $orderby, e.g. “opdateringsdato desc”. |
expand | string | no | OData $expand — related entities to inline, e.g. “Stemme” or “Sagstrin”. |
select | string | no | OData $select — comma-separated fields, e.g. “id,titel,opdateringsdato”. |
Example call
Arguments
{
"entity": "Sag",
"filter": "year(opdateringsdato) eq 2024",
"top": 10,
"orderby": "opdateringsdato desc"
}
curl
curl -X POST https://gateway.pipeworx.io/folketinget-dk/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query_entity","arguments":{"entity":"Sag","filter":"year(opdateringsdato) eq 2024","top":10,"orderby":"opdateringsdato desc"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('query_entity', {
"entity": "Sag",
"filter": "year(opdateringsdato) eq 2024",
"top": 10,
"orderby": "opdateringsdato desc"
});
More examples
{
"entity": "Stemme",
"filter": "substringof('klima',titel)",
"select": "id,titel,opdateringsdato",
"top": 5
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"folketinget-dk": {
"url": "https://gateway.pipeworx.io/folketinget-dk/mcp"
}
}
}
See Getting Started for client-specific install steps.