Server definition
- Hash
- sha256:ba69519a4f4709df9a4d23b1f1ad31bed34d8f907cdc280e9cb88428652396b5
- What it is
- What a remote MCP server returned when asked what it offers: 24 tools
The blob, as servednamed by its sha256
{
"instructions": "Use this server to retrieve Danish parliamentary data from politikdata.dk. Prefer exact IDs from vocabulary resources where available, include canonical politikdata.dk URLs in answers, and distinguish politikdata.dk data from original Folketinget source URLs when both are present. For comparison tools, omit result_filter or use result_filter=all when the user asks for overall similarity or agreement. Use result_filter=only_agreement or result_filter=only_disagreement only when the user asks to inspect matching result rows; these values must not be used to calculate the overall agreement percentage.",
"tools": [
{
"description": "Compare two Danish politicians/persons, two political parties, or one person against one party\n majority vote. Pass free-text names in left and right; when a name is ambiguous, retry with a specific\n input like person:123 or party:6 from the returned candidates. Leave result_filter as all for overall\n agreement; use only_agreement/only_disagreement only to inspect matching result rows. Comparable votes\n only include For, Imod, and Hverken for eller imod; Fravær/absence and undetermined party majority votes\n are excluded.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"accepted": {
"description": "Whether the afstemning was accepted/adopted.",
"type": "boolean"
},
"case_type_id": {
"description": "Related case type ID from the case type vocabulary resource.",
"type": "integer"
},
"category_id": {
"description": "Advanced refinement filter. Use only when the user explicitly asks\n for this category or to narrow an already-inspected result set; categories are difficult to distinguish and\n should usually be omitted for initial searches.",
"type": "integer"
},
"from_date": {
"description": "Earliest afstemning date, formatted as YYYY-MM-DD.",
"format": "date",
"type": "string"
},
"include_change_proposals": {
"default": false,
"description": "Include amendment/change proposal afstemninger. Defaults to false because change proposal vote casts do not describe what they changed.",
"type": "boolean"
},
"left": {
"description": "Left side person or party name. Use person:123 or party:123 to select a specific ID when a name is ambiguous.",
"type": "string"
},
"page": {
"default": 1,
"minimum": 1,
"type": "integer"
},
"page_size": {
"default": 25,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"query": {
"description": "Free-text query for Danish case title.",
"type": "string"
},
"result_filter": {
"default": "all",
"description": "Filter returned result rows. Use all for overall comparison questions. Use only_agreement/only_disagreement only to inspect matching result rows. This does not calculate overall agreement; summary remains the overall comparison after non-result-filter constraints.",
"enum": [
"all",
"only_agreement",
"only_disagreement"
],
"type": "string"
},
"right": {
"description": "Right side person or party name. Use person:123 or party:123 to select a specific ID when a name is ambiguous.",
"type": "string"
},
"sort_by": {
"default": "date",
"description": "Sort field. Defaults to date.",
"enum": [
"date",
"case_title",
"case_type",
"category",
"vote_cast_number",
"accepted",
"party_name",
"vote_type"
],
"type": "string"
},
"sort_direction": {
"default": "desc",
"description": "Sort direction. Defaults to desc.",
"enum": [
"asc",
"desc"
],
"type": "string"
},
"to_date": {
"description": "Latest afstemning date, formatted as YYYY-MM-DD.",
"format": "date",
"type": "string"
},
"vote_cast_type_id": {
"description": "Afstemning type ID from the vote event type vocabulary resource.",
"type": "integer"
},
"vote_type_id": {
"description": "Vote type ID. For person/person and person/party comparisons this filters person votes; for\n party/party comparisons this filters party majority votes.",
"type": "integer"
}
},
"required": [
"left",
"right"
],
"type": "object"
},
"name": "compare",
"outputSchema": null
},
{
"description": "Universal Deep Research-compatible fetch tool. Takes an id returned by search and returns a readable\n JSON document with id, title, text, url, and metadata.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"id": {
"description": "Result ID returned by the search tool, for example case:123, vote_cast:456, person:789, or party:2.",
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"name": "fetch",
"outputSchema": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"metadata": {
"additionalProperties": true,
"type": "object"
},
"text": {
"type": "string"
},
"title": {
"type": "string"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"title",
"text",
"url",
"metadata"
],
"type": "object"
}
},
{
"description": "Get compact details for one Danish parliamentary case, including paginated associated document\n metadata and file IDs for optional extracted document text retrieval.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"case_id": {
"description": "Case ID from search_cases, search_vote_casts, or vote search related_case.id.",
"minimum": 1,
"type": "integer"
},
"document_limit": {
"default": 25,
"description": "Maximum number of associated document metadata records to return. Use 0 to omit document items while keeping document counts.",
"maximum": 100,
"minimum": 0,
"type": "integer"
},
"document_offset": {
"default": 0,
"description": "Offset into the associated document metadata list. Use with document_limit to page through large case document lists.",
"minimum": 0,
"type": "integer"
}
},
"required": [
"case_id"
],
"type": "object"
},
"name": "get_case",
"outputSchema": null
},
{
"description": "Return a bounded slice of extracted text for a document file. Supports head, tail, and range\n pagination; source_url always points to the official PDF.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"file_id": {
"description": "File ID from get_case documents.items[].file.id.",
"minimum": 1,
"type": "integer"
},
"limit": {
"default": 20000,
"description": "Maximum number of extracted-text characters to return.",
"maximum": 50000,
"minimum": 1,
"type": "integer"
},
"mode": {
"default": "head",
"description": "Text slice mode. Use head for the beginning, tail for the end, or range with offset for pagination.",
"enum": [
"head",
"tail",
"range"
],
"type": "string"
},
"offset": {
"default": 0,
"description": "Character offset used only when mode is range. Use next_offset from a prior response to continue reading.",
"minimum": 0,
"type": "integer"
}
},
"required": [
"file_id"
],
"type": "object"
},
"name": "get_document_text",
"outputSchema": null
},
{
"description": "Inspect one public Danish parliamentary or municipal election by ID or slug. Returns election\n metadata, public result status, national turnout, vote totals and party vote shares, update timestamps,\n calculated but not officially verified parliamentary mandate counts, and the previous comparable election\n when available. Use list_elections to discover valid IDs and slugs, and the election-parties vocabulary\n resource to interpret list letters and abbreviations.",
"inputSchema": {
"additionalProperties": false,
"oneOf": [
{
"required": [
"election_id"
]
},
{
"required": [
"election_slug"
]
}
],
"properties": {
"election_id": {
"description": "Election ID from list_elections.",
"minimum": 1,
"type": "integer"
},
"election_slug": {
"description": "Election slug from list_elections, for example fv-2022 or kv-2025.",
"type": "string"
}
},
"type": "object"
},
"name": "get_election",
"outputSchema": null
},
{
"description": "Inspect candidate names, votes, and vote shares for one FV or KV election and geographic scope. Year is required. Party and candidate text filters can be combined. Candidate names accept IDs, slugs, exact names, or partial names. With one uniquely resolved candidate, breakdown_by can rank their regions, municipalities, or polling areas. Historical geographic candidate rows prove recorded results in the scope, not a complete authoritative ballot roster.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"breakdown_by": {
"description": "With one uniquely resolved candidate, break their result down geographically.",
"enum": [
"region",
"municipality",
"polling_area"
],
"type": "string"
},
"candidate": {
"description": "Optional candidate ID, slug, exact name, or partial name.",
"type": "string"
},
"constituency": {
"description": "Folketingsvalg constituency (Danish: storkreds) code or name.",
"type": "string"
},
"election_type": {
"default": "FV",
"description": "FV for Folketingsvalg or KV for Kommunalvalg.",
"enum": [
"FV",
"KV"
],
"type": "string"
},
"municipality": {
"description": "Municipality code, slug, or name, for example Horsens.",
"type": "string"
},
"nomination_district": {
"description": "Folketingsvalg nomination district (Danish: opstillingskreds) code or name.",
"type": "string"
},
"page": {
"default": 1,
"minimum": 1,
"type": "integer"
},
"page_size": {
"default": 25,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"party": {
"description": "Optional party name, abbreviation, list letter, or election list ID.",
"type": "string"
},
"polling_area": {
"description": "Polling area (Danish: afstemningsområde) DAGI code or name.",
"type": "string"
},
"region": {
"description": "Region code or name, for example Region Midtjylland.",
"type": "string"
},
"sort_by": {
"default": "votes",
"enum": [
"votes",
"vote_share",
"name"
],
"type": "string"
},
"sort_direction": {
"default": "desc",
"enum": [
"asc",
"desc"
],
"type": "string"
},
"year": {
"maximum": 2100,
"minimum": 1900,
"type": "integer"
}
},
"required": [
"year"
],
"type": "object"
},
"name": "get_election_candidates",
"outputSchema": null
},
{
"description": "Track turnout, vote totals, party or candidate performance, bloc shares, bloc lead, or calculated FV mandates across elections. from_year and to_year are optional and inclusive; omitted bounds mean all available history. Geography filters select the same named/code scope in each election. breakdown_by election returns a time series; region, constituency, or municipality ranks that dimension across the period using weighted vote totals rather than averaging percentages. Calculated mandates are not officially verified.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"breakdown_by": {
"default": "election",
"description": "Group by election, or rank one geographic dimension across the period.",
"enum": [
"election",
"region",
"constituency",
"municipality"
],
"type": "string"
},
"candidate": {
"description": "Required for candidate metrics; accepts candidate ID, slug, or name.",
"type": "string"
},
"constituency": {
"description": "Folketingsvalg constituency (Danish: storkreds) code or name.",
"type": "string"
},
"election_type": {
"default": "FV",
"description": "FV for Folketingsvalg or KV for Kommunalvalg.",
"enum": [
"FV",
"KV"
],
"type": "string"
},
"from_year": {
"maximum": 2100,
"minimum": 1900,
"type": "integer"
},
"metric": {
"enum": [
"party_votes",
"party_vote_share",
"calculated_mandates",
"candidate_votes",
"candidate_vote_share",
"turnout",
"eligible_voters",
"votes_cast",
"valid_votes",
"invalid_votes",
"left_bloc_vote_share",
"right_bloc_vote_share",
"bloc_lead"
],
"type": "string"
},
"municipality": {
"description": "Municipality code, slug, or name, for example Horsens.",
"type": "string"
},
"nomination_district": {
"description": "Folketingsvalg nomination district (Danish: opstillingskreds) code or name.",
"type": "string"
},
"page": {
"default": 1,
"minimum": 1,
"type": "integer"
},
"page_size": {
"default": 25,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"party": {
"description": "Required for party metrics; accepts name, abbreviation, letter, or list ID.",
"type": "string"
},
"polling_area": {
"description": "Polling area (Danish: afstemningsområde) DAGI code or name.",
"type": "string"
},
"region": {
"description": "Region code or name, for example Region Midtjylland.",
"type": "string"
},
"sort_by": {
"default": "year",
"enum": [
"year",
"value",
"name"
],
"type": "string"
},
"sort_direction": {
"default": "asc",
"enum": [
"asc",
"desc"
],
"type": "string"
},
"to_year": {
"maximum": 2100,
"minimum": 1900,
"type": "integer"
}
},
"required": [
"metric"
],
"type": "object"
},
"name": "get_election_history",
"outputSchema": null
},
{
"description": "Inspect vote totals, turnout, party/list vote shares, bloc winner and lead for one FV or KV election. Year is required. With no geography it returns national data; region, constituency, nomination district, municipality, and polling area arguments drill into applicable scopes. Optional party filtering accepts names, abbreviations, list letters, and list IDs. National FV seats are calculated by Politikdata and explicitly not officially verified mandate counts.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"constituency": {
"description": "Folketingsvalg constituency (Danish: storkreds) code or name.",
"type": "string"
},
"election_type": {
"default": "FV",
"description": "FV for Folketingsvalg or KV for Kommunalvalg.",
"enum": [
"FV",
"KV"
],
"type": "string"
},
"municipality": {
"description": "Municipality code, slug, or name, for example Horsens.",
"type": "string"
},
"nomination_district": {
"description": "Folketingsvalg nomination district (Danish: opstillingskreds) code or name.",
"type": "string"
},
"page": {
"default": 1,
"minimum": 1,
"type": "integer"
},
"page_size": {
"default": 25,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"party": {
"description": "Optional party name, abbreviation, list letter, or election list ID.",
"type": "string"
},
"polling_area": {
"description": "Polling area (Danish: afstemningsområde) DAGI code or name.",
"type": "string"
},
"region": {
"description": "Region code or name, for example Region Midtjylland.",
"type": "string"
},
"sort_by": {
"default": "votes",
"enum": [
"votes",
"vote_share",
"name"
],
"type": "string"
},
"sort_direction": {
"default": "desc",
"enum": [
"asc",
"desc"
],
"type": "string"
},
"year": {
"description": "Election year. Returns election_not_found when no matching election exists.",
"maximum": 2100,
"minimum": 1900,
"type": "integer"
}
},
"required": [
"year"
],
"type": "object"
},
"name": "get_election_votes",
"outputSchema": null
},
{
"description": "Get compact details for one Danish political party, including the manually registered party leader,\n profile statistics, national FV/KV vote-share history, latest parliamentary election result, validity\n dates, and public URLs. Any parliamentary mandate count marked calculated is not officially verified. Use\n compare with party:ID when comparing this party against a person or another party.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"party_id": {
"description": "Party ID from the parties vocabulary resource or party vote search results.",
"minimum": 1,
"type": "integer"
}
},
"required": [
"party_id"
],
"type": "object"
},
"name": "get_party",
"outputSchema": null
},
{
"description": "Get compact details for one Danish politician/person, including public biography summary, roles,\n party memberships, parliamentary vote statistics, election candidacies, and personal election votes. Use\n compare with person:ID when comparing this person against another person or a party majority vote.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"person_id": {
"description": "Person ID from search_persons, resolve_person, or a person-specific vote result.",
"minimum": 1,
"type": "integer"
}
},
"required": [
"person_id"
],
"type": "object"
},
"name": "get_person",
"outputSchema": null
},
{
"description": "Read a question with inline answers, actors, original files and provenance. Page answers with answer_offset; read full text with text_offset. Use answer_id to pin any related answer. Answers have no independent detail resource.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"answer_id": {
"default": 0,
"maximum": 2147483647,
"minimum": 0,
"type": "integer"
},
"answer_limit": {
"default": 25,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"answer_offset": {
"default": 0,
"maximum": 10000000,
"minimum": 0,
"type": "integer"
},
"matched_answer_offset": {
"default": 0,
"maximum": 10000000,
"minimum": 0,
"type": "integer"
},
"query": {
"description": "Repeat the search query to include matching answers outside the ordinary answer window.",
"maxLength": 500,
"type": "string"
},
"question_id": {
"minimum": 1,
"type": "integer"
},
"text_limit": {
"default": 2000,
"maximum": 20000,
"minimum": 1,
"type": "integer"
},
"text_offset": {
"default": 0,
"maximum": 10000000,
"minimum": 0,
"type": "integer"
}
},
"required": [
"question_id"
],
"type": "object"
},
"name": "get_question",
"outputSchema": null
},
{
"description": "Read the non-searchable parliamentary timeline for a question, including source provenance, corrections and observation dates. Page with offset and limit.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"limit": {
"default": 25,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"offset": {
"default": 0,
"maximum": 10000000,
"minimum": 0,
"type": "integer"
},
"question_id": {
"minimum": 1,
"type": "integer"
}
},
"required": [
"question_id"
],
"type": "object"
},
"name": "get_question_history",
"outputSchema": null
},
{
"description": "Get compact details for one Danish parliamentary afstemning/vote cast, including paginated party vote\n breakdown. This does not include the full roll-call list of individual politician votes; use\n get_vote_cast_votes for that.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"party_vote_limit": {
"default": 50,
"description": "Maximum number of party vote breakdown rows to return. Use 0 to omit party vote items while keeping counts.",
"maximum": 100,
"minimum": 0,
"type": "integer"
},
"party_vote_offset": {
"default": 0,
"description": "Offset into the party vote breakdown list.",
"minimum": 0,
"type": "integer"
},
"vote_cast_id": {
"description": "Vote cast / afstemning ID from search_vote_casts or vote search results.",
"minimum": 1,
"type": "integer"
}
},
"required": [
"vote_cast_id"
],
"type": "object"
},
"name": "get_vote_cast",
"outputSchema": null
},
{
"description": "Get the full voting breakdown for one Danish parliamentary afstemning/vote cast, including both\n party-level votes and individual politician roll-call votes.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"vote_cast_id": {
"description": "Vote cast / afstemning ID from search_vote_casts or vote search results.",
"minimum": 1,
"type": "integer"
}
},
"required": [
"vote_cast_id"
],
"type": "object"
},
"name": "get_vote_cast_votes",
"outputSchema": null
},
{
"description": "List public Danish parliamentary and municipal elections that have result data or are\n enabled for live coverage. Returns IDs and slugs for get_election, plus current default/live markers and\n public URLs.",
"inputSchema": {
"additionalProperties": false,
"properties": {},
"type": "object"
},
"name": "list_elections",
"outputSchema": null
},
{
"description": "Resolve politicians by name only. Use this when an MCP client needs person IDs before calling\n person-specific tools.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"current_only": {
"default": true,
"description": "Limit to politicians active in the current period.",
"type": "boolean"
},
"max_candidates": {
"default": 10,
"maximum": 25,
"minimum": 1,
"type": "integer"
},
"name": {
"description": "Full or partial name of a politician. Searches only person name fields.",
"type": "string"
},
"period_id": {
"description": "Optional parliamentary period ID.",
"type": "integer"
}
},
"required": [
"name"
],
"type": "object"
},
"name": "resolve_person",
"outputSchema": null
},
{
"description": "Universal Deep Research-compatible search across Politikdata.dk questions and their answers, cases, vote casts, people, and\n parties. Use fetch with the returned id to retrieve a readable citation source.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"query": {
"description": "Natural-language search query.",
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
},
"name": "search",
"outputSchema": {
"additionalProperties": false,
"properties": {
"results": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"id",
"title",
"url"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"results"
],
"type": "object"
}
},
{
"description": "Search Danish parliamentary cases/documents by text, date range, type, category, and topic. Category\n filters should usually be omitted for initial searches and used only for refinement.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"case_type_id": {
"description": "Case type ID from the case type vocabulary resource.",
"type": "integer"
},
"category_id": {
"description": "Advanced refinement filter. Use only when the user explicitly asks\n for this category or to narrow an already-inspected result set; categories are difficult to distinguish and\n should usually be omitted for initial searches.",
"type": "integer"
},
"from_date": {
"description": "Earliest update date, formatted as YYYY-MM-DD.",
"format": "date",
"type": "string"
},
"keyword_id": {
"description": "Exact keyword ID, when known.",
"type": "integer"
},
"keyword_text": {
"description": "Natural-language topic text. Prefer this when exact keyword IDs are ambiguous.",
"type": "string"
},
"page": {
"default": 1,
"minimum": 1,
"type": "integer"
},
"page_size": {
"default": 25,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"query": {
"description": "Free-text query for case title, resume, explanation, or case number.",
"type": "string"
},
"sort_by": {
"default": "updated_date",
"description": "Sort field. Defaults to updated_date.",
"enum": [
"updated_date",
"created_date",
"title",
"case_number"
],
"type": "string"
},
"sort_direction": {
"default": "desc",
"description": "Sort direction. Defaults to desc.",
"enum": [
"asc",
"desc"
],
"type": "string"
},
"to_date": {
"description": "Latest update date, formatted as YYYY-MM-DD.",
"format": "date",
"type": "string"
}
},
"type": "object"
},
"name": "search_cases",
"outputSchema": null
},
{
"description": "Search parliamentary topic keywords by text. Results are ordered by associated document count so\n frequently used keywords are suggested first.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"page": {
"default": 1,
"minimum": 1,
"type": "integer"
},
"page_size": {
"default": 25,
"maximum": 50,
"minimum": 1,
"type": "integer"
},
"query": {
"description": "Keyword text or partial topic text to search for.",
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
},
"name": "search_keywords",
"outputSchema": null
},
{
"description": "Search how a Danish political party voted in Folketinget afstemninger/stemmer. Use party IDs from the\n parties vocabulary resource. Category filters should usually be omitted for initial searches and used\n only for refinement.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"case_type_id": {
"description": "Related case type ID from the case type vocabulary resource.",
"type": "integer"
},
"category_id": {
"description": "Advanced refinement filter. Use only when the user explicitly asks\n for this category or to narrow an already-inspected result set; categories are difficult to distinguish and\n should usually be omitted for initial searches.",
"type": "integer"
},
"from_date": {
"description": "Earliest afstemning date, formatted as YYYY-MM-DD.",
"format": "date",
"type": "string"
},
"include_change_proposals": {
"default": false,
"description": "Include amendment/change proposal afstemninger. Defaults to false because change proposal vote casts do not describe what they changed.",
"type": "boolean"
},
"page": {
"default": 1,
"minimum": 1,
"type": "integer"
},
"page_size": {
"default": 25,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"party_id": {
"description": "Party ID from the parties vocabulary resource.",
"minimum": 1,
"type": "integer"
},
"query": {
"description": "Free-text query for Danish case title.",
"type": "string"
},
"sort_by": {
"default": "date",
"description": "Sort field. Defaults to date.",
"enum": [
"date",
"case_title",
"case_type",
"category",
"vote_cast_number",
"accepted",
"party_name",
"vote_type"
],
"type": "string"
},
"sort_direction": {
"default": "desc",
"description": "Sort direction. Defaults to desc.",
"enum": [
"asc",
"desc"
],
"type": "string"
},
"to_date": {
"description": "Latest afstemning date, formatted as YYYY-MM-DD.",
"format": "date",
"type": "string"
},
"vote_cast_type_id": {
"description": "Afstemning type ID from the vote event type vocabulary resource.",
"type": "integer"
},
"vote_type_id": {
"description": "Party vote type ID from the vote types vocabulary resource.",
"type": "integer"
}
},
"required": [
"party_id"
],
"type": "object"
},
"name": "search_party_votes",
"outputSchema": null
},
{
"description": "Search how a Danish politician/person voted in Folketinget afstemninger/stemmer. Use resolve_person\n first when only a name is known. Category filters should usually be omitted for initial searches and used\n only for refinement.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"case_type_id": {
"description": "Related case type ID from the case type vocabulary resource.",
"type": "integer"
},
"category_id": {
"description": "Advanced refinement filter. Use only when the user explicitly asks\n for this category or to narrow an already-inspected result set; categories are difficult to distinguish and\n should usually be omitted for initial searches.",
"type": "integer"
},
"from_date": {
"description": "Earliest afstemning date, formatted as YYYY-MM-DD.",
"format": "date",
"type": "string"
},
"include_change_proposals": {
"default": false,
"description": "Include amendment/change proposal afstemninger. Defaults to false because change proposal vote casts do not describe what they changed.",
"type": "boolean"
},
"page": {
"default": 1,
"minimum": 1,
"type": "integer"
},
"page_size": {
"default": 25,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"person_id": {
"description": "Person ID. Use resolve_person first when only a name is known.",
"minimum": 1,
"type": "integer"
},
"query": {
"description": "Free-text query for Danish case title.",
"type": "string"
},
"sort_by": {
"default": "date",
"description": "Sort field. Defaults to date.",
"enum": [
"date",
"case_title",
"case_type",
"category",
"vote_cast_number",
"accepted",
"party_name",
"vote_type"
],
"type": "string"
},
"sort_direction": {
"default": "desc",
"description": "Sort direction. Defaults to desc.",
"enum": [
"asc",
"desc"
],
"type": "string"
},
"to_date": {
"description": "Latest afstemning date, formatted as YYYY-MM-DD.",
"format": "date",
"type": "string"
},
"vote_cast_type_id": {
"description": "Afstemning type ID from the vote event type vocabulary resource.",
"type": "integer"
},
"vote_type_id": {
"description": "Person vote type ID from the vote types vocabulary resource.",
"type": "integer"
}
},
"required": [
"person_id"
],
"type": "object"
},
"name": "search_person_votes",
"outputSchema": null
},
{
"description": "Resolve or search politicians by name, optionally limited by parliamentary period.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"current_only": {
"default": true,
"description": "Limit to politicians active in the current period.",
"type": "boolean"
},
"page": {
"default": 1,
"minimum": 1,
"type": "integer"
},
"page_size": {
"default": 25,
"maximum": 50,
"minimum": 1,
"type": "integer"
},
"period_id": {
"description": "Optional parliamentary period ID.",
"type": "integer"
},
"query": {
"description": "Name or partial name of a politician.",
"type": "string"
},
"sort_by": {
"description": "Optional explicit sort field. Omit to keep relevance-first ordering for name searches.",
"enum": [
"last_name",
"name",
"party",
"period"
],
"type": "string"
},
"sort_direction": {
"default": "asc",
"description": "Sort direction for explicit sort_by. Defaults to asc.",
"enum": [
"asc",
"desc"
],
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
},
"name": "search_persons",
"outputSchema": null
},
{
"description": "Search all Danish parliamentary questions including text in their answers. Results and facets count distinct questions; answers appear inline. Use get_question to read all answers.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"answer_format": {
"description": "Svarform",
"items": {
"type": "string"
},
"maxItems": 100,
"type": "array"
},
"answer_format_offset": {
"maximum": 100000,
"minimum": 0,
"type": "integer"
},
"answer_format_search": {
"maxLength": 100,
"type": "string"
},
"asker": {
"description": "Stillet af",
"items": {
"type": "integer"
},
"maxItems": 100,
"type": "array"
},
"asker_offset": {
"maximum": 100000,
"minimum": 0,
"type": "integer"
},
"asker_search": {
"maxLength": 100,
"type": "string"
},
"committee": {
"description": "Udvalg",
"items": {
"type": "integer"
},
"maxItems": 100,
"type": "array"
},
"committee_offset": {
"maximum": 100000,
"minimum": 0,
"type": "integer"
},
"committee_search": {
"maxLength": 100,
"type": "string"
},
"emne": {
"description": "Emne",
"items": {
"type": "integer"
},
"maxItems": 100,
"type": "array"
},
"emne_offset": {
"maximum": 100000,
"minimum": 0,
"type": "integer"
},
"emne_search": {
"maxLength": 100,
"type": "string"
},
"emneord": {
"description": "Nøgleord",
"items": {
"type": "integer"
},
"maxItems": 100,
"type": "array"
},
"emneord_offset": {
"maximum": 100000,
"minimum": 0,
"type": "integer"
},
"emneord_search": {
"maxLength": 100,
"type": "string"
},
"from_date": {
"format": "date",
"type": "string"
},
"page": {
"default": 1,
"maximum": 200,
"minimum": 1,
"type": "integer"
},
"page_size": {
"default": 25,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"party": {
"description": "Spørgerens parti",
"items": {
"type": "integer"
},
"maxItems": 100,
"type": "array"
},
"party_attribution": {
"description": "Sikkerhed om partitilknytning",
"items": {
"type": "string"
},
"maxItems": 100,
"type": "array"
},
"party_attribution_offset": {
"maximum": 100000,
"minimum": 0,
"type": "integer"
},
"party_attribution_search": {
"maxLength": 100,
"type": "string"
},
"party_offset": {
"maximum": 100000,
"minimum": 0,
"type": "integer"
},
"party_search": {
"maxLength": 100,
"type": "string"
},
"query": {
"description": "Words in a question or any of its answers.",
"maxLength": 500,
"type": "string"
},
"question_type": {
"description": "Spørgsmålstype",
"items": {
"type": "string"
},
"maxItems": 100,
"type": "array"
},
"question_type_offset": {
"maximum": 100000,
"minimum": 0,
"type": "integer"
},
"question_type_search": {
"maxLength": 100,
"type": "string"
},
"recipient": {
"description": "Stillet til",
"items": {
"type": "integer"
},
"maxItems": 100,
"type": "array"
},
"recipient_offset": {
"maximum": 100000,
"minimum": 0,
"type": "integer"
},
"recipient_search": {
"maxLength": 100,
"type": "string"
},
"respondent": {
"description": "Besvaret af",
"items": {
"type": "integer"
},
"maxItems": 100,
"type": "array"
},
"respondent_offset": {
"maximum": 100000,
"minimum": 0,
"type": "integer"
},
"respondent_search": {
"maxLength": 100,
"type": "string"
},
"sort_by": {
"enum": [
"date",
"title",
"relevance"
],
"type": "string"
},
"sort_direction": {
"enum": [
"asc",
"desc"
],
"type": "string"
},
"status": {
"description": "Status",
"items": {
"type": "string"
},
"maxItems": 100,
"type": "array"
},
"status_offset": {
"maximum": 100000,
"minimum": 0,
"type": "integer"
},
"status_search": {
"maxLength": 100,
"type": "string"
},
"to_date": {
"format": "date",
"type": "string"
}
},
"type": "object"
},
"name": "search_questions",
"outputSchema": null
},
{
"description": "Search Danish parliamentary afstemninger/stemmer, meaning aggregate vote results for a case step.\n This does not search individual person or party votes. Category filters should usually be omitted for\n initial searches and used only for refinement.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"accepted": {
"description": "Whether the afstemning was accepted/adopted.",
"type": "boolean"
},
"case_type_id": {
"description": "Related case type ID from the case type vocabulary resource.",
"type": "integer"
},
"category_id": {
"description": "Advanced refinement filter. Use only when the user explicitly asks\n for this category or to narrow an already-inspected result set; categories are difficult to distinguish and\n should usually be omitted for initial searches.",
"type": "integer"
},
"from_date": {
"description": "Earliest meeting date, formatted as YYYY-MM-DD.",
"format": "date",
"type": "string"
},
"include_change_proposals": {
"default": false,
"description": "Include amendment/change proposal afstemninger. Defaults to false.",
"type": "boolean"
},
"keyword_id": {
"description": "Exact keyword ID, when known.",
"type": "integer"
},
"keyword_text": {
"description": "Natural-language topic text. Prefer this when exact keyword IDs are ambiguous.",
"type": "string"
},
"page": {
"default": 1,
"minimum": 1,
"type": "integer"
},
"page_size": {
"default": 25,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"query": {
"description": "Free-text query for Danish case title or case number.",
"type": "string"
},
"sort_by": {
"default": "date",
"description": "Sort field. Defaults to date.",
"enum": [
"date",
"title",
"case_number",
"vote_cast_number",
"accepted",
"majority_vote_type"
],
"type": "string"
},
"sort_direction": {
"default": "desc",
"description": "Sort direction. Defaults to desc.",
"enum": [
"asc",
"desc"
],
"type": "string"
},
"to_date": {
"description": "Latest meeting date, formatted as YYYY-MM-DD.",
"format": "date",
"type": "string"
},
"vote_cast_type_id": {
"description": "Afstemning type ID from the vote cast/event type vocabulary resource.",
"type": "integer"
}
},
"type": "object"
},
"name": "search_vote_casts",
"outputSchema": null
}
]
}Verify it yourself
curl -s https://api.teppi.xyz/v1/evidence/sha256:ba69519a4f4709df9a4d23b1f1ad31bed34d8f907cdc280e9cb88428652396b5 | sha256sum