Skip to main content
Glama

Geocodificación inversa: lat/lon → provincia, departamento y municipio

ubicacion
Read-onlyIdempotent

Dado un punto (latitud, longitud) devuelve en qué provincia, departamento/partido y municipio de Argentina cae, con ids oficiales INDEC. Si el punto está fuera del país, en_argentina es false y los campos vienen null. No devuelve calle ni altura. Para pasar una dirección escrita a coordenadas usá normalizar_direccion. 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": {
      "lat": "<lat>",
      "lon": "<lon>"
    },
    "name": "ubicacion"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitud en grados decimales (Argentina: aprox. -22 a -55)
lonYesLongitud en grados decimales (Argentina: aprox. -53 a -74)

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.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the out-of-country edge case (en_argentina=false with null fields), enumerates the returned entity levels and INDEC ids, and notes the call is free. Annotations only cover read-only/idempotent safety, so this description carries the behavioral detail an agent needs.

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?

Four short sentences, front-loaded with the core input→output mapping, followed by the edge case, the exclusion, the alternative tool and cost. No filler.

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 two-parameter, side-effect-free lookup with no output schema, the description covers input meaning, returned fields, the out-of-country case, and the forward-geocoding alternative. Nothing an agent needs to invoke it correctly is missing.

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 both parameters already document decimal degrees with min/max and typical Argentine ranges. The description only restates that the input is a (latitud, longitud) point, adding no format or precision guidance beyond 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?

States a specific verb and resource: from a lat/lon point it returns the Argentine province, departamento/partido and municipality with INDEC ids. It also names what it does NOT return (street and number), which cleanly separates it from address-oriented siblings.

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

Usage Guidelines4/5

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

Explicitly routes the reverse case to normalizar_direccion (written address → coordinates) and bounds the scope with 'no devuelve calle ni altura'. It gives clear context for use but stops short of stating when a different sibling (e.g. a name-based division lookup) would be preferred.

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