Skip to main content
Glama

Atualizar cálculo homologado (execução: pagamentos e eventos)

calculo_atualizar

Update a liquidated labor calculation with execution-phase payments, fees, and costs. Validates PJe-Calc payment rules, runs liquidation on a copy, and returns summary and updated .PJC.

Instructions

Fase de execução: atualiza um cálculo LIQUIDADO (arquivo_pjc exportado depois de liquidar, ou id_calculo) com o bloco "execucao": dataAtualizacao, pagamentos (com a divisão entre crédito do reclamante, recolhimentos, outros débitos e débitos a cobrar), honorários e multas da execução, pensão alimentícia, custas da execução (fixas, autos e armazenamento), precatório ou RPV, cobrarEncargosIrpf. Todos os campos e exemplos em pjecalc://docs/modulos/execucao e em calculo_modelo_json (exemplos "execucao" e "execucao-pensao-custas"). Confere antes de importar as regras da tela de pagamento do PJe-Calc (MSG0125 a MSG0138, MSG0181, MSG0126, MSG0003), grava os eventos numa CÓPIA do cálculo, roda "Liquidar Atualização" (rateio e imputação do próprio PJe-Calc) e devolve o Resumo da Atualização (saldo por credor, total do reclamado, eventos), as verificações e o "-ATUALIZADO.PJC". O cálculo de origem não é alterado.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
destinoNoPasta dos arquivos -EXECUCAO.PJC e -ATUALIZADO.PJC (padrão: ao lado do arquivo de origem ou saida/).
iniciarNoInicia o PJe-Calc se estiver parado (padrão true).
execucaoYesBloco "execucao" (formato em calculo_modelo_json e no módulo execução).
id_calculoNoAlternativa: número do cálculo liquidado no PJe-Calc (é exportado e copiado).
arquivo_pjcNo.PJC do cálculo liquidado (exportado depois de liquidar).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.0-mcp.13

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses that the tool writes events into a COPY of the calculation, leaves the source unchanged, runs the PJe-Calc 'Liquidar Atualização' with rateio/imputação, performs validation checks against MSG rules, and returns the Resumo da Atualização plus '-ATUALIZADO.PJC'. This is rich behavioral context that an agent could not infer from the schema or annotations 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?

The purpose is front-loaded, and every sentence carries useful information (fields, docs, validation, copy behavior, return artifacts). However, the dense single-paragraph style with many parentheticals makes it less scannable than it could be, so it is not maximally concise.

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 complex write tool with no output schema, the description covers the input preconditions, the execution-phase behavior, the internal liquidation step, and the returned artifacts. It also directs the agent to pjecalc://docs/modulos/execucao and calculo_modelo_json for full field details, making it adequately complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the nested 'execucao' object is only a free-form map in the schema; the description compensates by enumerating its key subfields (dataAtualizacao, pagamentos with credit/recolhimento splits, honorários, multas, pensão, custas, precatório/RPV, cobrarEncargosIrpf) and pointing to concrete examples. This adds material meaning beyond the structured definition.

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 states a specific verb (atualiza) and resource (cálculo liquidado) and scopes it to the execution phase, with the required 'execucao' block. It distinguishes this from the liquidation step by noting it runs 'Liquidar Atualização' internally and returns '-ATUALIZADO.PJC', so an agent can tell it apart from calculo_liquidar and calculo_importar_pjc.

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 clearly states the phase context (execution phase) and input prerequisites: a liquidated calculation supplied either as an exported .PJC or an id_calculo. It does not explicitly name when-not scenarios or alternative sibling tools, so it falls short of full routing guidance.

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