Skip to main content
Glama

datajud_movimentos

Read-onlyIdempotent

Consulta movimentações por número CNJ e tribunal. Retorna tribunal, numeroProcesso e instancias[] (timeline e metadados). Só sem resultados inclui ausencia. Ideal para detectar movimentação nova. Quando instancias está vazio, ausencia traz o mesmo diagnóstico de datajud_get_processo (motivo provável + explicação). Com resultados, esse bloco não é retornado. Quando o 2º grau registra recurso ao tribunal superior (recurso de revista/AIRR → TST, recurso especial → STJ), inclui instancia_superior com o próximo passo: o processo mantém o mesmo número lá.

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

Input Schema

NameRequiredDescriptionDefault
tribunalYes
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. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower, yet the description still adds meaningful conditional-output behavior: `ausencia` appears only on empty results, and `instancia_superior` appears when a superior-court appeal is registered. It omits what force_refresh does behaviorally and gives no sense of result volume or truncation.

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 operation, then conditional return behavior, with no filler sentences. The passage explaining that `ausencia` mirrors datajud_get_processo's diagnosis is slightly roundabout but carries real routing information.

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 burden of explaining returns and does so at the envelope level (tribunal, numeroProcesso, instancias[] with timeline and metadata, plus the conditional ausencia and instancia_superior blocks). The internal shape of instancias[] and any pagination or volume limits are left unspecified, which leaves a residual gap.

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 description coverage is 0% across 3 parameters, so the description must compensate and largely does not: it implies numero_processo is a CNJ number and tribunal identifies the court, but gives no format guidance (digits-only? mask?), no enum semantics, and never mentions force_refresh at all. Two of three parameters remain semantically undocumented.

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?

States a specific verb and resource ("Consulta movimentações") plus the two required keys (número CNJ e tribunal), and describes the returned envelope (tribunal, numeroProcesso, instancias[]). It references the sibling datajud_get_processo for the diagnosis path but never states how this tool's purpose differs from that sibling's core lookup, which keeps it short of a 5.

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?

"Ideal para detectar movimentação nova" gives one concrete use case, which is real guidance rather than pure implication. However, there is no explicit when-not to use it, no statement of how it relates to datajud_get_processo or datajud_search, and no prerequisites (e.g., that the process must already be locatable by CNJ number).

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.