Skip to main content
Glama
turkiye-secim-mcp

turkiye-secim-mcp

Rank Districts

rank_districts

Rank districts by party vote share, total votes, turnout, or vote-share change versus another election within a province or across Turkey using YSK data.

Instructions

Rank districts (ilce) by a party's vote share ('pct'), votes ('votes'), turnout ('turnout', no party needed) or the change in vote share versus another election ('change_vs', needs compare_to; change = election minus compare_to, percentage points). Within one province (province given) or across Turkey (province omitted; needs the one-time district download for the election, see prepare_data). Districts are matched across elections by (province, district name); unmatched ones are counted in 'unmatched'. 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": "<election>"
    },
    "name": "rank_districts"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderNodesc
partyNo
top_nNo
metricNopct
electionYes
provinceNo
compare_toNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations exist, so the description carries the whole burden, and it does disclose non-obvious behavior: districts are matched across elections by (province, district name), unmatched districts are surfaced in an 'unmatched' field, change is computed as election minus compare_to in percentage points, and figures are RAW YSK API data. It does not state pagination or result ordering behavior beyond what the output schema presumably carries.

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 content is dense but front-loaded around the ranking modes, with parenthetical qualifiers attached directly to the terms they modify. It is one long sentence chain rather than a run-on ramble, though breaking the province/Turkey and matching rules into separate sentences would aid scanning.

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 7-parameter analytical tool with an output schema present, the description covers prerequisites, matching semantics, the unmatched counter, and the data provenance caveat, so an agent can call it correctly. The main residual gap is that 'top_n' and 'order' semantics are left entirely to the schema, which provides no parameter descriptions.

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?

With 0% schema description coverage, the description compensates well: it explains metric enum values, the dependency of party on metric, the compare_to requirement for 'change_vs', the sign convention of the change, and the meaning of an omitted province. It leaves 'order' and 'top_n' (default 10) unexplained, so coverage is strong but not complete.

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 definition opens with a specific verb and resource ("Rank districts (ilce)") and immediately enumerates the four ranking modes with their literal metric values ('pct', 'votes', 'turnout', 'change_vs'). It also frames scope (single province vs. all of Turkey), so an agent can distinguish this from result-lookup or comparison siblings without opening the schema.

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 clear conditional guidance: omit province to rank across Turkey, include it for one province; 'turnout' needs no party; 'change_vs' requires compare_to. It also flags the prerequisite (one-time district download via prepare_data) for the nationwide case. It stops short of stating when to prefer this over siblings like get_results or compare_elections, so it is not a full 5.

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