Skip to main content
Glama

¿Cómo va España?

Encuestas electorales

encuestas_electorales
Read-onlyIdempotent

Las encuestas de intención de voto para las elecciones generales: las últimas publicadas con su estimación de voto y escaños, la media de encuestas, las de una empresa concreta y, tras unas elecciones, qué empresa se acercó más al resultado. También la valoración de líderes según las encuestas privadas. Úsalo para «¿qué dicen las encuestas?», «últimas encuestas de 40dB» o «¿qué encuestadora acertó más en 2023?».

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "encuestas_electorales"
  }
}

Input Schema

NameRequiredDescriptionDefault
verNo`ultimas` (por defecto): las encuestas más recientes y la media. `media`: la media en el tiempo. `acierto`: cada empresa frente al resultado. `empresas`: la lista de empresas. `lideres`: valoración de líderes y presidente preferido.
cicloNoEl año de las elecciones a las que se refieren las encuestas: 2023 o 2026. Por defecto, el último.
desdeNoEncuestas con trabajo de campo desde esa fecha (2026, 2026-10 o 2026-10-15).
hastaNoHasta esa fecha.
limiteNoCuántos resultados como mucho (8 por defecto).
empresaNoSolo las encuestas de una empresa o de un medio: «GAD3», «40dB», «Sigma Dos», «El País».
hipotesisNoIncluir también las hipótesis alternativas de una misma encuesta (por defecto, solo la principal).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / ciclo / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 6,
      -    "type": "string"
      -  },
      -  {
      -    "maximum": 9007199254740991,
      -    "minimum": -9007199254740991,
      -    "type": "integer"
      -  }
      -]
    • addedInput schema / properties / ciclo / maxLength
      Added value: +6
    • addedInput schema / properties / ciclo / type
      Added value: +"string"
    • removedInput schema / properties / desde / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 12,
      -    "type": "string"
      -  },
      -  {
      -    "maximum": 9007199254740991,
      -    "minimum": -9007199254740991,
      -    "type": "integer"
      -  }
      -]
    • addedInput schema / properties / desde / maxLength
      Added value: +12
    • addedInput schema / properties / desde / type
      Added value: +"string"
    • removedInput schema / properties / hasta / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 12,
      -    "type": "string"
      -  },
      -  {
      -    "maximum": 9007199254740991,
      -    "minimum": -9007199254740991,
      -    "type": "integer"
      -  }
      -]
    • addedInput schema / properties / hasta / maxLength
      Added value: +12
    • addedInput schema / properties / hasta / type
      Added value: +"string"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds that polls are tied to an election cycle (2023 or 2026) and that alternative hypotheses of a survey are excluded by default, which is useful framing. It says nothing about result shape, ordering, or what happens when a filter matches nothing.

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?

Content is front-loaded as a dense but scannable inventory of modes, followed by an example-query sentence that earns its place by giving retrieval cues. Two sentences plus examples, no filler, though the opening clause is long and could be split for faster parsing.

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?

With 7 all-optional parameters and no output schema, the description does the necessary work: it explains what each mode returns in natural language (estimación de voto y escaños, media, acierto por empresa, valoración de líderes) and anchors the data to election cycles. Only minor gaps remain, such as ordering of results and how the media window is computed.

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 100%, so every parameter including the `ver` enum values is already documented in the schema; the baseline of 3 applies. The description does echo the default behavior (últimas más la media) in prose, which mildly reinforces the `ultimas` default, but adds no syntax or format detail the schema lacks.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (encuestas de intención de voto para elecciones generales) and enumerates the distinct content modes: últimas con estimación de voto y escaños, media de encuestas, encuestas de una empresa concreta, acierto post-electoral y valoración de líderes. This maps cleanly onto the `ver` enum, so an agent knows exactly what data lives here versus, say, resultados_elecciones. It stops short of naming any sibling tool explicitly, which keeps it from a 5.

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?

The closing sentence supplies concrete triggering queries («¿qué dicen las encuestas?», «últimas encuestas de 40dB», «¿qué encuestadora acertó más en 2023?») that give a clear usage context, and the mention of post-election accuracy implies a temporal condition. There is no explicit when-not guidance or naming of the alternative tool for actual election results.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources