query_entity

Pack: folketinget-dk · 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 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 — 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 folketinget-dk pack
{
  "mcpServers": {
    "folketinget-dk": {
      "url": "https://gateway.pipeworx.io/folketinget-dk/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 11, 2026