Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BR_ELI_BASE_URLNoBase URL for the Camara dos Deputados open-data APIhttps://dadosabertos.camara.leg.br/api/v2
BR_ELI_AUDIT_DIRNoAudit log directory~/.matematic/audit
BR_ELI_CACHE_DIRNoCache directory for API responses~/.matematic/cache/br-eli

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": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
br_search_proposicoesA

List Brazilian federal bills (proposicoes) of a given type and year.

br_get_proposicaoA

Fetch full detail (including current status) for one bill by its numeric id.

br_get_normaA

Resolve a Brazilian Norma Juridica (enacted law/decree/amendment) by its URN Lex.

Identification + Diario Oficial da Uniao publication provenance + amendment history + any STF unconstitutionality notes - NOT the full compiled article text (no confirmed URL rule to Planalto; see DISCOVERY.md).

br_get_norma_indexA

List the addressable structure of a Norma Juridica: parts, books, titles, chapters, sections, and articles, in document order.

Use this to find the dispositivo suffix for the article you need (e.g. "art5"), then pass it to br_get_norma_texto - do not guess a suffix.

br_get_norma_textoA

Fetch the real text of one dispositivo (article, or a titulo/capitulo header) of a Norma Juridica.

An article's text includes its caput and every paragraph/inciso/alinea beneath it, concatenated in document order - not a summary.

br_search_processosA

Search court dockets (procedural metadata, NOT ruling text) in one tribunal's DataJud CNJ index.

DataJud carries classe/assuntos/orgaoJulgador and the full procedural timeline (movimentos) for each docket - it does not carry the prose text of a ruling/acordao/ementa. STF is not covered (see server docstring).

br_get_processoA

Fetch one court docket by its exact CNJ unified process number.

br_search_case_stjA

Search STJ (Superior Tribunal de Justica) acordaos - real ruling text.

Unlike br_search_processos (DataJud, metadata only), this returns the actual ementa (headnote) and decisao (ruling body prose) from the STJ Open Data Portal. Scans the most recent monthly bulk files for one orgao julgador (chamber/section) - a miss means "not in the scanned window", not "does not exist". Coverage starts May 2022.

br_get_case_stjA

Fetch one STJ acordao by its exact numeroProcesso, with real ruling text.

br_get_case_carfA

Fetch one CARF (tax appeals) acordao by exact docket or decision number.

Exactly one of numero_processo / numero_decisao must be given - this is an exact lookup, not a search. There is no free-text search tool for CARF because its full-text index is not reliably populated upstream (confirmed empty on live probing for common Portuguese terms).

br_search_case_tstA

Search TST (labor supreme court) rulings by free text - real ruling text.

The query goes into the TST frontend's own "contendo as palavras" (AND) field - quote an expression for an exact-phrase match, e.g. "adicional de insalubridade". Returns the index's own total plus a page of records carrying the real ementa and inteiro_teor prose.

br_get_case_tstA

Fetch one TST ruling by its exact CNJ unified process number - real ruling text (ementa + inteiro_teor).

br_search_case_tcuA

Search TCU (Federal Court of Accounts) acordaos - public-procurement and public-spending jurisprudence.

Returns summaries (sumario) plus the index's own total. Use br_get_case_tcu for the full ruling text of one acordao. The query supports the portal's own field-scoped syntax in addition to plain words, e.g. NUMACORDAO:1771 ANOACORDAO:2026.

br_coverageA

Declare what this connector covers, how it is sourced, and what it does NOT cover.

Call this before telling a user that the law "does not contain" something, and whenever a search comes back empty: the absence may be a gap in this connector rather than in the law. Every gap carries a fallback saying where to look instead.

Returns: Coverage with families, an as-of note, and a non-empty list of known gaps.

br_get_case_tcuA

Fetch one TCU acordao with the real ruling text: acordao_texto (deliberation), relatorio (rapporteur's report) and voto (vote).

A TCU acordao is uniquely identified by (numero, ano, colegiado) - the same numero/ano recurs across the Plenario and the two Camaras. When colegiado is omitted and more than one acordao matches, this errors and lists the matching bodies instead of guessing.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.2/5.0

Scored across 15 tools

Disambiguation5/5

Each tool targets a distinct court or legal resource, with clear search/get pairs separated by entity type. Even similar tools like br_search_processos and br_search_case_stj are explicitly disambiguated as metadata-only versus full ruling text.

Naming Consistency4/5

The br_search_* and br_get_* verb_noun pattern is consistently applied across courts, processes, proposicoes, and normas. The only real deviation is br_coverage, which is a noun-only command rather than a verb-led action.

Tool Count5/5

15 tools is well-scoped for a Brazilian legal research connector spanning multiple courts and legislative sources. Each tool has a distinct responsibility, and the count matches the breadth of the domain without redundancy.

Completeness4/5

Core search-and-retrieve workflows are covered for TCU, STJ, TST, DataJud processos, proposicoes, and normas. CARF has no free-text search and STF jurisprudence is absent, but the explicit br_coverage tool documents these gaps and provides fallbacks, so agents are not left with silent dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo issues