Skip to main content
Glama

Clerk - IA Legal Dominicana

Leer un decreto o reglamento

leer_decreto
Read-only

El texto de un decreto o reglamento del Poder Ejecutivo, por páginas, extraído de su PDF oficial. Se pide con el doc_id que devuelve buscar_decretos.

Seis modos. Sin más argumentos, la FICHA: cuántas páginas tiene. Con estructura, los TÍTULOS, CAPÍTULOS y Secciones con su página y su primer artículo, sin el texto. Con articulo, ese artículo entero o la página donde empieza (reconoce el encabezado «Art. N.-», no las menciones del artículo dentro de otros). Con buscar, dónde aparece el término y su contexto. Con desde/hasta, ese tramo entero. Con pagina, esa página sola.

⚠️⚠️ Un reglamento puede pasar de cien páginas. NO lo leas entero: pide la estructura o el articulo, y lee con desde/hasta solo el capítulo que responde la pregunta.

⚠️ Cita SOLO lo leído con pagina o desde/hasta, o el articulo que llegó entero, literal: el contexto de buscar localiza, no se cita. Si la respuesta trae aviso_cobertura, la búsqueda NO miró el documento entero.

⚠️⚠️ El PDF es un recorte de la Gaceta Oficial: puede traer el final del decreto anterior y el principio del siguiente. Cita solo desde el encabezado «NUMERO: N-AA» del que buscas hasta el del siguiente (decretos_que_empiezan_aqui).

⚠️ Un decreto puede modificar o derogar otros: los considerandos y el dispositivo lo dicen. Comprueba la vigencia antes de citarlo como derecho aplicable.

⚠️ La primera lectura tarda unos segundos; las siguientes son inmediatas. No reintentes por lentitud.

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": {
      "doc_id": "<doc_id>"
    },
    "name": "leer_decreto"
  }
}

Input Schema

NameRequiredDescriptionDefault
desdeNoPrimera página de un tramo a leer entero (1-based).
hastaNoÚltima página del tramo. Si pides demasiadas, se recorta y se dice.
buscarNoTérmino a localizar dentro del documento. No distingue tildes ni mayúsculas.
doc_idYesEl `doc_id` que trae cada resultado de buscar_decretos.
paginaNoPágina del PDF a leer entera (1-based).
articuloNoNúmero del artículo. Devuelve el artículo entero o, si no puede, la página donde empieza.
estructuraNotrue: los TÍTULOS, CAPÍTULOS y Secciones con su página y su primer artículo, sin el texto.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / articulo / description
      Previous value: -"Número del artículo a localizar. Devuelve la página donde empieza."New value: +"Número del artículo. Devuelve el artículo entero o, si no puede, la página donde empieza."
  2. Changed1 schema field changed
    • addedInput schema / properties / estructura
      Added value: +{
      +  "description": "true: los TÍTULOS, CAPÍTULOS y Secciones con su página y su primer artículo, sin el texto.",
      +  "type": "boolean"
      +}
  3. 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 substantial behavior: first read is slow and subsequent reads are immediate (so no retrying on latency), the PDF is a slice of the Gaceta Oficial that may contain the tail of the previous decree and head of the next, `aviso_cobertura` signals an incomplete search, and `decretos_que_empiezan_aqui` marks document boundaries. It also discloses a substantive caveat that a decree may amend or repeal others and that vigencia must be checked before citing.

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 modes, then caveats in descending order of importance, with zero filler sentences. It is longer than typical and the emoji-laden warning stack is slightly repetitive (the 'do not read the whole thing' and coverage points are restated), but each block carries distinct operational 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?

With 7 parameters, no output schema, and an open-world PDF source, the description compensates by describing what each mode returns (page count, structure without text, article text or its starting page, term context, page span) and by flagging the coverage and boundary metadata an agent will encounter. Nothing needed to call 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.

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 goes beyond the schema by explaining the mode logic — that omitting all optional arguments yields a page count, that `articulo` matches the «Art. N.-» header and not in-text mentions, and that `buscar` results are locators rather than citable text. That interaction between parameters is not derivable from the schema alone.

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 opening sentence names a specific resource (the text of an executive-branch decree or regulation, by pages, from the official PDF) and states the required `doc_id` comes from `buscar_decretos`, which cleanly separates it from the search siblings. The enumeration of the six modes makes the tool's scope concrete rather than gestural.

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?

It gives explicit routing for each mode: no argument yields the ficha, `estructura` for titles/chapters, `articulo` for a single article, `buscar` for locating a term, `desde`/`hasta` for a span, `pagina` for one page. It also states the exclusion — do not read a 100+ page regulation whole — and prescribes the recommended path (estructura or articulo, then the relevant chapter).

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