Skip to main content
Glama
malkreide

swiss-democracy-mcp

by malkreide

democracy_search_votes

Read-onlyIdempotent

Search Swiss federal popular votes since 1848. Filter by keyword, time period, legal form, result, and policy domain to retrieve vote details including title, date, yes percentage, and turnout.

Instructions

Durchsucht alle eidgenössischen Volksabstimmungen seit 1848 (Swissvotes-Datenbank).

Filtert nach Stichwort, Zeitraum, Rechtsform, Ergebnis und Politikbereich. Gibt Titel, Datum, Rechtsform, Ja-Anteil, Beteiligung und Bundesratsempfehlung zurück.

Args: params (VoteSearchInput): Suchparameter mit optionalen Feldern: - keyword (str): Freitextsuche im Titel (DE/EN) - year_from/year_to (int): Zeitraumfilter - legal_form (str): 'initiative', 'obligatorisch', 'fakultativ' - result (str): 'angenommen' oder 'abgelehnt' - policy_domain (str): Politikbereich-Stichwort - limit (int): Max. Resultate (Standard: 20) - offset (int): Pagination-Offset

Returns: str: JSON mit 'total', 'count', 'offset', 'has_more', 'votes' (Liste von Vote-Objekten mit vote_number, date, title_de, legal_form, accepted, yes_percent, turnout_percent, federal_council_position)

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 (readOnlyHint, idempotentHint) align with the description's search-and-return behavior. The description adds value by detailing the exact output fields (JSON with votes, pagination metadata) and input constraints, going beyond what annotations provide.

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?

The description is well-structured with a clear first sentence, then filters list, then Args and Returns sections. It is not overly concise but each section serves a purpose, and the key information is front-loaded.

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?

Given the presence of an output schema and detailed input schema, the description still adds value by summarizing the return format and listing all filterable fields. It covers search, filtering, pagination, and output, making it complete for a search tool without omissions.

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?

The description includes an Args section that summarizes each parameter, but the input schema already provides detailed descriptions for each parameter with types and examples. The description's parameter info is redundant yet clear; it doesn't add significant new meaning beyond the schema.

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 specifies the action (search) and the resource (all Swiss federal votes since 1848 via Swissvotes database). It distinguishes from sibling tools that focus on specific vote details or BFS data, making the purpose unambiguous.

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 lists available filters (keyword, date range, legal form, result, policy domain) and mentions pagination parameters, providing clear context for when to use. However, it does not explicitly state when not to use or name alternatives, though siblings like democracy_get_vote_detail imply different use cases.

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