Skip to main content
Glama

Conector Juspronto

Últimas movimentações

ultimas_movimentacoes
Read-onlyIdempotent

O que aconteceu no acervo (ou num processo) nos últimos N dias: andamentos em ordem cronológica inversa, com o processo de cada um. Um evento por ato, agrupado antes de paginar, com idsPorFonte (ID, lista de IDs ou null por fonte), tpuCodigo e teor (disponivel, teorEventoId, status). Use para "alguma novidade?", "o que movimentou esta semana?". Também indica teorDisponivel e teorEventoId: leia com detalhe_processo(processoId, teorEventoId), com fonte e data. Descrições longas vêm truncadas. Cada leitura tem teto de 2.000 linhas mais sentinela; ao atingi-lo, truncado é true, totalExato é false e total é apenas o mínimo conhecido. O aviso pede reduzir desdeDias. O cursor continua depois do último ato completo entregue. Dias incompletos são adiados; se nem um dia couber, a consulta para com aviso e sem cursor. Devolve total e proximoCursor quando há mais: chame de novo com cursor igual a ele. A primeira página traz também intimacoes: as do DJEN em pastas do escritório no período, com totalIntimacoes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ultimas_movimentacoes"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNoproximoCursor da resposta anterior, para a página seguinte (vale por 1 hora; use com os mesmos filtros)
limiteNoMáximo de resultados por página (padrão 20, teto 50)
desdeDiasNoJanela em dias para trás (padrão 7, máximo 90)
processoIdNoRestringir a um processo

Output Schema

NameRequiredDescriptionDefault
avisoNo
totalNo
frescorNo
temMaisNo
mensagemNo
truncadoNo
janelaDiasNo
totalExatoNo
avisoConteudoNo
movimentacoesNo
proximoCursorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "aviso": {
      +      "type": "string"
      +    },
      +    "avisoConteudo": {
      +      "type": "string"
      +    },
      +    "frescor": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "andamentosAte": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "atosDepoisDosAutos": {
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "andamentoId": {
      +                    "type": "string"
      +                  },
      +                  "data": {
      +                    "type": "string"
      +                  },
      +                  "descricao": {
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "autosAte": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "aviso": {
      +              "type": "string"
      +            },
      +            "djenAte": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "truncado": {
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "janelaDias": {
      +      "type": "number"
      +    },
      +    "mensagem": {
      +      "type": "string"
      +    },
      +    "movimentacoes": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "cnjFormatado": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "data": {
      +            "type": "string"
      +          },
      +          "descricao": {
      +            "type": "string"
      +          },
      +          "eventoId": {
      +            "type": "string"
      +          },
      +          "pasta": {
      +            "anyOf": [
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "processoId": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "proximoCursor": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "temMais": {
      +      "type": "boolean"
      +    },
      +    "total": {
      +      "type": "number"
      +    },
      +    "totalExato": {
      +      "type": "boolean"
      +    },
      +    "truncado": {
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "proximoCursor da resposta anterior, para a página seguinte (vale por 1 hora; use com os mesmos filtros)",
      +  "type": "string"
      +}
    • changedInput schema / properties / limite / description
      Previous value: -"Máximo de resultados (padrão 20, teto 50)"New value: +"Máximo de resultados por página (padrão 20, teto 50)"
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Far beyond the readOnly/idempotent annotations, it discloses a 2,000-line read ceiling with sentinela, what truncado/totalExato/total mean when hit, the remedy (reduce desdeDias), cursor semantics tied to the last complete act, the deferral of incomplete days, and the hard-stop-without-cursor case. It also warns that the first page bundles intimacoes (DJEN) with totalIntimacoes and that long descriptions arrive truncated, which an agent could not infer from the annotations.

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 with purpose then usage, which is good, but the middle is a run-on chain of parenthetical fragments ("com idsPorFonte (ID, lista de IDs ou null por fonte), tpuCodigo e teor (disponivel, teorEventoId, status)") that reads as field enumeration rather than guidance. Several clauses could be split or cut without losing meaning.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a paginated, truncation-prone read with an output schema present, the description covers everything an agent needs to call it and to react correctly to truncated results or a missing cursor. Any remaining detail about return field shapes is already carried by the output schema.

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 coverage is 100%, so the baseline is 3, but the description adds real semantics: cursor advances only past complete acts, a new call must pass cursor equal to proximoCursor, and desdeDias is the knob to shrink when the line cap is hit. processoId and limite are only implied ("ou num processo"), leaving the added value concentrated on cursor and window behavior.

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?

"O que aconteceu no acervo (ou num processo) nos últimos N dias: andamentos em ordem cronológica inversa" names a specific resource (movements/andamentos), a scope (whole acervo or one processo) and an ordering. It also positions itself against detalhe_processo, which is where the agent must go for full text, so the agent can distinguish it without opening the schema.

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 trigger phrasings ("alguma novidade?", "o que movimentou esta semana?") and an explicit hand-off rule to detalhe_processo(processoId, teorEventoId) when full text is needed. It does not state when to prefer it over other recency-oriented siblings such as linha_do_tempo or processo_status, so the guidance is clear but not exhaustive.

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.

Resources