Skip to main content
Glama

Clerk - IA Legal Dominicana

Buscar doctrina

buscar_doctrina
Read-only

Busca libros y publicaciones jurídicas dominicanas POR SU CONTENIDO: la coincidencia se busca dentro del texto completo de la obra, no en el título. Un resultado significa que ese libro trata la figura, aunque su título no la nombre («anatocismo» devuelve el Diccionario Jurídico Dominicano; «lucro cesante», 50 obras).

Úsala para saber A QUÉ DOCTRINA acudir. Aquí llega la ficha (título, autores, editorial, páginas, isbn13); el TEXTO de la obra lo sirve leer_doctrina, a la que se pasa el isbn13 de cada resultado.

⚠️⚠️ La biblioteca NO es solo doctrina: aloja también el TEXTO de los CÓDIGOS (Civil, de Procedimiento Civil, de Comercio, Penal, Procesal Penal, de Trabajo, Tributario, Monetario y Financiero…) y de los REGLAMENTOS y RESOLUCIONES del Poder Judicial (por ejemplo, los de la Jurisdicción Inmobiliaria), que NO están en buscar_legislacion. Para un código, busca su título («Código Civil de la República Dominicana»). Esos resultados llevan es_texto_normativo: true: son la norma, se citan por artículo, y un artículo se lee con leer_doctrina y articulo. Si hay varias ediciones del mismo texto, la respuesta trae aviso_versiones: esta fuente no marca cuál está vigente.

Los artículos de la Revista Saber y Justicia de la Escuela Nacional de la Judicatura llegan además uno por uno en articulos_de_revista, con su autor y sus temas: se leen con leer_doctrina y su clave, y se citan a quien firma el artículo.

Los artículos jurídicos que algunos autores dominicanos publican en su propio sitio llegan en doctrina_de_autores, buscados por su TÍTULO: se leen con leer_doctrina y su clave, y se citan al autor con el enlace a su página. Los libros que publican en su sitio llegan en libros_de_autores, hallados por su título o por un epígrafe de su índice, con la página donde empieza cada epígrafe: se leen con leer_doctrina, su clave y esas páginas.

⚠️ La ficha sola no autoriza a parafrasear el contenido: lee el pasaje por leer_doctrina antes de atribuirle nada a una obra.

⚠️⚠️ Para saber si una obra o un autor ESTÁN en la biblioteca, usa autor o titulo, no terminos: buscar el nombre de un autor por contenido trae las obras que lo citan, no las suyas. Con autor o titulo llega catalogo, la lista de las obras de la biblioteca que casan (todas sus palabras, sin importar tildes); sin terminos llega solo eso. Ahí un cero SÍ significa que la obra no está: dilo y no la busques más.

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_doctrina"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPágina, base 0.
rowsNoResultados 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.
autorNoApellido o nombre del autor, para saber qué obras suyas hay en la biblioteca.
tituloNoPalabras del título, para saber si una obra está en la biblioteca.
terminosNoTérminos de búsqueda dentro del texto de las obras.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / autor
      Added value: +{
      +  "description": "Apellido o nombre del autor, para saber qué obras suyas hay en la biblioteca.",
      +  "type": "string"
      +}
    • changedInput schema / properties / terminos / description
      Previous value: -"Términos de búsqueda."New value: +"Términos de búsqueda dentro del texto de las obras."
    • addedInput schema / properties / titulo
      Added value: +{
      +  "description": "Palabras del título, para saber si una obra está en la biblioteca.",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "terminos"
      -]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds the behavior that actually matters for correct use: the library also hosts normative texts and Poder Judicial regulations flagged with `es_texto_normativo`, `aviso_versiones` warns that editions are not marked as current, and results may be split across `articulos_de_revista`, `doctrina_de_autores` and `libros_de_autores` with different citation rules. It also cautions that the ficha alone does not authorize paraphrasing content.

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 purpose and the primary routing rule are front-loaded in the first two paragraphs, and the warning blocks each cover a distinct output branch rather than repeating themselves. It is long and heavy on emoji warnings, but for a tool with four differently shaped result sets the length is largely earned.

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?

There is no output schema, so the description carries the full burden of explaining return values, and it does: ficha fields, `catalogo`, `es_texto_normativo`, `aviso_versiones`, the per-article and per-author branches, and which companion tool and key reads each one. Nothing an agent needs before calling or interpreting results is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning: it distinguishes the three search parameters by intent (`terminos` = content, `autor`/`titulo` = existence checks), explains that `autor`/`titulo` produce `catalogo`, and that omitting `terminos` yields only that catalogue. `page` and `rows` semantics are left entirely to 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 plus the crucial scope detail: the match is against the full text of the work, not the title, with concrete examples («anatocismo» returns the Diccionario Jurídico Dominicano). It also separates itself from `leer_doctrina` (returns the ficha, not the text) and from `buscar_legislacion` (codes/regulations live here instead), so an agent can route correctly without opening any 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?

Explicit when-to-use and when-not-to-use: use it to find which doctrine to consult; use `autor` or `titulo` rather than `terminos` to check whether a work or author is in the library, since content search on an author name returns works that cite them. It also states that a zero in `catalogo` genuinely means the work is absent, and tells the agent to read the passage via `leer_doctrina` before paraphrasing.

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