get_entity_by_id

Pack: folketinget-dk · Endpoint: https://gateway.pipeworx.io/folketinget-dk/mcp

Fetch a single Folketinget entity record by its numeric id, e.g. Sag(1). Returns the record object directly (not wrapped in value). Use $expand to inline related entities.

Parameters

NameTypeRequiredDescription
entitystringyes
idnumberyesNumeric id of the record.
expandstringnoOData $expand — related entities to inline, e.g. “Sagstrin” or “Stemme”.
selectstringnoOData $select — comma-separated fields.

Example call

Arguments

{
  "entity": "Sag",
  "id": 12345,
  "expand": "Sagstrin"
}

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":"get_entity_by_id","arguments":{"entity":"Sag","id":12345,"expand":"Sagstrin"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_entity_by_id', {
  "entity": "Sag",
  "id": 12345,
  "expand": "Sagstrin"
});

More examples

{
  "entity": "Aktør",
  "id": 67890,
  "select": "id,navn,typeid"
}

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