Skip to main content
Glama
29N Elections MCP

29N Elections MCP

List 29N candidacies

elecciones29n_list_parties
Read-onlyIdempotent

List the parties and coalitions running in the 29N elections for Congreso or Senado, and resolve names or acronyms to the official codes and colors used in results.

Instructions

Use this tool to list the candidacies (parties and coalitions) of the 29N call with their
official name, acronym and color, or to resolve how a party appears in the results.

WHEN TO USE IT:
When the user asks which parties run, or uses a name/acronym you need to match with the
'code' or 'acronym' of the results.

INPUT PARAMETERS (What it receives):
- params.chamber ('congreso' default | 'senado'): candidacies differ between chambers.
- params.query (optional str): words matched against name and acronym, ignoring accents and
  case (e.g. 'psoe', 'sumar', 'compromis').

WHAT IT RETURNS:
- parties: code, acronym, name, color and group (agrupación) of each candidacy.
- total, call ('11-26'), next_step and source.

OPERATING NOTES:
- Candidacies that run under different names in some territories share the same 'group'.
- This catalog does not contain 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_list_parties"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
callYes
queryNo
totalYes
sourceYes
chamberYes
partiesYes
next_stepYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuine context beyond that: candidacies differ between chambers, candidacies running under different names in some territories share the same 'group', and this catalog deliberately excludes votes. Minor overlap with the output schema in the 'WHAT IT RETURNS' block keeps it from a 5.

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 definition is organized into labeled blocks (purpose, when to use, inputs, returns, operating notes) with the core purpose front-loaded in the first sentence. It is longer than strictly necessary because 'WHAT IT RETURNS' restates an output schema that already exists, but no block is filler.

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 single-filter read-only catalog tool, everything an agent needs is present: purpose, selection criteria, both input semantics with defaults, the shape of the response, the cross-territory 'group' caveat, and routing to the sibling for vote data. The presence of an output schema makes the returns block redundant rather than missing, so completeness is not impaired.

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?

Although measured schema description coverage is 0% at the top level (the only top-level param is the nested 'params' object), the description explains both effective inputs: chamber with its 'congreso' default and the note that candidacies differ between chambers, and query as an optional accent- and case-insensitive match against name and acronym with concrete examples. It largely mirrors the inner schema text, so it adds little novel syntax, but it does compensate for the coverage gap.

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 uses a specific verb and resource — listing the candidacies (parties and coalitions) of the 29N call — and states the payload fields (official name, acronym, color), plus a second purpose: resolving how a party appears in results. It also distinguishes itself from the sibling that returns votes, so an agent can tell it apart from elecciones29n_get_scope_results without opening either 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?

There is an explicit 'WHEN TO USE IT' block covering both the user-asks-which-parties case and the name/acronym-to-code resolution case. The exclusion is equally explicit: 'This catalog does not contain votes: use elecciones29n_get_scope_results for results,' which names the alternative and the condition that selects it.

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