Skip to main content
Glama
turkiye-secim-mcp

turkiye-secim-mcp

Compare Elections

compare_elections

Compare two Turkish elections to see changes in vote share, votes, and turnout across Turkey, provinces, districts, or ranked units, including party lineage notes.

Instructions

Compare two elections (A = earlier, B = later): change in vote share (percentage POINTS, B minus A), votes and turnout. With no province/district/level it compares Turkey as a whole (all parties). With province it compares that province; with province+district one district. With level='il' (or level='ilce', optionally with province) it returns a table of units sorted by the change in 'party' (or by turnout change if no party is given), biggest rise first (order='desc'). Party and candidate names are matched by name across elections; a documented lineage note is attached when a party did not run under its own name (e.g. HDP 2018 vs Yesil Sol Parti 2023); votes are never merged. Turkey-wide district tables need the one-time district download for both elections (prepare_data). RAW YSK API figures.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "election_a": "<election_a>",
      "election_b": "<election_b>"
    },
    "name": "compare_elections"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNo
orderNodesc
partyNo
top_nNo
districtNo
provinceNo
election_aYes
election_bYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description does substantial work: percentage-points-not-percent semantics, B-minus-A direction, cross-election name matching, an attached lineage note when a party ran under a different name (HDP vs Yesil Sol Parti), the guarantee that votes are never merged, and that figures are RAW YSK API. It does not disclose failure modes (missing election, unmatched party names), the effect of top_n truncation, or cost/latency for wide tables.

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 the core operation, then layered scope cases, sorting behavior, matching caveats, and prerequisites — a sensible priority order. Sentences are long and parenthesis-dense, so some of the caveat text is harder to parse than it needs to be.

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 an 8-parameter comparison tool with no annotations, the description covers scope resolution, sort direction, party-name matching, and data prerequisites well, and an output schema exists so return values needn't be spelled out. The gaps are top_n semantics and error behavior, which an agent would have to discover empirically.

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 0%, so the description must carry the load, and it does explain most of it: election_a/election_b as earlier/later, province and district scope, level enum values 'il'/'ilce', party for table sorting, and order='desc' as biggest rise first. Unexplained are top_n (it bounds the returned unit table but the cap is never mentioned) and the exact role of party in the aggregate mode.

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 opens with a specific verb and resource ('Compare two elections') and immediately defines the computed quantities: change in vote share in percentage POINTS (B minus A), votes and turnout. The A=earlier/B=later convention is stated explicitly, which removes the main ambiguity an agent would face when ordering arguments.

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?

It gives a clear decision ladder for scope: no province/district/level means Turkey-wide over all parties, province alone means that province, province+district means one district, and level='il'/'ilce' produces a sorted unit table. It also flags the prepare_data prerequisite for Turkey-wide district tables. It stops short of naming sibling tools (e.g. get_results, rank_districts) as alternatives for single-election lookups.

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