get_entity_by_id
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/get_entity_by_id for the schema, then POST the same URL with its arguments for the data.
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
| Name | Type | Required | Description |
|---|---|---|---|
entity | string | yes | |
id | number | yes | Numeric id of the record. |
expand | string | no | OData $expand — related entities to inline, e.g. “Sagstrin” or “Stemme”. |
select | string | no | OData $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 — 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.