Skip to main content
Glama

Buscar provincias, departamentos o municipios

buscar_division
Read-onlyIdempotent

Busca divisiones administrativas oficiales por nombre aproximado: provincias (24), departamentos/partidos/comunas o municipios. Devuelve id INDEC, nombre oficial, provincia a la que pertenece y centroide. Usala para resolver 'Bs As' → 'Buenos Aires' (id 06) vs 'CABA' (id 02), listar los partidos de una provincia, o conseguir el id que piden otros sistemas. Para saber en qué división cae un punto (lat/lon) usá ubicacion. Costo: gratis.

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": {
      "tipo": "<tipo>"
    },
    "name": "buscar_division"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNo
tipoYes
nombreNoNombre aproximado; omitilo para listar (ej. todas las provincias)
provinciaNoRestringir a una provincia (para departamentos y municipios)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description still adds real value beyond them: the returned fields (which matters since there is no output schema), the fact that it costs nothing, and the approximate-name matching behavior. It stops short of describing ordering or what happens when nothing matches.

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

Conciseness5/5

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

Three dense sentences, front-loaded with purpose, then disambiguation examples, then the sibling redirect and cost. No filler and no repetition of the title.

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 takes on the burden of describing returns and does so explicitly, which is the key gap it needed to close. Remaining holes are minor: result ordering and how `max` interacts with listing are left unstated for a four-parameter lookup tool.

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 50%, and the description compensates for the weaker half: it clarifies that `nombre` is approximate and optional for listing, and that `provincia` scopes results to departamentos/municipios. However, the `max` parameter (1-100, default 10) is never addressed in the description, so truncation behavior stays undocumented outside the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Uses a specific verb ('Busca') plus the resource ('divisiones administrativas oficiales') and enumerates exactly which levels it covers: provincias (24), departamentos/partidos/comunas, municipios. It also states the return payload (id INDEC, nombre oficial, provincia, centroide), so an agent knows both what it queries and what it gets back.

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

Usage Guidelines5/5

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

Gives concrete triggering scenarios ('Bs As' → Buenos Aires id 06 vs CABA id 02, listar los partidos de una provincia, conseguir el id que piden otros sistemas) and explicitly routes the point-in-polygon case to the sibling `ubicacion`. That is a when-to-use plus a when-to-use-the-alternative, stated rather than 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