Skip to main content
Glama
29N Elections MCP

29N Elections MCP

Get 29N results of a territory

elecciones29n_get_scope_results
Read-onlyIdempotent

Fetch official 29N results for one territory from a scope ID, covering polling stations, turnout versus 2023, and votes, percentages, and seats by candidacy once counting begins.

Instructions

Use this tool to get the official 29N figures of ONE territory: polling stations constituted,
turnout updates compared with 2023 and, once counting has started, votes, percentages and
seats of every candidacy (and Senate candidates).

WHEN TO USE IT:
After 'elecciones29n_search_scopes' returned the scope_id of the territory the user asks about.

INPUT PARAMETERS (What it receives):
- params.scope_id (str, required): 24-hex scope_id from 'elecciones29n_search_scopes'.
- params.chamber ('congreso' default | 'senado'): must match the chamber used in the search.
- params.data_source ('auto' default | 'pro' | 'def'): provisional or definitive figures;
  'auto' uses the source the website marks as active.
- params.children_level (optional, number or name): also summarize every child territory of
  that level. It must be one of the scope 'child_levels'.
- params.children_limit (1-500, default 60).

WHAT IT RETURNS:
- scope: name, official territory code, level, census, polling stations, parents and child_levels.
- constitution: polling stations opened/suspended (absolute and %).
- turnout: turnout updates (time, votes, %), each with 'published' and the 2023 figure at the
  same time ('previous', with deltas). 'latest_published' is the one to report.
- count (phase 2): totals (votes, valid, blank, null, abstention, turnout), 'counted_pct',
  'seats_at_stake', 'parties' (code, acronym, name, color, votes, votes_pct, seats and the
  2023 counterpart with deltas), 'candidates' (Senado: votes and elected flag), 'previous'
  totals of 2023 and 'change_vs_previous'. 'started' is false until counting begins.
- children / children_total / children_truncated: per-child summary when 'children_level'
  was given: turnout, or count progress ('census_counted_pct' = share of the census counted,
  'polling_stations_counted_pct' = share of polling stations counted, when reported) and
  the leading party (only once the selected source has counted).
- next_step and source (cite it, including data_source and fetched_at = retrieval time).

OPERATING NOTES:
- Never report party results before phase 2 or while 'count.started' is false.
- While counting, always say which percentage has been counted and that figures are provisional.
- Report figures exactly as returned; do not round seats or invent missing values.
- During the count, constitution and turnout come from the day snapshot published under the
  Congreso (common to both chambers); the 2023 baseline is always the definitive count.

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": {
      "params": "<params>"
    },
    "name": "elecciones29n_get_scope_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
countNo
phaseYes
scopeYes
sourceYes
chamberYes
turnoutNo
childrenNo
next_stepYes
data_sourceYes
phase_labelYes
constitutionNo
children_levelNo
children_totalNo
children_truncatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare readOnly/idempotent/non-destructive but say nothing about result validity, so the description carries real weight: it forbids reporting party results before phase 2 or while 'count.started' is false, requires labelling provisional percentages during the count, and warns that constitution/turnout come from the Congreso day snapshot while the 2023 baseline is definitive.

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?

Headers (WHEN TO USE IT / INPUT PARAMETERS / WHAT IT RETURNS / OPERATING NOTES) make it scannable and the critical caveats are up front. It is nonetheless long, and the lengthy 'WHAT IT RETURNS' inventory partly duplicates the existing output schema, though entries like 'latest_published is the one to report' add non-obvious value.

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?

For a read-only, multi-phase election-results tool, the definition covers prerequisites, parameter constraints, source selection, truncation via children_truncated, citation requirements and phase gating. An agent has everything needed to call it and report its output responsibly, even without the output schema.

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

Parameters5/5

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

Although structured coverage is reported as 0%, the description documents every nested param in prose: scope_id format and provenance ('never build it yourself'), chamber must match the search, data_source 'auto' meaning the website-active source, children_level must be one of the scope's 'child_levels', and children_limit bounds/default.

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 first sentence names a specific verb and resource ('get the official 29N figures of ONE territory') and enumerates scope: polling stations constituted, turnout vs 2023, and votes/percentages/seats per candidacy. It clearly separates this from 'elecciones29n_search_scopes', the discovery step that produces the scope_id.

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?

A dedicated 'WHEN TO USE IT' block states the prerequisite explicitly: call this only after 'elecciones29n_search_scopes' returned the scope_id of the territory the user asks about. It does not state when NOT to use it (e.g. for polling-station-level detail, which other siblings likely cover), so it stops short of a 5.

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