Skip to main content
Glama
Normativa Colombia MCP

Normativa Colombia MCP

Expediente temporal de investigación

expediente

Create, add to, read, or export a Colombian legal research case file that groups queries, citations, and observations; stores supplied content without querying sources.

Instructions

Crea, agrega, lee o exporta un expediente para agrupar consultas, citas y observaciones de una investigación. No consulta ninguna fuente: guarda lo que le pasas. Se activa con EXPEDIENTES=1 (DESACTIVADO por defecto). En memoria es TEMPORAL (expira según EXPEDIENTES_TTL_MS; por defecto no expira); con EXPEDIENTES_DIR persiste en disco y sobrevive a reinicios. El flujo empieza siempre en "crear", SIN id: devuelve el id que piden las demás; "agregar" exige campo y texto juntos; "leer" lo devuelve agrupado por sección. "exportar" escribe markdown: si ruta es un directorio crea .md dentro, el directorio padre tiene que existir, y un archivo que ya existe no se sobrescribe: se escribe al lado con sufijo numérico y la respuesta da la ruta final. Para guardar el texto de una norma usa obtener_documento.

Input Schema

NameRequiredDescriptionDefault
idNoId del expediente (obligatorio para agregar, leer y exportar)
rutaNoDónde escribir la exportación: un archivo o un directorio (solo accion="exportar")
campoNoSección donde guardar la entrada (solo accion="agregar")
textoNoContenido de la entrada a guardar (solo accion="agregar")
accionYesQué hacer: crear un expediente, agregar una entrada, leer su contenido o exportarlo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.11.2

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: gating by env var, in-memory records expiring per EXPEDIENTES_TTL_MS, disk persistence via EXPEDIENTES_DIR surviving restarts, and non-destructive export semantics (existing file is never overwritten, a numeric-suffixed sibling is written and the final path returned). This is exactly the operational context annotations alone cannot convey.

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 the purpose and the key 'no consulta fuentes' qualifier, and every clause carries information. Some sentences are long and dense (the exportar sentence chains four conditions), which costs a point but nothing is padding.

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?

No output schema exists, yet the description covers the activation gate, storage lifetime, persistence, per-action parameter coupling, and export edge cases including the returned final path, while pointing to obtener_documento for a neighboring use case. Nothing needed to invoke it correctly 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% and the schema already documents each field, so the baseline is 3. The description adds genuine cross-parameter meaning on top: id is required specifically for agregar/leer/exportar, campo and texto must be supplied together, and ruta may be a file or a directory with different write behavior.

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?

Names a specific resource (un expediente para agrupar consultas, citas y observaciones) and enumerates the four operations (crear, agregar, leer, exportar). Crucially it distinguishes itself from the many buscar_* siblings with 'No consulta ninguna fuente: guarda lo que le pasas', so an agent can route without opening the 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 entry conditions (se activa con EXPEDIENTES=1, desactivado por defecto), prescribes the flow ('El flujo empieza siempre en crear, SIN id'), states the per-action prerequisites ('agregar exige campo y texto juntos'), and names an alternative for a related job ('Para guardar el texto de una norma usa obtener_documento').

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.