Skip to main content
Glama

dato402 – Spain & EU data

Spain hourly electricity price

spain_electricity_price
Read-onlyIdempotent

Spain hourly electricity price (PVPC regulated tariff) for today or tomorrow: average, min, max, cheapest and most expensive hours and best block of N consecutive hours for appliances or EV charging.

ES: Precio de la luz PVPC hora a hora de hoy o mañana (desde las 20:15) en España: media, mínimo, máximo, horas más baratas y caras y el mejor bloque de N horas seguidas para poner electrodomésticos o cargar el coche. Península, Canarias, Baleares, Ceuta y Melilla.

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/luz ($0.001 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_electricity_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
fechaNohoy (defecto), manana o AAAA-MM-DD
horasNoHoras seguidas del mejor bloque (1-12, defecto 3)
sistemaNopeninsula (defecto), canarias, baleares, ceuta o melilla

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (readOnly/idempotent/openWorld), the description discloses a quota (free up to 20 calls/day), a paid fallback endpoint with a stated price, the data provenance ('official Spanish/EU open data'), a data-availability window of 20:15, and the covered territories. This is exactly the operational context annotations cannot carry.

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 sentence front-loads the purpose well, but the description is then repeated almost verbatim in Spanish, roughly doubling the token cost without adding new information for the calling agent. The pricing/marketing sentence is useful but sits alongside some redundancy.

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 3-parameter, zero-required, no-output-schema tool, the description covers return contents, region coverage, availability timing, and quota. The one notable omission is the unit/currency of the returned prices (e.g. EUR/MWh), which the agent would need to interpret results.

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: it explains that 'horas' defines the best run of N consecutive cheap hours for appliances/EV charging, and that 'fecha' is bounded by the 20:15 publication of tomorrow's prices. It also implicitly maps 'sistema' to the listed regions, though it does not spell out the token values themselves.

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 market ('Spain hourly electricity price (PVPC regulated tariff)') and enumerates exactly what it returns: average, min, max, cheapest and most expensive hours, and the best N-hour block. No sibling covers electricity prices, so the domain alone distinguishes it from the rest of the catalog.

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 gives clear usage context — planning appliances or EV charging around the cheapest consecutive hours — and an implicit temporal constraint: tomorrow's data is only available 'desde las 20:15'. It does not state any when-not conditions, though the tool has no overlapping sibling that would require them.

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