legalize-mx-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GITHUB_TOKEN | No | Sube el límite de consultas de historial. Sin token, GitHub permite 60 consultas de historial por hora; con un GITHUB_TOKEN el límite sube a 5,000. | |
| LEGALIZE_MX_REPO | No | Ruta a un clon local de legalize-mx: texto e historial sin red. | |
| LEGALIZE_MX_CACHE | No | Carpeta de caché (por defecto ~/.cache/legalize-mx). | |
| LEGALIZE_MX_INDEX | No | Ruta a un índice local (no lo descarga). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
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
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| buscar_normaA | Busca normas por texto (título y contenido) con filtros. estado: clave de 3 letras (JAL, NLE, CMX…) o "federal". municipio: nombre o clave INEGI. tipo: ley, ley_federal, ley_general, codigo, reglamento, bando, ley_de_ingresos, presupuesto, acuerdo, decreto, lineamientos, tratado, nom… vigente: true/false. con_texto: solo las que tienen texto procesado. fuente: "scjn" o el slug de una fuente (congreso-jal, dof, muni-html…). |
| leer_normaB | Texto de una norma: el vigente, o el que regía en Textos largos vienen por partes: usa |
| articuloC | Un artículo específico ("27", "3 bis", "primero"), vigente o a una fecha. |
| historialC | Reformas de una norma: fecha, tipo de cambio, decreto y artículos afectados. |
| diffB | Qué cambió entre la versión vigente en fecha_a y la de fecha_b (por omisión, la actual). |
| fuentesC | Enlaces oficiales a los documentos originales (para citar o verificar). |
| coberturaC | Qué hay y qué falta: normas por fuente y tipo, y la fuente municipal de cada municipio. |
| dof_del_diaC | Lo que publicó hoy (o en |
| leer_nota_dofC | Texto completo de una nota del DOF por su código (de dof_del_dia), en vivo. |
| actualizar_indiceA | Baja ahora el índice más reciente publicado y lo usa. Úsalo cuando una respuesta traiga
|
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 10 tools
Each tool targets a fairly distinct operation: search (buscar_norma), full read (leer_norma), single article (articulo), reform history (historial), version comparison (diff), official sources (fuentes), coverage metadata (cobertura), and DOF live tools. Minor overlap exists between leer_norma/articulo (both return text) and between fuentes and leer_norma's catalog fallback, but descriptions clarify the boundaries.
All names are snake_case and readable, but the convention is mixed: some use verb_noun (buscar_norma, leer_norma, leer_nota_dof, actualizar_indice) while others are bare nouns (articulo, historial, diff, fuentes, cobertura, dof_del_dia). Readable but not a predictable single pattern.
10 tools is well-scoped for a legal-norm research server, with each tool earning a distinct role across search, retrieval, provenance, and freshness workflows. No redundant or filler tools.
The surface covers the research lifecycle well: discovery, reading (full/partial/by article), historical versions, diffs, citation sources, coverage reporting, and live DOF retrieval plus index refresh. Minor gaps like a bulk/export or citation-formatting tool are absent but workable around.