Skip to main content
Glama
mcp-pymes-es

mcp-pymes-es

by sjmillon

datos_municipio

Read-onlyIdempotent

Retrieve official INE population data for a Spanish municipality: total residents, men, women and year-by-year evolution, looked up by name, province or 5-digit INE code.

Instructions

Población oficial de un municipio (INE, Padrón a 1 de enero): total, hombres, mujeres y evolución.

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

Input Schema

NameRequiredDescriptionDefault
municipioNoNombre del municipio, p. ej. 'Cobeña', 'Alcalá de Henares'.
provinciaNoProvincia (recomendado; acelera la búsqueda), p. ej. 'Madrid'.
codigo_ineNoCódigo INE de 5 dígitos, p. ej. '28046'. Alternativa al nombre.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and open-world, so the safety profile is covered. The description does add genuine context beyond them: the official source and the data vintage (Padrón a 1 January), which matters for interpreting results. It says nothing about behavior when a municipality name is ambiguous or not found, which is a real concern for a name-based lookup.

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?

A single dense sentence with the resource and source front-loaded and no filler. It is arguably too compressed for a lookup tool that accepts three alternative identifiers, but nothing in it is wasted.

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, full annotation coverage and 100% parameter documentation, the description only needs to frame the data source and scope, which it does. The remaining gap is resolution behavior for ambiguous or missing municipality names.

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 all three parameters are already documented with examples. The description adds no parameter-level meaning, such as precedence between municipio and codigo_ine, so the baseline 3 applies.

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 resource (official population of a municipality), its source (INE, Padrón a 1 January) and the breakdown returned (total, men, women, evolution). This is clearly distinguishable from the sibling tools (BOE/ayudas/verifactu), although no sibling is named explicitly.

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 description — look up population data for a municipality — but there is no explicit when-to-use or when-not statement, nor any guidance on choosing between the name, province and INE-code lookup paths. The low ambiguity with unrelated siblings keeps it at minimum viable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.