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.

Free tool (no API key, no payment). Official Spanish/EU open data.

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.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, so safety is covered; the description adds real behavioral context on top: it is free, requires no API key or payment, draws on official Spanish/EU open data, and tomorrow's data is not available before roughly 20:15. Remaining gap is the absence of output shape/units, which the annotations do not supply.

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 statement is front-loaded and well ordered, but the entire content is then repeated verbatim in Spanish, roughly doubling length without adding information an agent needs. The free/open-data line is a separate short sentence that does earn its place.

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 does the right thing by enumerating the returned metrics and the regions covered, plus data freshness. It stops short of stating units (EUR/MWh vs EUR/kWh) or the response structure, which is the one thing an agent would still have to discover by calling it.

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; the description still earns above baseline by naming all five coverage regions that map to 'sistema' and by explaining that 'horas' defines a consecutive block for appliances/EV charging, giving the parameter operational intent rather than just a type. It does not restate defaults or the 1-12 range, which the schema already handles.

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 specific verb+resource+scope: hourly PVPC regulated electricity price for Spain, today or tomorrow, with named derived outputs (average, min, max, cheapest/expensive hours, best N-hour block). Nothing in the sibling list covers electricity prices, and the definition makes the domain boundary obvious on its own.

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?

Gives concrete usage contexts — appliance scheduling and EV charging — and states the temporal window (today or tomorrow, with tomorrow published from 20:15). It does not name an alternative tool or an explicit when-not-to-use case, but no sibling would plausibly be confused with this one.

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