Skip to main content
Glama

Llueve

De dónde viene el agua de un municipio

get_town_water
Read-onlyIdempotent

ES: De dónde viene el agua del grifo de un municipio y cómo de llenos están hoy sus embalses: unidades de abastecimiento, redes, embalses de origen y los que hay aguas arriba, y el llenado conjunto ahora, hace un año y la media de 10 años, con fuente y fecha. Los municipios de Baleares y Canarias, y los que beben de acuíferos o ríos, devuelven su mezcla de fuentes y "sin datos de nivel". EN: Where a Spanish town's tap water comes from and how full those reservoirs are now: supply units, networks, source and upstream reservoirs, combined fill now, a year ago and the 10-year average. Island and groundwater towns return their supply mix and no level (null).

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": {
      "town": "<town>"
    },
    "name": "get_town_water"
  }
}

Input Schema

NameRequiredDescriptionDefault
townYesMunicipio: nombre, código INE de 5 cifras o slug ("28080-majadahonda") / town name, 5-digit INE code or slug

Output Schema

NameRequiredDescriptionDefault
urlYesPágina de Llueve para citar / the Llueve page to cite
townYes
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
sourceYesDe dónde salen las cifras / where the figures come from
supplyYes
truncatedYestrue si alguna lista se ha recortado; los totales y el nivel conjunto cuentan todo
attributionYes
combined_levelYes
source_reservoirsYesEmbalses de los que se abastece
upstream_reservoirsYesEmbalses aguas arriba de los de origen
source_reservoirs_totalYes
upstream_reservoirs_totalYes

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 read-only, idempotent, non-destructive, closed-world, so the bar is lower; the description still adds the key behavioral fact that Balearic/Canary and aquifer/river towns return a supply mix with a null level, plus data provenance (source and date). It does not discuss pagination or limits, but for a single-town lookup that is minor.

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 every claim is substantive, but the ES and EN blocks restate the same information, roughly doubling length for an agent that needs only one. Trimming to a single language, or a one-line bilingual gloss, would preserve the value at half the tokens.

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, return shapes need not be explained, and the description still covers the conceptually tricky parts: which reservoirs count (source vs upstream), the three fill timeframes, and the null-level edge case. Ready to be called correctly from the description alone.

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?

Schema coverage is 100% and the single 'town' parameter already documents all three accepted forms (name, 5-digit INE code, slug), so the schema carries the load. The description adds no syntax, format or disambiguation guidance beyond it, which matches the baseline 3 for high-coverage schemas.

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 concrete verb+resource: where a Spanish town's tap water comes from plus how full its source and upstream reservoirs are, enumerating the returned pieces (supply units, networks, fill now / a year ago / 10-year average). It is highly specific but never names a sibling (e.g. get_reservoir or search_places) to contrast scope with, so differentiation is inferred from the town-level framing rather than stated.

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 implied by the town-scoped framing (ask about a municipality's water origin and reservoir fill), but there is no explicit when-to-use/when-not or pointer to the per-reservoir sibling for single-dam lookups. The island/groundwater caveat is useful context but is behavioral, not a routing rule.

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