Skip to main content
Glama

datajud_acompanhar_processos

Read-onlyIdempotent

Acompanhamento processual em lote: para uma lista de números CNJ (até 25), devolve os dados do processo e a ÚLTIMA MOVIMENTAÇÃO de cada um, na instância em que ele está agora (origem e tribunal superior, como datajud_localizar_processo). Retorna itens[] na ordem enviada, cada um com ok, encontrado, processo (classe, assuntos, data de ajuizamento, órgão julgador, instância atual) e ultima_movimentacao { data, descricao, codigo, orgao, orgao_da, tribunal, grau }. orgao_da diz se o órgão veio do próprio movimento ou do órgão julgador da instância. Número que falhou vem com ok: false e erro sem derrubar os outros; número sem resultado vem com encontrado: false e ausencia (mesmo diagnóstico de datajud_get_processo). status: segredo_de_justica (o tribunal ou o Diário marca sigilo) vem só com data e aviso, sem processo nem descrição: não repita a consulta. encontrado: null com status (segredo_de_justica, migrado ou nao_encontrado — este quando o portal não mostra o processo mas o Diário tem publicação dele, com ultima_publicacao {data}) NÃO é "não encontrado" e não conta em nao_encontrados. O tribunal é derivado do número. O STF não está no DataJud. A fonte é lenta (até ~45 s por número quando não está em cache); listas grandes levam minutos.

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": {
      "numeros_processo": "<numeros_processo>"
    },
    "name": "datajud_acompanhar_processos"
  }
}

Input Schema

NameRequiredDescriptionDefault
force_refreshNo
max_idade_horasNo
numeros_processoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / max_idade_horas
      Added value: +{
      +  "type": "number"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: per-item failure isolation (ok:false without breaking the batch), ordering guarantee, the segredo_de_justica shape with no process data, the encontrado:null statuses that must not be counted as not-found, STF absence from DataJud, and a slow source (~45 s per uncached number). That is exactly the behavioral context an agent needs before calling.

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 with the core action and followed by return-shape then edge-case semantics, every sentence carrying payload. It is dense and paragraph-length, resting heavily on parentheticals and backticks, which costs a bit of scannability.

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?

No output schema exists, and the description compensates by describing itens[], the per-item fields, status variants, and the ultima_publicacao case in enough detail to consume results correctly. Combined with the latency and failure-isolation notes, an agent has what it needs.

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 full burden. It explains numeros_processo well (type, cap of 25, order preservation) and hints at caching, but force_refresh and max_idade_horas are never defined, leaving two of three parameters with no semantics anywhere.

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: batch procedural tracking ('Acompanhamento processual em lote') over a list of up to 25 CNJ numbers, returning process data plus the last movement per case. It also fixes scope ('na instância em que ele está agora') and references how it relates to datajud_localizar_processo, so an agent can distinguish it from single-process siblings.

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?

Usage is largely implied by the batch framing ('para uma lista de números CNJ (até 25)') and reinforced with operational guidance: don't re-query when status is segredo_de_justica, and expect minutes-long runtimes for large lists. It does not explicitly say 'use datajud_get_processo for a single number', which is the main missing routing rule.

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.