Skip to main content
Glama

registrar_andamento

Registers a case update in a legal process and optionally closes an open deadline after explicit user confirmation, with every attempt logged for audit.

Instructions

Registra um andamento num processo e, opcionalmente, dá baixa num prazo. ESCREVE NA BASE.

Protocolo obrigatório: (1) chame com confirmar=false para validar e obter a prévia; (2) mostre a prévia ao usuário e peça confirmação; (3) só então chame de novo com os mesmos dados e confirmar=true. Toda chamada (prévia, recusa ou gravação) entra na trilha de auditoria com quem, quando e o quê. Andamentos não podem ser editados nem apagados por aqui.

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_cnj": "<numero_cnj>",
      "tipo": "<tipo>",
      "descricao": "<descricao>",
      "registrado_por": "<registrado_por>"
    },
    "name": "registrar_andamento"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoData do ato, AAAA-MM-DD. Padrão: hoje. Não aceita data futura.
tipoYesUm de: despacho, decisao, sentenca, peticao, audiencia, intimacao, citacao, acordo, outro.
confirmarNofalse = só valida e devolve a prévia, nada é gravado. true = grava. Só use true depois que o usuário aprovar a prévia explicitamente.
descricaoYesTexto do andamento, 10 a 2000 caracteres.
numero_cnjYesNúmero CNJ do processo.
registrado_porYesNome completo ou OAB do advogado que está registrando (precisa ser do escritório).
cumpre_prazo_idNoId do prazo aberto que este andamento cumpre (dá baixa no prazo).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the first call is a non-writing preview, that every call including previews and refusals is written to an audit trail with actor and timestamp, and that records are immutable afterwards. These are material facts an agent cannot infer from readOnlyHint=false / destructiveHint=false / idempotentHint=false alone.

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 action and the write warning, then a numbered protocol, then caveats — a well-ordered structure with no filler. The all-caps 'ESCREVE NA BASE' partially duplicates readOnlyHint=false and costs a little density, keeping it just under top marks.

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 two-stage mutation tool with an output schema and full annotation coverage, the description supplies the confirmation contract, audit implications, and immutability constraints — everything an agent needs to invoke it safely and correctly.

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 100%, so every parameter including confirmar, cumpre_prazo_id and data is already documented in the schema. The description reinforces the confirmar workflow ('chame de novo com os mesmos dados') but adds no syntax or format detail beyond the structured fields, so the baseline of 3 applies.

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?

States a concrete verb and resource ('Registra um andamento num processo') plus an optional secondary effect ('dá baixa num prazo'), and immediately flags that it writes to the database. It also delimits scope by declaring that andamentos cannot be edited or deleted here, which separates it from lookup tools like buscar_processo.

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 an explicit three-step operating protocol (preview with confirmar=false, show preview to the user, re-call with confirmar=true), which is real when-to-use guidance rather than just behavior. It implies when-not by excluding editing/deletion, but never names an alternative tool for those needs or spells out prerequisites such as office membership beyond what the schema says.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.