Skip to main content
Glama

Llueve

Estado de un embalse

get_reservoir
Read-onlyIdempotent

ES: Nivel actual de un embalse (en directo si hay lectura SAIH de menos de 6 h; si no, el boletín semanal de MITECO, y dice cuál y de cuándo), capacidad, hace un año, media de 10 años, cambio semanal, cambios en 24 y 72 h si está en directo, lluvia sobre su cuenca en 1-72 h y datos de la presa. EN: A reservoir's current level (live SAIH reading if under 6 h old, else MITECO's weekly bulletin; says which and how old), capacity, last year, 10-year average, weekly change, 24/72 h changes when live, catchment rain over 1-72 h, and dam facts.

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": {
      "reservoir": "<reservoir>"
    },
    "name": "get_reservoir"
  }
}

Input Schema

NameRequiredDescriptionDefault
reservoirYesEmbalse: nombre, id MITECO o slug ("63-buendia") / reservoir name, MITECO id or slug

Output Schema

NameRequiredDescriptionDefault
damYes
urlYesPágina de Llueve para citar / the Llueve page to cite
liveYesnull cuando el nivel viene del boletín / null when the level is the bulletin's
as_ofYesFecha del dato más reciente (UTC, ISO 8601) / timestamp of the newest figure
levelYes
notesYesAvisos: datos que faltan y por qué / caveats and gaps, in Spanish
sourceYesDe dónde salen las cifras / where the figures come from
reservoirYes
comparisonYes
attributionYes
catchment_rainYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive, so safety needs no restating. The description adds genuinely non-structured behavior: a freshness rule (live SAIH reading only if under 6 h old, otherwise MITECO's weekly bulletin) plus the promise that the response states which source was used and its age, which matters for judging data trustworthiness.

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?

Content is front-loaded on what is returned and the parenthetical provenance rule is well placed. However, the full bilingual duplication roughly doubles the length, and the long comma-chained field list makes it harder to scan than a short structured enumeration would be.

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 an output schema present, the definition need not describe return shapes, yet it still explains the data provenance and freshness rule that the schema cannot. The remaining gap is failure behavior — what happens on an unknown or ambiguous reservoir name — which the description leaves unaddressed.

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?

There is a single required parameter and the schema already documents it fully (name, MITECO id, or slug such as '63-buendia') at 100% coverage, so the baseline of 3 applies. The description itself never mentions the argument, adding no meaning 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 ('Nivel actual de un embalse' / 'A reservoir's current level') and enumerates the exact contents returned, so an agent knows precisely what it gets. It stops short of naming a sibling to contrast with, so the boundary with get_recent_rain or get_history must be inferred from content overlap.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the phrase 'current level' suggests fetching present state for one named reservoir, and the live-vs-bulletin rule implies the answer may lag. There is no explicit when-to-use or when-not-to-use statement, and no routing to get_history for past series or get_recent_rain for rain-only queries, despite the catchment-rain field overlapping that sibling.

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