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

NameTypeRequiredDescription
entitystringyes
filterstringnoOData $filter, e.g. “year(opdateringsdato) eq 2024” or “substringof(‘klima’,titel)”.
topnumbernoOData $top — max rows to return (default 20).
skipnumbernoOData $skip — rows to skip for paging.
orderbystringnoOData $orderby, e.g. “opdateringsdato desc”.
expandstringnoOData $expand — related entities to inline, e.g. “Stemme” or “Sagstrin”.
selectstringnoOData $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.

Regenerated from source · build August 28, 2026