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

MCP Jurisprudência Unificada (CJF)

ler_decisao

Retrieves the full text of a Brazilian federal court decision by CNJ number or doc_id, returning ementa, dispositivo, metadata, full-text link and ABNT citation for accurate quoting.

Instructions

Lê uma decisão completa pelo número CNJ (com ou sem pontuação) ou pelo doc_id devolvido nas buscas.

Use SEMPRE antes de citar uma decisão em peça. Devolve ementa e dispositivo integrais (sem o corte das listas), metadados, link do inteiro teor e citacao_abnt pronta. O texto do inteiro teor vem apenas quando o portal o disponibiliza (varia por tribunal e documento).

Args: numero_ou_doc_id: ex. "1026464-33.2024.4.01.3300" ou o doc_id. tribunal: opcional, restringe a busca pelo número (ex. "TRF1"). incluir_inteiro_teor: se False, não traz o texto do inteiro teor.

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": {
      "numero_ou_doc_id": "<numero_ou_doc_id>"
    },
    "name": "ler_decisao"
  }
}

Input Schema

NameRequiredDescriptionDefault
tribunalNo
numero_ou_doc_idYes
incluir_inteiro_teorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose return contents (integral ementa and dispositivo, metadata, full-text link, ready-made ABNT citation). It also flags a real behavioral caveat: the inteiro teor text only appears when the portal provides it, varying by court and document. Missing are error/not-found behavior and any permission constraints.

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?

Purpose is front-loaded, followed by return contents and the usage rule, then a compact Args block. The Args block partially restates parameter titles, but it adds the example and semantics, so the space is largely earned.

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?

There is no output schema and no annotations, yet the description covers what is returned, the conditional availability of full text, and all three inputs. A short note on behavior when the number is not found or when tribunal conflicts with the number would make it complete.

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

Parameters4/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 it does: it documents all three parameters with an example CNJ string, explains tribunal as an optional narrowing filter for number lookups, and states the effect of incluir_inteiro_teor=False. Meaning is added beyond the bare schema titles.

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 ('Lê uma decisão completa') plus the two accepted identifiers (CNJ number with or without punctuation, or doc_id from searches). The clause 'sem o corte das listas' explicitly contrasts it with the list-returning search siblings, so an agent can tell them apart without opening any schema.

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

Usage Guidelines4/5

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

Gives a strong, explicit directive: 'Use SEMPRE antes de citar uma decisão em peça', which defines the trigger condition clearly. It does not name a specific alternative or state when-not to use it, which keeps it below a 5.

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