Skip to main content
Glama

¿Cómo va España?

Serie y último dato de un indicador

consultar_indicador
Read-onlyIdempotent

Da un indicador para el conjunto de España: su último dato, cuánto ha cambiado en un año, si es un récord (contexto_historico: «el más bajo en un tercer trimestre desde 2007», «máximo de toda la serie», solo con datos comparables y sin causas), el máximo y el mínimo de la serie, la serie histórica (con la media de la UE al lado cuando existe), la fuente oficial con el código exacto de la serie de origen (serie del INE, conjunto y filtros de Eurostat, serie del Banco de España o del BCE) para comprobarlo, si el dato es provisional, avance o definitivo cuando la fuente lo marca, cómo está medida la serie (ajuste estacional, precios, base), si la parte un cambio de definición, las cifras ya publicadas que la fuente ha revisado, el enlace a su página y una frase lista para citar. Si la fuente sale con mucho retraso y el organismo ya da cifras más recientes en otra estadística, datos_mas_recientes las trae con su periodo (el salario medio anual de 2024 remite al salario de la EPA de 2025 y al coste salarial del último trimestre). La dirección de la imagen de la gráfica va siempre en grafica.imagen; la imagen en sí (un PNG de unos 30 KB) solo se adjunta con imagen: true. En los programas que admiten MCP Apps la gráfica se dibuja igualmente dentro del chat. Úsalo para «¿cuál es la tasa de paro?», «¿cómo ha evolucionado la deuda desde 2008?» o «¿cuánto ha subido el alquiler?» o «¿cuál es el salario medio?».

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": {
      "indicador": "<indicador>"
    },
    "name": "consultar_indicador"
  }
}

Input Schema

NameRequiredDescriptionDefault
desdeNoPrimer periodo de la serie: un año (2008), un trimestre (2008-T1), un mes (2008-01) o un día (2008-01-15).
hastaNoÚltimo periodo de la serie, con el mismo formato que `desde`.
imagenNo`true` para adjuntar la imagen PNG de la gráfica (unos 30 KB) dentro de la respuesta. Por defecto no va: la respuesta queda en unos 13 KB y la dirección de la imagen sigue en `grafica.imagen`.
indicadorYesIdentificador del indicador (por ejemplo «tasa-paro»), tal como lo devuelve `buscar_indicadores`. También vale su nombre.
max_puntosNoCuántos puntos de la serie como mucho (60 por defecto). Sin fechas se dan los más recientes; con fechas, repartidos por el rango.
publicado_elNoUn día (AAAA-MM-DD) para ver la serie tal como estaba publicada ese día, antes de las revisiones posteriores de la fuente. Sirve para comprobar una cita antigua.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • 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. Changed1 schema field changed
    • addedInput schema / properties / imagen
      Added value: +{
      +  "description": "`true` para adjuntar la imagen PNG de la gráfica (unos 30 KB) dentro de la respuesta. Por defecto no va: la respuesta queda en unos 13 KB y la dirección de la imagen sigue en `grafica.imagen`.",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / publicado_el
      Added value: +{
      +  "description": "Un día (AAAA-MM-DD) para ver la serie tal como estaba publicada ese día, antes de las revisiones posteriores de la fuente. Sirve para comprobar una cita antigua.",
      +  "maxLength": 10,
      +  "minLength": 1,
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description goes well past them: it explains that `contexto_historico` only fires with comparable data and never with causes, that `datos_mas_recientes` redirects to fresher statistics when the source lags, that a definitional break is signalled, that revised published figures are included, and that the chart image (~30 KB) is only attached with `imagen: true` while `grafica.imagen` always carries the URL and MCP Apps render it anyway. This is substantive behavioral context an agent would otherwise have to discover by trial.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The main body is a single run-on sentence with deeply nested parentheticals and examples, which makes it slow to parse despite being front-loaded with the core purpose. Every piece of information is arguably useful, but the packaging (one giant block) costs readability; splitting the return payload from the behavioral caveats would help.

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 no output schema, the description carries the burden of describing the response and does so thoroughly, including the fallback-to-newer-data behavior and the image toggle. Gaps are minor: nothing about what happens with an unknown `indicador`, and period-format edge cases live only in the schema.

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 the parameters are already documented. The description only restates what the schema says about `imagen` (PNG, ~30 KB, default off) and leaves `desde`/`hasta`/`max_puntos`/`publicado_el` entirely to the schema. Baseline 3 is the correct ceiling here.

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 concrete verb+resource+scope: returns one indicator's latest value, year-over-year change, series max/min and full historical series, explicitly 'para el conjunto de España'. The enumeration of what comes back (fuente oficial, ajuste estacional, revisiones, enlace, frase para citar) makes clear this is a single-indicator lookup, not a search or an aggregate overview.

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 final sentence gives concrete when-to-use examples — «¿cuál es la tasa de paro?», «¿cómo ha evolucionado la deuda desde 2008?», «¿cuánto ha subido el alquiler?» — which clearly anchors it to single-indicator factual/evolution questions. What is missing is an explicit exclusion or hand-off (e.g. 'para descubrir el identificador usa buscar_indicadores'), which only appears in the schema for the `indicador` parameter.

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