folketinget_dk_get_question_answer
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/folketinget_dk_get_question_answer for the schema, then POST the same URL with its arguments for the data.
One Folketinget committee question (udvalgsspørgsmål, alm. del) together with the minister’s answer, as a single structured record: question text, who asked it (name, party) and who else, committee, case, dates, the answering minister (office title and the office holder’s name), the FULL answer text extracted from the published answer file (PDF or Word), the files attached to both, and the source document id. Give the question or answer document id, a Folketinget website address of either, or committee abbreviation + question number + session (e.g. committee ERU, question_number 140, session 20252). A question that has no answer yet comes back with answer_status not_yet_answered and answer null, never empty fields; a preliminary answer is labelled preliminary_only. Long answers page with offset/max_chars. Text is Danish. Source: Folketinget, parliamentary document register.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
document_id | number | no | Dokument id of the question OR of its answer (type Spørgsmål or Svar), e.g. 1237262. |
url | string | no | A Folketinget website address of the question or answer file, or a /spm/ |
committee | string | no | Committee abbreviation as used in the register, e.g. “ERU”, “SUU”, “FIU”. With question_number. |
question_number | number | no | Question number within the committee and session, e.g. 140. |
session | string | no | Parliamentary session code, e.g. “20261” (2026-27) or “20252” (2025-26, 2nd session). Default: the current session. |
max_chars | number | no | Max characters of answer text to return (default 100000, max 400000). |
offset | number | no | Character offset into the answer text, for paging (default 0). |
Example call
Arguments
{
"document_id": 1236625
}
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":"folketinget_dk_get_question_answer","arguments":{"document_id":1236625}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('folketinget_dk_get_question_answer', {
"document_id": 1236625
});
More examples
{
"committee": "ERU",
"question_number": 1,
"session": "20261"
}
{
"url": "https://www.ft.dk/samling/20261/lovforslag/l2/spm/18/svar/2253163/3223111.pdf",
"max_chars": 20000
}
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | False when the document, address or question number matches nothing in the register |
record_type | string | |
answer_status | string | answered, preliminary_only or not_yet_answered |
answered | boolean | |
question | object | |
answer | object | null | null only when answer_status is not_yet_answered |
attachments | array | |
source_document_id | number | |
data_as_of | string | null | |
source | string | |
reason | string | |
message | string |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean",
"description": "False when the document, address or question number matches nothing in the register"
},
"record_type": {
"type": "string"
},
"answer_status": {
"type": "string",
"description": "answered, preliminary_only or not_yet_answered"
},
"answered": {
"type": "boolean"
},
"question": {
"type": "object",
"properties": {
"document_id": {
"type": "number"
},
"title": {
"type": [
"string",
"null"
]
},
"number": {
"type": [
"number",
"null"
]
},
"session": {
"type": [
"string",
"null"
]
},
"committee": {
"type": [
"string",
"null"
]
},
"committee_abbreviation": {
"type": [
"string",
"null"
]
},
"case": {
"type": [
"object",
"null"
],
"additionalProperties": true
},
"text": {
"type": [
"string",
"null"
],
"description": "Danish wording of the question"
},
"text_source": {
"type": "string"
},
"asked_by": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"co_askers": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"addressed_to": {
"type": [
"string",
"null"
]
},
"date": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": true
},
"answer": {
"type": [
"object",
"null"
],
"description": "null only when answer_status is not_yet_answered",
"properties": {
"document_id": {
"type": "number"
},
"title": {
"type": [
"string",
"null"
]
},
"date": {
"type": [
"string",
"null"
]
},
"released": {
"type": [
"string",
"null"
]
},
"preliminary": {
"type": "boolean"
},
"answered_by": {
"type": "object",
"properties": {
"title": {
"type": [
"string",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"name_note": {
"type": "string"
}
},
"additionalProperties": true
},
"file": {
"type": "object",
"additionalProperties": true
},
"text": {
"type": [
"string",
"null"
],
"description": "Full answer text (paged); null when reason is set"
},
"text_chars_total": {
"type": "number"
},
"offset": {
"type": "number"
},
"returned_chars": {
"type": "number"
},
"truncated": {
"type": "boolean"
},
"next_offset": {
"type": [
"number",
"null"
]
},
"reason": {
"type": "string"
},
"message": {
"type": "string"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": true
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"source_document_id": {
"type": "number"
},
"data_as_of": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"message": {
"type": "string"
}
},
"additionalProperties": true
}
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.