Skip to main content
Glama
malkreide

swiss-democracy-mcp

by malkreide

democracy_bfs_get_vote_results

Read-onlyIdempotent

Fetch Swiss voting results in real-time or from archives at national, cantonal, or municipal level. Specify a result URL and level to obtain structured JSON data per proposal.

Instructions

Ruft Echtzeit- oder Archiv-Abstimmungsresultate vom BFS ab.

Nutzt die direkte JSON-URL eines Abstimmungsdatums (aus democracy_bfs_list_vote_dates). Gibt Resultate pro Vorlage auf nationaler, kantonaler oder Gemeindeebene zurück. Am Abstimmungssonntag werden die Daten laufend aktualisiert.

Args: params (BfsVoteResultInput): Enthält: - result_url (str): URL aus democracy_bfs_list_vote_dates - level (str): 'national', 'cantonal' oder 'municipality'

Returns: str: JSON mit Abstimmungsresultaten pro Vorlage

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the agent knows it's a safe read operation. The description adds valuable context: real-time updates on voting Sunday, the ability to fetch archive data, and the level of aggregation. No contradictions with annotations.

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 brief and well-structured: a clear purpose statement, usage context, and a concise Args/Returns section. No unnecessary words; every sentence adds value.

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?

Given the tool's moderate complexity (dependent on another tool, multiple levels, real-time vs archive), the description covers the essential steps and behavior. It mentions the return format (JSON with results per proposal) and continuous updates. Could optionally describe error handling or structure of the JSON, but the presence of an output schema (indicated by context) mitigates this need.

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?

The description's Args section adds meaning beyond the input schema by explaining that result_url is specifically from democracy_bfs_list_vote_dates and that level determines aggregation granularity. While the schema has parameter descriptions, the tool description contextualizes their use and relationship.

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 clearly states the tool retrieves real-time or archive voting results from BFS, explicitly linking it to the sibling tool democracy_bfs_list_vote_dates for the URL input. This distinguishes it from other voting-related tools like democracy_get_cantonal_results or democracy_get_party_positions.

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

Usage Guidelines4/5

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

The description explains the prerequisite of using democracy_bfs_list_vote_dates to obtain the result URL, and mentions the available levels (national, cantonal, municipal). It also notes real-time updates on voting Sunday. However, it does not explicitly state when not to use this tool or mention alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/malkreide/swiss-democracy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server