Skip to main content
Glama

Clerk - IA Legal Dominicana

Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Clerk. If you published it, claim ownership there.

Leer doctrina

leer_doctrina
Read-only

El texto de una obra de la biblioteca, por páginas, extraído de su PDF oficial. Se pide con el isbn13 que devuelve buscar_doctrina, o con la clave de un artículo de articulos_de_revista o de doctrina_de_autores. Un artículo de doctrina_de_autores no tiene páginas: se lee por parte, o con buscar para ir a sus párrafos, y se cita con su enlace. Un libro de libros_de_autores se lee por páginas (pagina, o desde y hasta, diez como mucho); sin páginas devuelve su índice de epígrafes, y con buscar solo los epígrafes que traen esa palabra. Con páginas y buscar, solo los pasajes de esas páginas que la traen.

Cinco modos. Sin más argumentos, la FICHA: cuántas páginas tiene y, si el PDF lo trae, su ÍNDICE con la página de cada sección. Con articulo, la página donde empieza ese artículo de un código o reglamento (reconoce el encabezado «Art. N.-», no las menciones del artículo dentro de otros ni el índice). Con buscar, las páginas donde aparece el término y su contexto; no distingue tildes ni mayúsculas. Con desde/hasta, ese tramo entero (hasta 120 páginas por lectura). Con pagina, esa página sola. Y con entrada (sin isbn13), el lema del Diccionario Jurídico Dominicano: va directo a su página.

⚠️ Empieza por la ficha. Si la obra trae índice, localiza la sección por ahí y pide sus páginas con desde/hasta: es más barato y más fiel que barrer el libro. Si no trae índice, usa buscar.

⚠️ La página que devuelve es la del PDF, y es la que se usa en la cita («pág. 214»). Cita SOLO lo leído con pagina o desde/hasta, literal: el contexto de buscar localiza, no se cita.

⚠️⚠️ Si la respuesta trae aviso_cobertura, la búsqueda NO miró la obra entera. Un cero ahí significa «no está en las páginas que miré», nunca «no está en la obra»: dilo así o no lo digas.

⚠️⚠️ DE QUIÉN SON LAS PALABRAS. Cada tramo dice dónde cae y de quién es, igual que el texto de una sentencia: · es_cita: true → el tramo está DENTRO DE COMILLAS: son palabras que el autor CITA, no suyas. Atribuírselas es el mismo error que citar un voto disidente como criterio del tribunal. · autor → en una OBRA COLECTIVA, quién firma ESE capítulo. Se cita a esa persona, no al coordinador ni a la institución que edita. · es_aparato: true → el acierto está en el índice, las abreviaturas o la bibliografía. La palabra sale de verdad, pero la obra NO trata el asunto ahí. · seccion → el epígrafe bajo el que cae, para juzgar si viene a cuento. · aviso_citas → el libro no marca sus citas, así que NO se puede saber si un pasaje es del autor o de alguien a quien cita. No lo atribuyas.

⚠️ Con un término frecuente, mira donde_aparece ANTES que los tramos: dice en qué epígrafes se concentra el término y quién los firma. Ocho tramos sueltos de un término que sale 500 veces son ruido; el reparto dice dónde vive el asunto, y entonces se piden ESAS páginas con desde/hasta.

⚠️ La primera lectura tarda unos segundos; las siguientes son inmediatas. No es un fallo: no reintentes por lentitud.

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

Input Schema

NameRequiredDescriptionDefault
claveNoLa clave de un artículo (`articulos_de_revista` o `doctrina_de_autores` de buscar_doctrina) o de un libro (`libros_de_autores`), en lugar del isbn13.
desdeNoPrimera página de un tramo a leer entero (1-based). Úsalo con lo que diga el índice.
hastaNoÚltima página del tramo. Como mucho 120 páginas por lectura; si pides más, se recorta y se dice.
parteNoSolo para `doctrina_de_autores` y el índice de un libro de `libros_de_autores`: qué parte leer (1-based). La respuesta dice cuántas hay.
buscarNoTérmino a localizar dentro de la obra. No distingue tildes ni mayúsculas.
isbn13NoEl isbn13 de la obra, tal como lo devuelve buscar_doctrina.
paginaNoPágina del PDF a leer entera (1-based).
entradaNoUn lema del Diccionario Jurídico Dominicano («anatocismo», «desahucio»). Lee su página directamente, en cualquiera de los dos tomos, sin isbn13.
articuloNoNúmero del artículo a localizar en un código o reglamento. Devuelve la página donde empieza.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / clave / description
      Previous value: -"La clave de un artículo de revista (`articulos_de_revista` de buscar_doctrina), en lugar del isbn13."New value: +"La clave de un artículo (`articulos_de_revista` o `doctrina_de_autores` de buscar_doctrina) o de un libro (`libros_de_autores`), en lugar del isbn13."
    • addedInput schema / properties / parte
      Added value: +{
      +  "description": "Solo para `doctrina_de_autores` y el índice de un libro de `libros_de_autores`: qué parte leer (1-based). La respuesta dice cuántas hay.",
      +  "type": "number"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / clave
      Added value: +{
      +  "description": "La clave de un artículo de revista (`articulos_de_revista` de buscar_doctrina), en lugar del isbn13.",
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / entrada
      Added value: +{
      +  "description": "Un lema del Diccionario Jurídico Dominicano («anatocismo», «desahucio»). Lee su página directamente, en cualquiera de los dos tomos, sin isbn13.",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "isbn13"
      -]
  4. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint/openWorldHint, and the description adds substantial behavior beyond that: the returned page is the PDF page used in citations, citations must be literal and only from pagina/desde-hasta (not from buscar context), aviso_cobertura means the search did not cover the whole work, and each passage carries es_cita/es_aparato/autor/seccion/aviso_citas attribution flags whose misuse is spelled out. The only remaining gap is the concrete shape of the response object, which is described field-by-field rather than structurally.

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-loads the one-line purpose, then identifies sources, then enumerates the five modes, then groups caveats under marked ⚠️ headings, so the reader can skim. It is dense and repeats 'no distingue tildes ni mayúsculas' from the schema, and the length is at the upper edge of what a call-time description can carry, but almost every sentence drives a decision.

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 nine-parameter, five-mode tool with no output schema, the definition covers what each mode returns (ficha, índice, page range, search hits, dictionary entry) and explains the metadata fields an agent must interpret (aviso_cobertura, donde_aparece, es_cita, es_aparato, autor, aviso_citas). Nothing an agent needs to invoke it correctly, or to avoid misreading its output, 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 real meaning: clave replaces isbn13 for articles vs books, parte applies only to doctrina_de_autores and a book's index, entrada works without isbn13 across either tomo, articulo matches the «Art. N.-» header and not in-text mentions or the índice, and mode combinations (páginas + buscar) are defined. It loses a little because the 120-page cap and the accent/case insensitivity it repeats are already in 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+resource ('El texto de una obra de la biblioteca, por páginas, extraído de su PDF oficial') and immediately names the sibling tools that supply each identifier (buscar_doctrina for isbn13, articulos_de_revista/doctrina_de_autores for clave). An agent can tell this apart from buscar_doctrina and the other leer_* tools 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?

Prescribes an explicit workflow ('Empieza por la ficha... localiza la sección por ahí y pide sus páginas con desde/hasta... Si no trae índice, usa buscar') and enumerates the five modes with the exact condition that selects each one. It also gives a negative rule (do not retry on first-load slowness) and tells the agent to consult donde_aparece before spending reads on a frequent term.

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