Skip to main content
Glama

Llueve

Serie histórica semanal

get_history
Read-onlyIdempotent

ES: Serie semanal de agua embalsada (boletín de MITECO) de un embalse, de los embalses de un municipio o de toda España (sin target). La serie nacional empieza en 1988. Cada serie empieza en su primer boletín disponible. Si el rango da más de 160 puntos, se devuelve el último boletín de cada mes (o trimestre, o año) y resolution lo dice. summary (mínimo, máximo, primero, último) se calcula siempre sobre la serie semanal completa. EN: Weekly stored-water series (MITECO bulletin) for one reservoir, a town's reservoirs, or all of Spain (omit target). The national series starts in 1988. Each series starts at its first available bulletin. Ranges over 160 points are downsampled to the last bulletin of each month (quarter, year); resolution says so.

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

Input Schema

NameRequiredDescriptionDefault
toNoAAAA-MM-DD; por defecto el último boletín / default latest bulletin
fromNoAAAA-MM-DD; por defecto el primer boletín / default first bulletin
kindNoPara deshacer la ambigüedad cuando un embalse y un municipio se llaman igual / disambiguates a shared name
targetNoEmbalse o municipio: nombre, código (id MITECO o código INE) o slug / reservoir or town: name, code or slug

Output Schema

NameRequiredDescriptionDefault
urlYesPágina de Llueve para citar / the Llueve page to cite
as_ofYesFecha del dato más reciente (UTC, ISO 8601) / timestamp of the newest figure
notesYesAvisos: datos que faltan y por qué / caveats and gaps, in Spanish
rangeYes
pointsYes
seriesYes
sourceYesDe dónde salen las cifras / where the figures come from
targetYes
summaryYes
resolutionYes
attributionYes
weekly_pointsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already establish a read-only, idempotent, non-destructive operation, so the description's added value is the data behavior: the national series starts in 1988, each series starts at its first bulletin, and ranges over 160 points are downsampled with `resolution` reporting the granularity. It also notes that `summary` is computed over the full weekly series, not the downsampled one, which is a useful subtlety.

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 content is front-loaded and logically ordered, but the full Spanish and English versions duplicate the same sentences, halving the information density. The downsampling and summary details are valuable, but the mirrored text makes the definition longer than it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter read tool with an output schema and full annotation coverage, the description supplies everything an agent needs: default date bounds, the meaning of omitting `target`, the disambiguation parameter, and the downsampling and summary rules that affect interpretation of 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. The description goes further by clarifying that omitting `target` means all of Spain and that `kind` exists to disambiguate a shared name, which is semantic context the schema does not spell out.

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: weekly stored-water series from the MITECO bulletin, scoped to one reservoir, a town's reservoirs, or all of Spain when `target` is omitted. The scope is unambiguous, but the siblings get_reservoir and get_town_water are never named, so the agent must infer the boundary itself.

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?

Offers implied selection guidance by explaining that omitting `target` returns all of Spain and that `kind` resolves shared names. It never says when to prefer this tool over get_reservoir or get_town_water, so usage is only partially implied.

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