Skip to main content
Glama

datajud_get_processo

Read-onlyIdempotent

Busca processo por número CNJ e tribunal. Retorna tribunal, total, count e processos[] (metadados e movimentações por instância). Só sem resultados inclui ausencia. Aceita número com ou sem máscara. Quando processos está vazio, ausencia traz o motivo provável (numero_invalido | tribunal_divergente | nao_publicado | carga_ausente | indeterminado) e a explicação. Com resultados, esse bloco não é retornado. Leia esse bloco antes de repetir a consulta em outra tool: a API pública do CNJ não publica processo em segredo de justiça, então nao_publicado NÃO significa que o processo não existe. O processo que sobe por recurso MANTÉM o número da origem: o AIRR/RR de um processo do TRT continua com o número do TRT no índice tst (e o REsp de TJ/TRF no stj). Quando o 2º grau registra esse recurso, a resposta inclui instancia_superior; para ver em que instância o processo está agora, use datajud_localizar_processo.

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": {
      "tribunal": "<tribunal>",
      "numero_processo": "<numero_processo>"
    },
    "name": "datajud_get_processo"
  }
}

Input Schema

NameRequiredDescriptionDefault
tribunalYes
force_refreshNo
numero_processoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / force_refresh
      Added value: +{
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare read-only, idempotent, non-destructive behavior; the description adds real behavioral context beyond that: the exact return shape, the conditional `ausencia` block that appears only on empty results, the enumerated failure reasons, and the critical caveat that `nao_publicado` does not mean the process does not exist because CNJ does not publish sealed cases. That caveat prevents a concrete misuse the annotations cannot convey.

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-loaded: purpose, then return shape, then the `ausencia` semantics, then the cross-instance caveat, then the sibling routing. Every paragraph carries information, though the appeal-numbering explanation (AIRR/RR, REsp) is a fairly deep detour for a tool that just fetches one process and could be tightened.

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 takes on the burden of describing returns and does so well (tribunal, total, count, processos[], conditional ausencia with reasons). The main remaining hole is the unexplained `force_refresh` flag, which matters for a read tool that may cache.

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

Parameters3/5

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

Schema description coverage is 0%, so the description carries the burden. It does explain that `numero_processo` accepts a CNJ number with or without mask, which is genuinely useful. However, `force_refresh` is never mentioned, so an agent has no idea what it does or when to set it, leaving one of three parameters undocumented.

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?

Opens with a specific verb+resource ('Busca processo por número CNJ e tribunal') and immediately scopes the result (metadata plus movimentações por instância). It also distinguishes itself from a sibling by name, pointing to datajud_localizar_processo for instance tracking, so an agent can separate the two 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 Guidelines4/5

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

Explicitly routes one important case to an alternative: when the second-degree court registered an appeal, use datajud_localizar_processo to see the current instance. It also gives a clear caution about re-querying other tools after an `ausencia` result. It stops short of a general 'use this instead of datajud_search/movimentos when...' statement, so it is clear context without full exclusions.

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.