Skip to main content
Glama

datajud_get_processo

Read-onlyIdempotent

Busca um processo pelo número único do CNJ (com ou sem máscara) em um tribunal. Retorna metadados + movimentações de cada instância encontrada. Quando não encontra, NÃO devolve só lista vazia: vem um bloco ausencia com o motivo provável (numero_invalido | tribunal_divergente | nao_publicado | carga_ausente) e a explicação. 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tribunalYes
numero_processoYes

TDQS

A4.1/5.0
Behavior5/5

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

The description adds valuable behavior beyond the readOnly/idempotent annotations: it discloses that a not-found result returns an `ausencia` block with specific reason codes rather than an empty list. It also warns that `nao_publicado` does not imply the process does not exist, which is critical for correct interpretation.

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

Conciseness5/5

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

The description is front-loaded with the primary action and then adds only high-value behavioral details. Every sentence earns its place, especially the explanation of the `ausencia` block and the secrecy-of-justice caveat, without excessive padding.

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?

Without an output schema, the description does a good job summarizing returns: metadata, movements, and the absence block with reason codes. It does not mention authentication requirements or pagination, but given the focused lookup nature of the tool and the readOnly annotations, the description is substantially 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. It adds useful meaning to `numero_processo` by stating it is the unique CNJ number and accepts masked/unmasked formats. The `tribunal` parameter is left to the enum, but the schema already enumerates valid values, so the main formatting ambiguity is addressed.

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 clearly states the verb and resource: it looks up a process by the unique CNJ number and returns metadata plus movements, which is specific and actionable. It does not explicitly differentiate from siblings like datajud_search or datajud_movimentos, but the unique-number lookup makes the purpose distinct enough.

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

Usage Guidelines3/5

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

The intended usage is implied: use this tool when you have a CNJ number and a specific tribunal. It provides post-query guidance about reading the `ausencia` block before retrying elsewhere, but it does not explicitly state when to choose this over sibling tools like datajud_search or datajud_movimentos.

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.

TDQS

A3.9/5.0
Disambiguation5/5

Each tool has a distinct purpose with clear descriptions. The DataJud-specific tools (datajud_*) are well-separated from platform tools (authenticate, connect, marketplace, etc.), and even similar tools like datajud_get_processo and datajud_movimentos are differentiated by their scope.

Naming Consistency2/5

Naming conventions are inconsistent: some tools are plain verbs (authenticate, connect), others are nouns (marketplace, toolkit_info), and the datajud_ prefix is applied to a mix of noun and verb phrases (datajud_movimentos vs datajud_get_processo). This lacks a predictable pattern.

Tool Count4/5

With 10 tools, the count is within the typical range for a server. However, the inclusion of generic platform tools alongside domain-specific DataJud tools slightly dilutes the focus, though each tool serves a distinct role.

Completeness4/5

The DataJud domain coverage is adequate for common operations (login, search, fetch details, movements, raw query). The platform tools also cover essential actions like marketplace management and bug reporting. Minor gaps exist (e.g., no tool for listing available courts), but overall it's functional.