Skip to main content
Glama

datajud_localizar_processo

Read-onlyIdempotent

Localiza em que instância o processo está agora, só pelo número CNJ: consulta a origem e o tribunal superior (TRT → TST, TJ/TRF → STJ). O tribunal de origem é derivado do número e os dois índices são consultados em paralelo. Retorna instancias[] ordenadas (1º grau → 2º grau → superior) com tribunal, grau, classe, órgão julgador e último movimento, instancia_mais_recente e consultas[] (status de cada índice consultado). Consulta processual trabalhista no TST: o processo que sobe ao TST (recurso de revista, AIRR) MANTÉM o número do TRT de origem, então consultar só o TRT nunca mostra a fase no TST. Se um índice falhar, consultas[] traz o erro dele e o outro resultado continua valendo. Sem nenhum resultado, inclui ausencia (mesmo diagnóstico de datajud_get_processo). O STF não está no DataJud. Para a timeline completa de uma instância, use datajud_movimentos com o tribunal dela.

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

Input Schema

NameRequiredDescriptionDefault
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. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world behavior, but the description adds genuinely new operational context: two indexes are queried in parallel, partial failure is tolerated and surfaced in `consultas[]`, and a domain quirk (a case that rises to TST keeps the TRT number, so querying only the TRT hides the TST phase). It falls short of 5 only because it does not explain what `force_refresh` changes about caching or cost.

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?

The most important line — what the tool does and its scope — is front-loaded, and each subsequent sentence carries non-redundant information (return shape, TST quirk, partial failure, STF exclusion, alternative tool). It is dense and long-ish, but no sentence is filler.

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?

There is no output schema, and the description compensates well by naming the returned fields (`instancias[]` ordering, `instancia_mais_recente`, `consultas[]`, `ausencia`). The remaining gap is `force_refresh` and the exact expected format of the CNJ number, which an agent still has to guess.

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 full burden. It clarifies `numero_processo` as a CNJ number and implies the tribunal is derived from it, but `force_refresh` is never mentioned, leaving one of two parameters completely undefined in both schema and description.

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 and resource ('Localiza em que instância o processo está agora') plus the exact input constraint ('só pelo número CNJ'), then concretely states which indexes are consulted (origem + tribunal superior, TRT→TST / TJ/TRF→STJ). It is clearly distinguishable from datajud_movimentos, which it names for the timeline use case, and from datajud_get_processo, whose 'ausencia' diagnostic it references.

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

Usage Guidelines5/5

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

It states the prerequisite input (only the CNJ number), explains the failure mode routing, and explicitly routes the agent elsewhere for a different need: 'Para a timeline completa de uma instância, use datajud_movimentos com o `tribunal` dela.' It also warns of a limitation that would otherwise mislead (STF not in DataJud) and of the TST numbering quirk.

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.