Skip to main content
Glama

dato402 - Spain & EU data

Spanish municipality data

spain_municipality_population
Read-onlyIdempotent

Spanish municipality data: official INE population register (total, men, women), province, INE code and population rank within its province. Search by name, INE code or coordinates.

ES: Datos de un municipio español: población oficial del padrón del INE (total, hombres y mujeres), provincia, código INE y puesto por población dentro de su provincia. Búsqueda por nombre, código INE o coordenadas.

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_municipality_population"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitud (opcional)
lonNoLongitud (opcional)
codigoNoCódigo INE de 5 cifras (opcional)
nombreNoNombre del municipio, p. ej. Mérida
provinciaNoProvincia o código de 2 cifras (opcional, para desambiguar)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is handled. The description adds genuinely useful context beyond that: it is free with no API key, and the data is official INE/open-data sourced, which speaks to reliability. It does not say how a zero-match lookup or a zero-parameter call behaves, which matters for a tool where every parameter is optional.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The English block is front-loaded with the returned fields, then the search modes, then the licensing/cost note, in a sensible order. The full Spanish restatement doubles the length, which is defensible for a Spanish-data tool but means every claim appears twice.

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 usefully enumerates the return fields (total/men/women population, province, INE code, provincial rank), which is exactly the compensation needed. For a simple read-only lookup the definition is close to complete; only the empty-result and all-optional-parameter behavior is left unstated.

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 description coverage is 100%, so baseline is 3. The description restates the three search modes (name, INE code, coordinates) and confirms the data is official INE register data, but adds no format or precedence rules beyond the schema, such as what takes priority when both nombre and codigo are supplied.

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?

The description names a specific resource (Spanish municipality) and enumerates the returned fields: official INE population register totals broken down by sex, province, INE code, and population rank within the province. It also names the lookup keys (name, INE code, coordinates). It does not explicitly contrast itself with adjacent lookup tools such as spain_postal_code or spain_geocode_address, so it stops short of full sibling differentiation.

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 'Search by name, INE code or coordinates', which tells the agent what inputs are accepted, and the schema adds that provincia disambiguates. There is no explicit statement of when to prefer this tool over the geocoding or postal-code siblings, and no note on what happens if no key is supplied despite all params being optional.

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