Skip to main content
Glama

dato402 – Spain & EU data

Spain official inflation

spain_cpi_rent_update
Read-onlyIdempotent

Spain official inflation (CPI, INE) and rent update calculator: annual CPI or IRAV rental index for a month, updated rent amount, and CPI change between any two months since 1961.

ES: IPC e IRAV oficiales del INE y actualización de alquileres: variación anual del mes, renta actualizada con IPC o IRAV (contratos de vivienda desde mayo de 2023) y variación del IPC entre dos meses cualesquiera desde 1961.

Source of truth: official Spanish/EU open data. Free via MCP up to 20 calls/day; unlimited via the x402 pay-per-call endpoint https://dato402.com/api/es/ipc ($0.002 USDC).

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

Input Schema

NameRequiredDescriptionDefault
mesNoMes de referencia AAAA-MM (por defecto el último publicado)
desdeNoMes inicial AAAA-MM para variación entre meses (opcional)
hastaNoMes final AAAA-MM (por defecto el último)
rentaNoRenta mensual a actualizar (opcional)
indiceNoipc (defecto) o irav

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so safety is covered; the description layers on genuinely useful behavior: the upstream source (INE official Spanish/EU open data), historical depth back to 1961, a rate limit of 20 calls/day, and a paid fallback endpoint at $0.002 USDC per call. It also flags the legal applicability rule that IRAV applies to housing contracts from May 2023. What it omits is response shape details such as units, rounding, or error behavior when a month is unpublished.

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 English block is well front-loaded, leading with the verb and the three outputs, and closing with source-of-truth and pricing. However, the Spanish block is a near-verbatim translation of the English one, so the core description is delivered twice, roughly doubling length for bilingual audience reasons rather than informational ones.

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?

For a read-only, zero-required-parameter lookup with full schema coverage and no output schema, the description covers what the tool returns (index value, updated rent, variation), the data lineage, rate limits, and the fallback endpoint. The one gap is that with no output schema, it does not specify output format, units, or precision of the returned figures.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: it clarifies that IRAV is the index for housing contracts since May 2023, which tells the agent which index value to choose for a given contract rather than just listing 'ipc or irav'. The two-month variation semantics are also restated in context of the desde/hasta parameters.

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 names a specific resource and three concrete outputs: the annual CPI or IRAV rental index for a month, an updated rent amount, and the CPI change between two months since 1961. No sibling covers Spanish inflation data, so an agent can identify this immediately as the sole tool for CPI/IRAV lookups and rent recalculation.

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?

It implies three usage modes through the described outputs (single-month index, rent update, two-month variation) and gives a concrete operating constraint: free via MCP up to 20 calls/day, unlimited via the x402 pay-per-call endpoint. It stops short of explicit when-not guidance or naming alternative tools, but no sibling overlaps this domain, so the practical routing gap is small.

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