lex-rag
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LEX_RAG_DEVICE | No | Forces the device used for inference. Set to 'cuda' to use NVIDIA GPU, or 'cpu' to force CPU. By default it is chosen automatically (CUDA + fp16 if available, otherwise CPU). | auto |
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 |
|---|---|
| pesquisar_normaA | Pesquisa a base jurídica federal por busca semântica + reranking. |
| buscar_por_assuntoA | Busca dispositivos por tema/assunto (busca semântica com reranking). |
| obter_dispositivoA | Obtém o texto literal de um dispositivo específico. |
| listar_alteracoesA | Lista os dispositivos não vigentes (revogados/alterados) de uma norma, pelo URN-LEX. |
| healthA | Estado do servidor: coleção, nº de dispositivos indexados e device de inferência. |
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 5 tools
The two search tools (pesquisar_norma and buscar_por_assunto) are similar but differentiated by input type—legal questions vs. subject descriptions—and descriptions clarify usage. obter_dispositivo and listar_alteracoes are clearly distinct, and health is separate.
Most tools follow a verb_noun pattern in Portuguese (pesquisar_norma, buscar_por_assunto, obter_dispositivo, listar_alteracoes), but 'health' breaks the pattern, and 'pesquisar' and 'buscar' are inconsistent synonyms for search.
Five tools is well-scoped for a legal RAG server, covering search, retrieval, change listing, and health. Each tool has a clear purpose and the count fits the typical 3-15 range.
The surface covers the core workflow: semantic search (two variants), device retrieval, and listing non-effective devices. It lacks a full-document retrieval tool, but device-level access is sufficient for the domain, and no CRUD operations are needed for a read-only RAG.