Skip to main content
Glama

¿Cómo va España?

Últimos datos publicados

ultimos_datos
Read-onlyIdempotent

Qué datos oficiales se han publicado en los últimos días y cómo han quedado los indicadores afectados. Con territorio, los datos nuevos de ese municipio, provincia o comunidad (paro registrado, población, renta, alquiler, criminalidad...), cada uno con la cifra de ese lugar, su periodo y cuándo llegó: lo mismo que avisa el botón «Avísame de este lugar» de su ficha. Úsalo para «¿qué datos han salido esta semana?», «¿cuál es el último dato de inflación publicado?» o «¿qué datos nuevos hay de Palencia?».

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": "ultimos_datos"
  }
}

Input Schema

NameRequiredDescriptionDefault
diasNoCuántos días hacia atrás (7 por defecto).
tipoNoCon `territorio`, para elegir cuando el nombre vale para varios (Palencia es municipio y provincia). Sin él, el más pequeño.
limiteNoCuántas publicaciones (o datos del lugar) como mucho (15 por defecto).
territorioNoSolo los datos nuevos de un lugar: nombre del municipio, la provincia o la comunidad autónoma («Palencia», «Getafe», «Castilla y León»), o el código INE de cinco cifras de un municipio.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / limite / description
      Previous value: -"Cuántas publicaciones como mucho (15 por defecto)."New value: +"Cuántas publicaciones (o datos del lugar) como mucho (15 por defecto)."
    • addedInput schema / properties / territorio
      Added value: +{
      +  "description": "Solo los datos nuevos de un lugar: nombre del municipio, la provincia o la comunidad autónoma («Palencia», «Getafe», «Castilla y León»), o el código INE de cinco cifras de un municipio.",
      +  "maxLength": 120,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / tipo
      Added value: +{
      +  "description": "Con `territorio`, para elegir cuando el nombre vale para varios (Palencia es municipio y provincia). Sin él, el más pequeño.",
      +  "enum": [
      +    "municipio",
      +    "provincia",
      +    "comunidad"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  3. 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, non-destructive and openWorldHint=false, so the safety profile is covered. The description adds that each returned item carries the figure, its period and its arrival date, which is genuine behavioural context, but it never addresses result volume, ordering, or what «cómo han quedado los indicadores afectados» actually means.

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, then scope, then example questions — a sensible funnel. Slightly dense in the middle sentence, and the «Avísame de este lugar» analogy is a nice touch but consumes space without adding machine-actionable detail.

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 must describe returns, and it does: per-place figures with period and arrival timestamp. Given four optional, fully documented parameters and read-only annotations, the remaining gap (pagination/ordering semantics of `limite`) is minor.

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 coverage is 100%, with defaults, bounds and enum documented inline, so the schema does the heavy lifting. The description reinforces what `territorio` scopes (new data for one place) and the notify-button analogy clarifies its meaning, but `dias` and `limite` get no added interpretation beyond the schema.

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 verb and resource — official data published in the last few days, plus how affected indicators ended up — and the territorial variant is spelled out with concrete data domains (paro, población, renta, alquiler, criminalidad). It is clearly distinguishable from siblings like proximas_publicaciones or consultar_indicador by being retrospective and publication-oriented, though it never names an alternative explicitly.

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?

Three example user questions («¿qué datos han salido esta semana?», «¿cuál es el último dato de inflación publicado?», «¿qué datos nuevos hay de Palencia?») make the intended call situations concrete. What's missing is any negative guidance: nothing says when to prefer consultar_indicador, buscar_indicadores or proximas_publicaciones instead.

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