Skip to main content
Glama

Próceres · escritos judiciales de España: papeleta, demanda y recursos

Directorio de sedes: juzgados, tribunales y colegios de abogados, con dirección y teléfono

buscar_organo
Read-only

Busca la sede a la que hay que ir —o dirigir un escrito— con el mismo motor que la web (GET /api/directorio): los órganos judiciales de toda España (buscador oficial de la Administración de Justicia) y los colegios de abogados (Consejo General de la Abogacía), con su nombre, su tipo, su especialidad, su dirección completa, su código postal, su teléfono y su correo. Se busca por texto (municipio, nombre del órgano, especialidad, código postal) o por los filtros de clase (órgano o colegio), ccaa, provincia, municipio y tipo. Lo que devuelve es lo que publica la fuente oficial, sin inventar ni geocodificar nada: si la sede de una ficha no la publica el buscador oficial, se dice de dónde se ha tomado. NO es un mapa ni un geocodificador: da la dirección con su enlace de Google Maps para quien quiera abrirlo. Y NO pide ni devuelve datos de personas: el teléfono y el correo que salen son los institucionales de la sede. No pide ni devuelve datos personales: el nombre, el DNI, el domicilio y el contacto NO están entre sus campos (el escrito los deja como huecos entre corchetes para que los rellene quien lo presenta). No le pidas esos datos y no los escribas en la llamada.

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

Input Schema

NameRequiredDescriptionDefault
ccaaNoLa comunidad autónoma, tal como la publica el directorio («Comunidad de Madrid», «Andalucía», «Cataluña»). Es un filtro exacto.
tipoNoEl tipo de unidad o su especialidad, como la publica el directorio: «Instrucción», «Social», «Civil», «Contencioso-administrativo», «Violencia sobre la Mujer», «Sección del Tribunal de Instancia», «Colegio». Coincide por lo que contenga en cualquiera de los dos campos: «Social» trae los juzgados de lo Social aunque su tipo sea «Sección del Tribunal de Instancia».
claseNo«organo» para juzgados y tribunales, «colegio» para colegios de abogados. Sin él, todo el directorio.
textoNoTexto libre: municipio, nombre del órgano o del colegio, especialidad, código postal, provincia. Todos los términos tienen que aparecer («social Sevilla», «Getafe», «28801», «Abogacía de Madrid»).
limiteNoCuántas sedes devolver como máximo, de 1 a 200 (por defecto 25). El total de coincidencias se dice siempre.
municipioNoEl municipio o localidad de la sede («Getafe», «Vigo», «Palma»). Filtro exacto sobre la localidad.
provinciaNoLa provincia («Madrid», «Sevilla», «A Coruña»). Filtro exacto, sin acentos ni mayúsculas de por medio.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already mark it read-only, non-destructive, and closed-world, and the description adds substantial context beyond that: the official sources, the underlying GET /api/directorio engine, provenance when an address is not officially published, Google Maps links, and institutional-only phone/email. It also clearly states that personal data must not be requested or written in the call.

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 description is front-loaded with the core search purpose and stays information-dense, but it repeats the personal-data exclusion in two consecutive sentences and restates the no-geocoding point more than once. Those repetitions slightly reduce efficiency without obscuring the main message.

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 seven-parameter search tool with no output schema, the description is complete: it states the data sources, search modes, returned fields, provenance policy, and privacy constraints. The schema supplies the remaining parameter-level details, including limite and the default result count.

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 all seven parameters are documented in the schema, so the description is not required to carry parameter semantics. The description mentions the main search inputs (texto, clase, ccaa, provincia, municipio, tipo) but omits limite and does not add syntax beyond what the schema already provides.

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?

The description uses a specific verb and resource: "Busca la sede" in the official directory of judicial bodies and bar associations. It clearly states what the tool is not—a map, geocoder, or personal-data lookup—and lists the returned fields, so its purpose is unambiguous.

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?

It gives a clear use case: finding the seat to go to or to address a filing to, and explicitly excludes map/geocoder use and personal-data requests. It does not name a sibling alternative, but none of the listed sibling tools serves the same directory-search purpose.

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