Skip to main content
Glama

CARF (Recursos Fiscais)

jurisprudencia_buscar

Read-onlyIdempotent

Busca jurisprudência (acórdãos, súmulas, orientações jurisprudenciais, temas) por termo ou tese. Devolve, por registro: identificação da decisão, órgão julgador, relator, data, o trecho que casou a busca, o link para o documento no site oficial e citacao pronta (só com os campos que a fonte afirma; null quando falta tribunal ou número). Quando o registro traz texto_integral_disponivel: true, o inteiro teor pode ser lido com jurisprudencia_documento usando o id. Alguns registros vêm sem relator/órgão/número quando a publicação não permite afirmar esses campos — campo nulo é ausência de informação na fonte, não defeito. Informe tribunais para restringir a busca; sem isso a pesquisa é ampla. Zero resultado não significa que a decisão não exista: costuma ser vocabulário (o termo do tribunal difere do coloquial) ou filtro estreito demais. No termo funcionam os operadores: espaço = E, "entre aspas" = frase exata, OR = ou, -palavra = exclui.

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": {
      "termo": "<termo>"
    },
    "name": "jurisprudencia_buscar"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNo
tipoNo
termoYes
data_deNo
ordenarNo
data_ateNo
tribunaisNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, so the safety profile is covered; the description adds value well beyond it. It enumerates the per-record payload, explains the pre-built `citacao` (only fields the source asserts, null when tribunal/número missing), and pre-empts the false conclusion that null relator/órgão/número signals a defect.

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

Conciseness4/5

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

Front-loads purpose and result shape, then layers in caveats and operator syntax; nearly every sentence carries operational information. The null-field caveat is stated twice in slightly different words (citacao rule and the standalone sentence), which is the only real redundancy.

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

Completeness4/5

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

With no output schema, the description does the work of describing return values — record fields, matched excerpt, official link, ready-made citation, and the full-text flag/id linkage — which is exactly what an agent needs to act on results. The gap is on the input side, where date range, result cap, type filter and sort order remain unexplained for a query tool with no schema descriptions.

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

Parameters2/5

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

Schema description coverage is 0% across 7 parameters, so the description carries the full burden, yet it only gives real semantics for `termo` (space = AND, quotes = exact phrase, OR, -word excludes) and `tribunais` (restricts the search). Nothing is said about `max`, `tipo`, `data_de`, `data_ate`, or the `ordenar` enum (relevancia/recencia), leaving five of seven parameters to be guessed from their names.

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 concrete verb ("Busca") plus the specific resource and the sub-types covered (acórdãos, súmulas, orientações jurisprudenciais, temas) and the retrieval mode (por termo ou tese). It also names the companion tool for full text (jurisprudencia_documento) with the `id` needed, so an agent can place it in the workflow without opening either schema.

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?

Gives explicit routing: when a record has `texto_integral_disponivel: true`, read the inteiro teor with jurisprudencia_documento using `id`. It also tells the agent to pass `tribunais` to narrow the search (otherwise broad), and explains that zero results usually mean vocabulary mismatch or an over-narrow filter rather than absence of the decision.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.