Skip to main content
Glama

Dk Elections Results

dk_elections_results
Read-onlyIdempotent

Results of one Danish national election or referendum by geography level, down to polling-station area (2009 on) or voting station (Folketing 1979-2007): votes, percent and seats per party (or yes/no votes for a referendum), plus eligible voters, turnout and invalid votes. Seats are null for 1979-2007 (not in the source). For landsdel and the constituency level (storkreds, or amtskreds before 2007), omit area to get every unit. For opstillingskreds and the station levels, omit area to list the units and their ids, then call again with area. Source: Statistics Denmark. 1979-2007 responses say served_from stored copy and carry data_as_of; an unknown election returns an explicit not-covered answer.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "area": "Københavns Storkreds",
      "level": "storkreds",
      "election": "2026-03-24"
    },
    "name": "dk_elections_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaNoUnit name (or part of it) or unit id at that level, e.g. "Københavns Storkreds", "1. Østerbro", "10. Kreds, Bülowsvej", or for 1979-2005 an amtskreds number such as "7".
typeNofolketingsvalg, europa-parlamentsvalg or folkeafstemning. Needed when a date has two elections (2009-06-07 and 2014-05-25 each had a European election and a referendum).
levelNoGeography level: country, landsdel (3 regions), storkreds (10 multi-member districts; the 2007 election and later), amtskreds (17 stor- og amtskredse, Folketing 1979-2005 only; named from 2001, numbers only before), opstillingskreds (nomination district: 92 from 2007, 103 before), afstemningsomraade (polling-station area, 2009 and later) or valgsted (voting station, Folketing 1979-2007 only). A level an election does not have returns an error naming the levels it does have. Default: country.
withinNoOptional parent unit name or id, to disambiguate area names that occur under more than one parent.
electionNoElection date YYYY-MM-DD, or a year YYYY. Default: the latest election of the given type (latest overall if no type).

Output Schema

NameRequiredDescriptionDefault
dateNo
typeNo
levelNo
sourceNo
windowNo
resultsNo
electionNo
data_as_ofNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Well beyond the annotations: seats are null for 1979-2007 because the source lacks them, pre-2008 responses report served_from a stored copy and carry data_as_of, and an unavailable level returns an error naming the levels that do exist. This tells the agent exactly how degraded or fallback results look. It does not discuss rate limits or pagination, keeping it just under a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with what is returned, then workflow rules; every sentence carries information. It is dense with parentheticals and date ranges, which raises parsing load slightly, but there is no filler to cut.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described. Given five optional parameters, multiple geography levels and a long historical span, the definition covers level availability, defaulting, ambiguity resolution and edge-case responses completely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds genuine workflow meaning on top. The two-step area-discovery pattern for fine geography levels, and the requirement for type on ambiguous dates, are semantics the schema does not convey. The per-level naming conventions are largely already in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: results of one Danish national election or referendum broken down by geography level, including votes, percent, seats, turnout and invalid votes. Scope (polling-station area from 2009, voting station for Folketing 1979-2007) is spelled out. It does not explicitly name a sibling to route away from (e.g. turnout or party-over-time), so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives operational rules: omit area for landsdel and storkreds/amtskreds to get every unit, but for opstillingskreds and station levels first call without area to list ids then call again with area. Also states when type is required (dates such as 2009-06-07 and 2014-05-25 with two elections), the default level, and that an unknown election yields an explicit not-covered answer.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.