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

NameTypeRequiredDescription
document_idnumbernoDokument id of the question OR of its answer (type Spørgsmål or Svar), e.g. 1237262.
urlstringnoA Folketinget website address of the question or answer file, or a /spm// address.
committeestringnoCommittee abbreviation as used in the register, e.g. “ERU”, “SUU”, “FIU”. With question_number.
question_numbernumbernoQuestion number within the committee and session, e.g. 140.
sessionstringnoParliamentary session code, e.g. “20261” (2026-27) or “20252” (2025-26, 2nd session). Default: the current session.
max_charsnumbernoMax characters of answer text to return (default 100000, max 400000).
offsetnumbernoCharacter 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

FieldTypeDescription
foundbooleanFalse when the document, address or question number matches nothing in the register
record_typestring
answer_statusstringanswered, preliminary_only or not_yet_answered
answeredboolean
questionobject
answerobject | nullnull only when answer_status is not_yet_answered
attachmentsarray
source_document_idnumber
data_as_ofstring | null
sourcestring
reasonstring
messagestring
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.

Regenerated from source · build November 21, 2026