Skip to main content
Glama

Dk Poll Average

dk_poll_average
Read-onlyIdempotent

Simple average of Danish Folketing party shares over a window of recent polls. Method (also stated in the response): within the window, take each pollster's mean per party, then the unweighted mean across pollsters, so a pollster that publishes weekly does not outweigh one that publishes monthly. No sample-size weighting, no house-effect correction. Window defaults to the 30 days ending at the latest poll. Source: Wikipedia, opinion polling for Danish general elections (CC BY-SA 4.0).

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": {
      "days": 30
    },
    "name": "dk_poll_average"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoWindow end date YYYY-MM-DD (default: date of the latest poll)
daysNoWindow length in days ending at "to" (default 30, max 365)

Output Schema

NameRequiredDescriptionDefault
methodNo
sourceNo
windowNo
averagesNo
pollstersNo
data_as_ofNo
count_pollsNo
party_namesNo
covered_rangeNo
party_lettersNo
sum_of_averagesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the exact aggregation method, including per-pollster means followed by an unweighted cross-pollster mean. It also states important limitations: no sample-size weighting and no house-effect correction, plus source attribution and default window behavior.

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

Conciseness5/5

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

The description is front-loaded with the core purpose, then efficiently covers method, limitations, defaults, and source. Every sentence contributes useful information without unnecessary verbosity.

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

Completeness4/5

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

For a simple averaging tool with an output schema and rich annotations, the description is nearly complete: it explains the method, limitations, defaults, and data source. The main remaining gap is explicit routing guidance relative to sibling polling tools.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents both parameters fully. The description repeats the default window behavior, but adds no parameter syntax or constraints beyond what the schema provides, making the baseline 3 appropriate.

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

Purpose5/5

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

The description states a specific operation: computing a simple average of Danish Folketing party shares over a recent-poll window. It clearly distinguishes this from a raw latest-poll or series tool by emphasizing the averaging method and window scope.

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

Usage Guidelines2/5

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

The description does not explicitly say when to use this tool versus siblings such as dk_latest_polls or dk_party_series. It implies a use case through the averaging method but provides no comparison, exclusions, or decision guidance.

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.