Skip to main content
Glama
elimorals

legalize-mx-mcp

by elimorals

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GITHUB_TOKENNoSube 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_REPONoRuta a un clon local de legalize-mx: texto e historial sin red.
LEGALIZE_MX_CACHENoCarpeta de caché (por defecto ~/.cache/legalize-mx).
LEGALIZE_MX_INDEXNoRuta 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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 fecha (AAAA-MM-DD).

Textos largos vienen por partes: usa desde con el valor siguiente_desde. Si la norma solo está catalogada, devuelve sus documentos oficiales; con extraer_en_vivo=true los baja y extrae.

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 fecha) el Diario Oficial de la Federación, en vivo.

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 aviso_indice, o si buscas algo publicado en los últimos días.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 10 tools

Disambiguation4/5

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.

Naming Consistency3/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo issues