Skip to main content
Glama

Atualizar débito

debt_calculate
Read-onlyIdempotent

Atualiza um débito parcela por parcela com os índices oficiais do Banco Central: débito do contrato (índice, juros e multa do contrato), juros legais do art. 406 do CC antes e depois da Lei 14.905/2024, crédito trabalhista (TST, ADC 58), condenação da Fazenda Pública (EC 113/2021) e cumprimento de sentença (art. 523 do CPC). Aceita pagamentos parciais ou em atraso. Devolve a memória de cálculo de cada parcela, os totais, as premissas e, se faltarem vencimentos depois da última parcela, um aviso em notice.

Input Schema

NameRequiredDescriptionDefault
regimeYescivil (nulo): débito entre particulares; labor: crédito trabalhista, pelo critério do TST; public_treasury: condenação da Fazenda Pública (EC 113/2021).
filingDateYesAjuizamento da reclamação trabalhista; obrigatório no regime labor.
enforcementYestrue no cumprimento de sentença sem pagamento voluntário em 15 dias: acrescenta multa e honorários de 10% sobre o débito (art. 523, § 1º, do CPC).
finePercentYesMulta moratória do contrato, em %. Nulo se não houver.
installmentsYes
interestRuleYescontract: juros do contrato (monthlyInterestPercent); legal: juros legais do art. 406 do CC (sem taxa no contrato, indenização, condenação); none: sem juros. Nulo: os do contrato, se houver taxa.
referenceDateYesData do cálculo, AAAA-MM-DD; em geral, a DATA LOCAL do contexto.
treasuryNatureYesRegime public_treasury: general (Tema 810 do STF), pension (benefício previdenciário, Tema 905 do STJ) ou tax (indébito tributário). Nulo: general.
correctionIndexYesÍndice do contrato ou do título; sem índice, IPCA (art. 389, parágrafo único, do CC). none só se a pessoa pedir sem correção. Ignorado nos regimes labor e public_treasury, que têm índices próprios.
interestStartDateYesInício dos juros quando não é cada vencimento: citação (art. 405 do CC) ou evento danoso (Súmula 54 do STJ). Nulo: cada vencimento.
laborPreJudicialIndexYesRegime labor: índice antes do ajuizamento, depois de 29/08/2024. Nulo: IPCA-E (TST).
monthlyInterestPercentYesJuros de mora do contrato, % ao mês. Nulo se o contrato não fixar.
legalInterestBefore2024YesJuros legais antes de 30/08/2024: selic (STJ, Tema 1.368) ou one_percent (1% ao mês, só se o título ou a pessoa fixarem). Nulo: selic.
correctionIndexBefore2024YesÍndice até 08/2024 quando o título ou a tabela do tribunal usava outro antes do IPCA da Lei 14.905/2024 (ex.: INPC). Nulo: o mesmo de correctionIndex.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The description goes beyond the readOnly/idempotent annotations by disclosing the return payload (per-installment memória de cálculo, totals, premises) and a conditional warning in 'notice' when due dates are missing after the last installment. It also states that partial and late payments are handled, which affects the calculation behavior. No error or rate-limit behavior is described, but the safety profile is already fully covered by annotations.

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?

Four dense sentences, front-loaded with the core action and regime scope, followed by accepted input cases and the return shape. The legal citations are heavy but functional; nothing is gratuitous padding.

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 14 required parameters, seven enums and no output schema, the description compensates by describing the output (memória de cálculo, totals, premises, notice), which is otherwise unavailable to the agent. Combined with 93% schema coverage, an agent has what it needs to construct a call, though the routing against overlapping siblings remains unaddressed.

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 93%, so nearly every parameter already carries its own enum/meaning documentation, and the description adds little parameter-level detail beyond the regime list. The baseline of 3 applies: the schema, not the description, does the semantic work.

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 ('Atualiza um débito parcela por parcela') and enumerates the legal regimes it handles (contract, art. 406 CC, labor/TST, Fazenda Pública, art. 523 CPC), so an agent knows exactly what calculation it performs. It does not, however, name or distinguish itself from close siblings such as sentence_execution_calculate or labor_calculate, which overlap with the regimes it lists.

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?

'Aceita pagamentos parciais ou em atraso' plus the regime list gives clear context for when the tool applies, and the per-regime framing signals which inputs select which branches. There are no explicit exclusions or pointers to alternatives, so the agent must infer routing against siblings like sentence_execution_calculate.

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