Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
REDIS_URLNoRedis connection URL (optional; if missing, only in-memory cache)
MCP_API_KEYSNoAPI keys format: name:key:limit,... (if empty, open access)
BRAVE_API_KEYNoBrave Search API key
SEARCH_API_KEYNoGeneric search API key (used if SEARCH_PROVIDER is not set to a specific provider)
SERPER_API_KEYNoSerper.dev API key
WARMUP_ON_BOOTNoEnable warmup on boot (1 or 0, default 1)
CIRCUIT_OPEN_MSNoCircuit breaker open duration in ms
PACK_TIMEOUT_MSNoPack timeout in ms
SEARCH_PROVIDERNoSearch provider: auto | serper | brave
CIRCUIT_THRESHOLDNoCircuit breaker failure threshold
UNIFIED_BUDGET_MSNoFan-out unified budget in ms
LEYCHILE_MIN_INTERVAL_MSNoMinimum interval in ms between LeyChile requests

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
buscar_legislacionB

Busca normativa chilena en BCN / LeyChile. Para texto íntegro usa obtener_texto_norma / obtener_articulo.

obtener_normaC

Metadatos BCN de una norma chilena.

estado_normaC

Metadatos de publicación y enlaces a historia LeyChile. Confirma siempre en la fuente oficial.

normas_relacionadasC

Candidatas relacionadas por similitud BCN + enlace a historia LeyChile.

obtener_texto_normaC

XML oficial. modo=indice lista artículos; modo=cuerpo devuelve texto (truncable).

obtener_articuloC

Artículo puntual del XML oficial de LeyChile.

obtener_incisoC

Extrae inciso/literal aproximado del texto oficial del artículo.

formatear_citaB

Genera cadena de cita formal SOLO con identificadores ya recuperados (norma, ROL, dictamen o doctrina). No inventa datos.

citar_texto_legalC

Devuelve cita formal chilena + texto oficial de LeyChile listo para pegar en un escrito (blockquote).

obtener_doctrinaB

Recupera una obra doctrinal con cita chilena, APA, abstract y enlaces DOI/PDF.

buscar_jurisprudenciaC

Links a fallos PJUD/TC (evidencia link_only). Filtros opcionales anio/tribunal.

buscar_tcB

Búsqueda acotada a tribunalconstitucional.cl (link_only).

buscar_doctrinaC

OpenAlex + Crossref con citas formales Chile/APA, DOI, abstract y PDF si existe.

buscar_dictamenesD

Contraloría / administración (link_only).

resolver_dictamenC

Deep-link / búsqueda por número de dictamen CGR.

buscar_derecho_chilenoC

Fan-out con presupuesto de tiempo; puede devolver pendingSources.

investigar_temaB

Orquesta legislación (+ artículo si aplica), jurisprudencia, dictámenes y doctrina en un memo markdown anti-alucinación.

acerca_deD

Catálogo, matriz de honestidad y SLOs.

Prompts

Interactive templates invoked by user choice

NameDescription
consulta_juridica_chileResponde solo con tools MCP Legal Chile.
citar_articulo_leyObtiene y formatea un artículo oficial.
memo_asesoriaEstructura IRAC con citas obligatorias de tools.
checklist_recurso_proteccionPasos y tools a invocar antes de redactar.
checklist_demanda_laboralNormas CT + jurisprudencia a verificar.
lista_prueba_normativaQué artículos pedir antes de redactar.
citar_doctrina_y_normaCombina cita doctrinal formal con blockquote del artículo oficial de LeyChile.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gabrielperezibacache/mcp-legal-chile'

If you have feedback or need assistance with the MCP directory API, please join our Discord server