Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LEXML_SRU_URLNoSRU endpointhttps://www.lexml.gov.br/busca/SRU
LEXML_TIMEOUTNoHTTP request timeout (seconds)15.0
LEXML_CACHE_TTLNoCache TTL (seconds)300
LEXML_URN_TEMPLATENoURN resolution templatehttps://www.lexml.gov.br/urn/{urn}
LEXML_CACHE_MAXSIZENoMax cache entries256

Capabilities

Features and capabilities supported by this server

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

Tools

Functions exposed to the LLM to take actions

NameDescription
lexml_searchA

Search the LexML SRU acervo.

Args: query: CQL query string (e.g. 'dc.title any "constituição"') start_record: First record position (default 1) maximum_records: Max records to return (default 10, max 100) record_schema: Record schema (default 'dc', allowed: dc, oai_dc) filters: Structured filters {title, terms[], document_type, authority, date_from, date_to}. Mutually exclusive with query. When provided, generates safe CQL.

lexml_resolve_urnA

Resolve a LexML URN to its public URL.

Args: urn: LexML URN (e.g. 'urn:lex:br:federal:lei:1990-09-11;8078') verify: If True, follow redirects and validate final host (SSRF guard). Default False — only constructs the URL without network call.

lexml_explainA

Retrieve metadata about the LexML SRU service (explain operation).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
explain_resourceReturn cached explain data from the SRU service.

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/prof-ramos/LeXML-mcp'

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