io.github.billibu-n/mcp-leyes-chile
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_LEYES_DB | No | Ruta al archivo de base de datos SQLite del corpus (por ejemplo, /ruta/a/corpus.db). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Servidor de leyes chilenas y labor notarial. Orden de uso: cl_buscar -> cl_articulo -> cl_citar. Nunca cites sin llamar a cl_articulo. Si una herramienta devuelve [sin_fuente], [not_found] o [upstream_error], dilo tal cual. Toda respuesta con contenido juridico debe conservar el campo 'aviso'. La cobertura real se consulta con cl_cobertura; no la supongas.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| cl_buscarC | Busca articulos por texto. Devuelve idNorma, norma, articulo y fragmento. |
| cl_articuloC | Texto literal + objeto de cita. Sin fuente no devuelve texto.
|
| cl_versionesC | Historial de versiones con rango de vigencia y advertencia de centinela. |
| cl_citarC | Verifica un lote de referencias. Devuelve ok, faltantes y sin_fuente_verificable. |
| cl_notariaC | Ficha de tramite notarial con fuente y estado por campo. No calcula precios. |
| cl_documentoC | Genera .odt (siempre) y deriva .pdf/.docx/.md. Marca de borrador obligatoria. |
| cl_coberturaA | Que cubre el servidor, hasta cuando, y que NO cubre. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool targets a distinct operation: search (cl_buscar), article retrieval (cl_articulo), version history (cl_versiones), citation verification (cl_citar), notarial procedures (cl_notaria), document generation (cl_documento), and coverage (cl_cobertura). The clearest risk is cl_buscar vs cl_articulo, but descriptions separate search-by-text from fetch-by-id sufficiently. cl_citar vs cl_articulo could momentarily confuse an agent but the verification framing differentiates them.
All names share a consistent cl_ prefix with short, readable Spanish tokens, which is a clear convention. However, it mixes verbs (buscar, citar) with bare nouns (articulo, versiones, notaria, documento, cobertura), so the verb_noun predictability breaks down slightly. Still readable and internally cohesive overall.
Seven tools is well within the ideal 3-15 range for a domain-specific legal research server. Each tool maps to a distinct workflow step (search, retrieve, version-check, cite, notarial, export, coverage), so none feel redundant. The surface is tightly scoped rather than padded.
The lifecycle is well covered: discovery, retrieval, version history, citation validation, notarial support, document export, and an explicit coverage disclaimer. A minor gap is browsing a norm's structure or listing all articles of a given norm, which would help navigation without prior knowledge. Also no explicit update/'recent changes' style tool beyond version history per article.