Skip to main content
Glama
29N Elections MCP

29N Elections MCP

List 29N polling stations of a polling place

elecciones29n_get_polling_stations
Read-onlyIdempotent

Lists the polling stations (mesas) of one polling place with their codes, labels and counted status, helping you find the code needed to retrieve a tally sheet.

Instructions

Use this tool to list the polling stations (mesas) of ONE polling place (local electoral):
their codes, the short label the official website shows and whether each one has been
counted. The codes are the input of 'elecciones29n_get_tally_sheet'.

WHEN TO USE IT:
When the user asks about a specific polling place or polling station, or wants the tally
sheet (acta) of a polling station.

INPUT PARAMETERS (What it receives):
- params.scope_id (str, required): scope_id of a polling place (level 110), found with
  'elecciones29n_search_scopes' and level=110 (or 'local').
- params.chamber ('congreso' default | 'senado').
- params.data_source ('auto' default | 'pro' | 'def'): source of the 'scrutinized' flags.

WHAT IT RETURNS:
- local and parents: the polling place and its enclosing territories.
- polling_stations: code (e.g. '2807903650A'), label ('03-650-A': district-section-letter),
  name, scope_id, municipality_code, district, section, letter and 'scrutinized'.
- total, scrutinized_count, tally_sheets_available, next_step and source.

OPERATING NOTES:
- The website publishes this list late (often only after the count); until then the tool
  says it is not published yet. This endpoint is inferred from the website code and has
  not been validated live yet.
- It contains no votes: use 'elecciones29n_get_scope_results' for results.

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_polling_stations"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
localYes
totalYes
sourceYes
chamberYes
parentsNo
next_stepYes
data_sourceYes
polling_stationsNo
scrutinized_countYesPolling stations already counted by the selected source.
tally_sheets_availableNoWhether the website publishes tally sheets (scrutinyRecordsAvailable).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), and the description adds non-obvious operational behavior: the list is published late, the tool may report 'not published yet', and the endpoint is inferred from website code and not validated live. It also flags the absence of votes, which prevents a plausible misuse.

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 purpose followed by clearly headed blocks for usage, inputs, returns and caveats, so an agent can stop early. The WHAT IT RETURNS section is the least economical part, enumerating fields already covered by the output schema.

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?

Covers everything needed for a correct call: how to obtain the required id, defaults, the availability caveat about late publication, the unvalidated-endpoint warning, and an explicit pointer to the results tool. The output schema means return values need not be described in depth, so nothing material is missing.

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?

All three parameters are explained with types, defaults and meaning, including the enums for chamber and data_source and where scope_id comes from (level 110 / 'local' via search_scopes). Most of this duplicates the nested schema's own field descriptions, so the added meaning beyond structured data is modest but the operational pointer to search_scopes is genuinely useful.

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?

States a specific verb and resource ('list the polling stations (mesas) of ONE polling place') with an explicit scope limit. It also names the sibling it feeds ('the codes are the input of elecciones29n_get_tally_sheet') and explicitly distinguishes itself from the results tool, so an agent can pick it without opening a schema.

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

Usage Guidelines5/5

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

A dedicated WHEN TO USE IT block gives the triggering user intents (asking about a specific polling place/station, or wanting an acta). It also routes elsewhere for adjacent needs: 'elecciones29n_get_scope_results' for votes and 'elecciones29n_search_scopes' for obtaining the scope_id.

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