Skip to main content
Glama

Legal MCP (alternativa ao Jusbrasil)

processos_get_resultado

Read-onlyIdempotent

Polling de um job (de processos_buscar_por_nome/documento/obter_pecas, de um lote de datajud_acompanhar_processos (mesmo formato dele, com progress e paginacao), ou de um lote de processos_andamento acima de 5 números, ou de 2 da Justiça do Trabalho/TJCE/TRF1/TRF2/TRF4/TJSC/TJRS/TJMG/TJRJ/TRF5 — esse volta no formato do processos_andamento: total, encontrados, com_erro, itens[]). Retorna { status, progress, items[], errors[] }. status: queued|running|done|error. Quando 'done', items[] traz os processos (numero_cnj, partes, advogados/OAB, classe/assunto) prontos para enriquecer com datajud_*/djen_*. Continue chamando até 'done' (a busca é lenta). IMPORTANTE: um 'done' pode vir DEGRADADO, e nesse caso vem um bloco aviso — leia antes de usar os dados. vinculacao_nome: "nao_confirmada" significa que o resultado NÃO foi validado contra o nome buscado (não apresente como processo da pessoa sem conferir), e tribunais_inacessiveis lista portais que não responderam: isso NÃO quer dizer que o tribunal não tenha o processo. Resultado pronto fica disponível por 24 h; status: "expirado" (com reenviar: true) = o lote venceu ou não existe mais: envie os números de novo.

Bulk support: accepts job_ids for batched execution.

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": {
      "job_id": "<job_id>"
    },
    "name": "processos_get_resultado"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
paginaNo
job_idsNo
reenviar_errosNo
itens_por_paginaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / reenviar_erros
      Added value: +{
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / itens_por_pagina
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / pagina
      Added value: +{
      +  "type": "number"
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior5/5

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

Annotations only declare readOnly/idempotent/non-destructive, but the description adds substantial behavior: the 24-hour result lifetime, the full status lifecycle (queued|running|done|error, plus an undocumented 'expirado' state), the existence of a degraded 'done' with an `aviso` block, and the meaning of vinculacao_nome: 'nao_confirmada' — including the warning not to present such results as belonging to the searched person. It also pre-empts a likely misreading of `tribunais_inacessiveis`. This is exactly the context annotations cannot carry.

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

Conciseness2/5

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

One long run-on paragraph with deeply nested parentheses; it also spends words describing the response formats of the upstream tools rather than this tool's own contract. The genuinely critical warnings (aviso, expirado) appear only after a dense wall of text, hurting front-loading.

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

Completeness3/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 a reasonable job of documenting the return shape ({ status, progress, items[], errors[] }), the status values, and the fields inside items[]. However, for a paging-capable polling tool it never explains how to paginate a large result set, and several error/edge behaviors (what `errors[]` items look like, what reenviar_erros does) are left implicit.

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 coverage is 0% and all five parameters (job_id, pagina, itens_por_pagina, job_ids, reenviar_erros) are undocumented in the schema. The description only incidentally clarifies `job_ids` (bulk batched execution) and never explains pagination parameters — an agent has no way to know how to page through a large `items[]` or what units `pagina`/`itens_por_pagina` use. Most of the parameter surface remains guesswork.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action — polling the result of a job — and names the exact origin tools (processos_buscar_por_nome/documento/obter_pecas, datajud_acompanhar_processos batches, processos_andamento batches). It is distinguishable from those siblings because it is the retrieval half of an async pattern. It falls short of 5 because the opening sentence is buried in nested parentheticals, so the core verb+resource is harder to extract than it should be.

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 explicit operational guidance: keep calling until status is 'done' because search is slow, read the `aviso` block before using degraded results, and re-send numbers when status is 'expirado' with reenviar: true. It does not explicitly state when not to use this tool versus the sibling search tools, but the polling role makes that largely self-evident.

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.