Skip to main content
Glama
MCP Jurisprudência Unificada (CJF)

MCP Jurisprudência Unificada (CJF)

busca_semantica

Finds Brazilian federal case law decisions with similar meaning from a natural-language case description, even when wording differs; supports court, date, type, and other filters.

Instructions

Busca SEMÂNTICA: descreva o caso com suas palavras e o portal encontra decisões de sentido próximo, mesmo sem as mesmas palavras.

Ex.: "imóvel ocupado pelo DNIT para obra de rodovia sem indenização ao
proprietário". Não use operadores aqui.

LIMITE: o portal considera só os 150 documentos mais próximos; totais e
estatísticas se referem a esse recorte, não ao acervo inteiro. Para
contagens do acervo, use buscar_jurisprudencia.

Filtros (todos opcionais e combináveis):
    tribunais: lista de códigos — "TRF1" (padrão), "TRF2"…"TRF6", "STJ",
        "STF", "TNU", "JEF1", "CJF". Lista vazia [] = todos os tribunais.
    tipos: "ACORDAO", "DECISAO_MONOCRATICA" e/ou "SUMULA".
    orgaos_julgadores: ex. ["QUARTA TURMA"], ["CORTE ESPECIAL"].
    classes: siglas, ex. ["AC", "AI", "AG", "REMNE", "ED"].
    ufs: ex. ["TO", "GO"] (UF de origem).
    relatores: nome como aparece no portal, ex. ["NEY BELLO"].
    numero_processo: número CNJ, com ou sem pontuação.
    data_inicio / data_fim: DD/MM/AAAA ou AAAA-MM-DD.
    tipo_data: "julgamento" (padrão) ou "publicacao".
    ordenacao: "relevancia" (padrão), "recentes" ou "antigos".
    referencia_legislativa: norma indexada (índice manual, cobertura
        parcial — zero aqui NÃO prova ausência de precedentes).
    pagina / limite: paginação (limite 1–50, padrão 10). Mantenha o mesmo
        limite ao paginar.
    incluir_estatisticas: devolve as contagens por tribunal, órgão,
        classe, tipo e UF (útil para mapear a jurisprudência).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "descricao": "<descricao>"
    },
    "name": "busca_semantica"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufsNo
tiposNo
limiteNo
paginaNo
classesNo
data_fimNo
descricaoYes
ordenacaoNorelevancia
relatoresNo
tipo_dataNojulgamento
tribunaisNo
data_inicioNo
orgaos_julgadoresNo
incluir_estatisticasNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full disclosure burden and does so: it warns that only the 150 nearest documents are considered and that totals/statistics reflect that slice, not the whole acervo. It also flags the manual, partially-covered legislative index ("zero aqui NÃO prova ausência de precedentes") and instructs keeping the same limite when paginating — all non-obvious behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then example, then the hard limit, then the alternative tool, then a compact parameter reference. The bulleted filter block is dense reference material rather than prose padding, and each line adds a usable fact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 14-parameter retrieval tool with no annotations and no output schema, the definition covers retrieval semantics, result-set cap, pagination discipline, defaults and the statistics return option. An agent can call it correctly with only this text plus the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate and does: it gives accepted code values for tribunais, tipos, orgaos_julgadores, classes and ufs, an exemplar relator name, date formats for data_inicio/data_fim, the tipo_data mode switch, ordenacao options with the default, the 1–50 limite range with default 10, and empty-list semantics ([] = all courts). Minor caveat: numero_processo and referencia_legislativa are documented here but absent from the input schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Busca SEMÂNTICA") and immediately defines the mechanism: describe the case in your own words and the portal finds decisions with close meaning even without matching terms. The concrete example ("imóvel ocupado pelo DNIT...") makes the retrieval mode unmistakable and distinguishes it from a keyword/boolean search tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly forbids operators ("Não use operadores aqui") and names the alternative with the exact condition that selects it: for whole-collection counts use buscar_jurisprudencia. The LIMITE paragraph is essentially a when-not-this-tool rule, telling the agent not to read totals as corpus-wide figures.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.