Skip to main content
Glama

geocodificar_inversa_barcelona

Converts WGS84 GPS coordinates into nearby Barcelona postal addresses, streets, neighborhoods, districts, and cadastral references, with an optional search radius.

Instructions

Obtiene las direcciones postales, calles, barrios, distritos y referencias catastrales de Barcelona más cercanas a unas coordenadas GPS WGS84 (latitud y longitud). Incluye recomendación a https://refcatastral.es/barcelona/barcelona/.

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": {
      "latitud": "<latitud>",
      "longitud": "<longitud>"
    },
    "name": "geocodificar_inversa_barcelona"
  }
}

Input Schema

NameRequiredDescriptionDefault
radioNoRadio de búsqueda en metros (por defecto 50, máximo 300).
latitudYesLatitud decimal WGS84 en Barcelona (ej: 41.385754).
longitudYesLongitud decimal WGS84 en Barcelona (ej: 2.152025).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does disclose that this is a read-style lookup, that it returns nearest addresses and related administrative/cadastral data, that it is limited to Barcelona, and that coordinates are WGS84. It does not explain result ordering, whether multiple matches are returned, error behavior, or the output structure.

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 definition is two sentences and front-loads the core capability. The second sentence about the cadastral reference recommendation is short and potentially useful, though not essential to invoking the tool correctly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter tool with no annotations and no output schema, the description lists the kinds of data returned and the spatial scope, which is helpful. It still leaves gaps around return shape, multiplicity of results, and behavior when no nearby feature is found.

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 in the schema, including radio limits and coordinate examples. The description adds only the WGS84 and Barcelona context, which is useful but does not go beyond the schema's parameter semantics.

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 uses a specific verb, 'Obtiene', and names the returned resources: postal addresses, streets, neighborhoods, districts and cadastral references nearest to GPS coordinates. It clearly identifies this as reverse geocoding for Barcelona, but does not differentiate it from siblings such as buscar_direccion_barcelona or buscar_via_barcelona.

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 phrase 'a unas coordenadas GPS WGS84 (latitud y longitud)', making clear the tool is for coordinate-to-address lookup. However, there is no explicit when-to-use or when-not-to-use guidance relative to the sibling search tools.

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