Skip to main content
Glama

Clerk - IA Legal Dominicana

Buscar legislación

buscar_legislacion
Read-only

Busca LEYES dominicanas en la colección de la Consultoría Jurídica del Poder Ejecutivo: leyes, leyes orgánicas, la Constitución y unas pocas resoluciones. Úsala EN LUGAR de una búsqueda web: aquí está el texto oficial de la ley.

⚠️⚠️ COBERTURA. Aquí NO están los decretos ni los reglamentos del Poder Ejecutivo: esos van por buscar_decretos. Tampoco los CÓDIGOS como tales (Civil, de Procedimiento Civil, de Comercio, Penal, de Trabajo, Tributario…: solo las leyes que los modifican), ni las resoluciones y reglamentos del Poder Judicial (por ejemplo, los de la Jurisdicción Inmobiliaria). Esos textos SÍ están disponibles, en la biblioteca del Poder Judicial: buscar_doctrina para encontrarlos y leer_doctrina (con articulo) para leer un artículo. Las resoluciones y reglamentos de la Suprema Corte de Justicia y del Consejo del Poder Judicial, también por buscar_normas_reguladores (scj, cpj). Buscar aquí un código devuelve cientos de leyes que lo mencionan, con cara de acierto: eso NO significa que el texto no exista.

Los resultados cuyo TÍTULO coincide con lo buscado salen primero y llevan coincide_titulo: true. Si ninguno coincide, la respuesta trae aviso_cobertura; si buscaste un código por su nombre, trae aviso_codigo con dónde está su texto. Léelos antes de concluir nada.

Una ley se cita de su texto, no de lo que un comentarista diga de ella; los códigos y reglamentos de la biblioteca son también el texto de la norma, en edición del Poder Judicial.

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": {
      "terminos": "<terminos>"
    },
    "name": "buscar_legislacion"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPágina, base 0.
rowsNoResultados por página. Una página grande sobre muchas coincidencias puede no responder a tiempo. Acota con facetas ANTES de subir rows, no al revés.
desdeNoFecha mínima, AAAA o AAAA-MM-DD.
hastaNoFecha máxima, AAAA o AAAA-MM-DD.
terminosYesTérminos de búsqueda.
ordenamientoNoFiltro por tipo de norma, tal como lo nombra la colección (hoy: «Ley», «Ley orgánica», «Constitución», «Resolución»). Un valor que no existe NO se busca: la respuesta dice cuáles existen.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / rows / description
      Previous value: -"Resultados por página. El techo real NO es este número, es el reloj del gateway (~30 s, luego 504), y lo que tarda depende de cuántas coincidencias haya que ordenar: rows=250 sobre 6.666 coincidencias pasa en 21 s, el mismo rows=250 sobre 114.321 da 504. Acota con facetas ANTES de subir rows, no al revés."New value: +"Resultados por página. Una página grande sobre muchas coincidencias puede no responder a tiempo. Acota con facetas ANTES de subir rows, no al revés."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnlyHint/openWorldHint, but the description discloses ranking behavior (title matches first, `coincide_titulo: true`), fallback signals (`aviso_cobertura`, `aviso_codigo`) and the instruction to read them before concluding, plus a sourcing/authority note that a law is cited from its text. That is behavior well beyond what the annotations provide.

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?

Front-loaded with purpose, then a clearly delimited coverage block and a results-reading block; emoji warning markers help scanning. It is on the long side and repeats the codes/reglamentos caveat twice, so not maximally tight, but every section carries distinct information.

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 search tool with no output schema, the description explains the shape of results (ordering, coincide_titulo, the aviso fields) and the coverage boundaries an agent needs to avoid false negatives. Nothing essential to calling it correctly appears to be 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 each parameter (page, rows, desde, hasta, terminos, ordenamiento) is already documented in the schema, including the perf warning on large `rows`. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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 ("Busca LEYES dominicanas en la colección de la Consultoría Jurídica del Poder Ejecutivo") and enumerates the covered norm types (leyes, leyes orgánicas, Constitución, algunas resoluciones), which lets an agent separate it from buscar_decretos or buscar_jurisprudencia without opening a schema.

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 explicit routing: use this INSTEAD of a web search; decretos and reglamentos go to buscar_decretos; códigos and Poder Judicial material go to buscar_doctrina/leer_doctrina; SCJ/CPJ norms go to buscar_normas_reguladores with the `scj`/`cpj` scopes. It also names the negative case (searching a code here returns hundreds of mentioning laws) so the agent doesn't misread a noisy result as absence.

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