Skip to main content
Glama

Legal MCP (alternativa ao Jusbrasil)

processos_andamento

Read-onlyIdempotent

ANDAMENTO pelo NÚMERO, lido na consulta pública do tribunal: capa (classe, assunto, foro/vara, situação — sem partes), movimentações da mais recente para a mais antiga e ultima_movimentacao {data, descricao}. Traz o andamento do dia, inclusive o que não sai no Diário (juntada, penhora), também de processo migrado para o sistema novo do tribunal (eproc). Até 25 números por chamada, ~2–4 s por processo: até 5 números a resposta vem direto (o 1º grau do TRF3 vem sempre por job; da Justiça do Trabalho, do TJCE, do TRF1, do TRF2, do TRF4, do TJSC, do TJRS, do TJMG, do TJRJ e do TRF5, até 2, porque levam ~10–25 s cada); acima disso vem { job_id, status } e o resultado (mesmo formato) sai em processos_get_resultado(job_id) quando status for 'done'. Cada item tem status: ok | nao_encontrado (a consulta pública não mostra o processo; com encontrado: null ela não permite concluir que não existe — com ultima_publicacao {data}, o Diário tem publicação dele, então ele existe) | segredo_de_justica (o portal ou o Diário marca sigilo; pelo Diário vem só ultima_publicacao {data}, sem conteúdo) | migrado (o processo foi para outro sistema do tribunal e a última movimentação daqui NÃO é a atual: ultima_movimentacao vem null) | portal_indisponivel / rate_limited / captcha_required (falha de acesso ou limite diário de consultas com verificação — NÃO quer dizer que o processo não exista; tente depois) | nao_suportado (tribunal ou instância ainda não coberto: use datajud_acompanhar_processos). aviso explica o caso. Leia aviso antes de concluir que um processo não existe. Cada item traz frescor: ao_vivo (lido agora no portal) | cache (o portal não respondeu e voltou o último andamento que já lemos, com atualizado_em e idade_horas) | so_diario (só as publicações do Diário) | indisponivel; fora do ao vivo vem motivo (portal_indisponivel | bloqueado | limite_diario | nao_suportado; limite_diario = a cota diária de consultas acabou: não adianta repetir antes de retoma_em, a próxima 00:00 UTC) e, quando houver, publicacoes_diario {data, tipo, orgao} mais novas que o andamento guardado.

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": "processos_andamento"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_idade_horasNo
incluir_detalhesNo
numeros_processoYes
limite_movimentacoesNo

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.2/5.0
Behavior5/5

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

Far beyond the annotations' readOnly/idempotent profile, it discloses the async job contract (job_id + polling via processos_get_resultado), per-item status values and their meanings (nao_encontrado vs segredo_de_justica vs migrado vs rate_limited/captcha_required), and the freshness model (ao_vivo/cache/so_diario/indisponivel) with motivo and retoma_em for daily quota exhaustion. It explicitly warns that access failures do not mean the case doesn't exist and that aviso must be read before concluding non-existence — exactly the behavioral context annotations cannot carry. The openWorldHint=false annotation is arguably generous given live portal reads, but the enumerated court set justifies it.

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

Conciseness3/5

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

It is front-loaded correctly, starting with purpose before edge cases, and nearly every clause carries real information. However it is one dense run-on paragraph mixing batching limits, job flow, and a dozen status codes; splitting statuses and freshness into separate sentences or a short list would make it far faster to parse.

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 carries the full return-shape burden and does so thoroughly — capa fields, movement ordering, per-item status, frescor, motivo, publicacoes_diario. The gap is on the input side: three optional tuning parameters are never explained, which for a 4-parameter tool leaves a real hole.

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 coverage is 0%, so the description must explain all 4 parameters; it only covers numeros_processo (via the 25-per-call and 5-direct-response limits) and leaves max_idade_horas, incluir_detalhes and limite_movimentacoes completely unaddressed. An agent cannot tell from this text what max_idade_horas does relative to the cache/frescor model or how incluir_detalhes changes the payload.

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?

The description opens with a specific verb+resource: fetch the 'ANDAMENTO' for a case by its NUMBER from the court's public consultation, and enumerates exactly what is returned (capa with classe/assunto/foro/situação, movimentações newest-first, ultima_movimentacao). It also implicitly distinguishes itself from number-less siblings (processos_buscar_por_nome, cpf_processos) by insisting on 'pelo NÚMERO'.

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?

It gives concrete operational guidance: up to 25 numbers per call, direct response for up to 5 (up to 2 for slow courts), and job-based flow above that, plus an explicit redirect to datajud_acompanhar_processos for nao_suportado courts. It stops short of stating when a caller should pick cpf_processos/processos_buscar_por_nome instead of a known case number, so the when-not boundary is only implied.

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.