Skip to main content
Glama
OpenMonetis MCP

OpenMonetis MCP

by Welington98

Desfazer antecipação

undo_installment_anticipation
Destructive

Reverts an installment anticipation and restores the affected installments to their original periods; requires confirmation to apply the change.

Instructions

Desfaz uma antecipação, devolvendo as parcelas ao período original. Exige confirm: true.

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": {
      "seriesId": "<seriesId>",
      "anticipationId": "<anticipationId>",
      "installmentIds": "<installmentIds>"
    },
    "name": "undo_installment_anticipation"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
seriesIdYes
anticipationIdYes
installmentIdsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the danger profile is known. The description adds real value beyond that by saying exactly what is mutated (installments are returned to their original period) and by flagging the confirm gate. It stops short of disclosing whether the operation deletes the anticipation record, whether it can be partially applied (installmentIds is a subset list), or what happens if confirm is omitted — and the schema marks confirm as optional with no default, which sits awkwardly with 'Exige'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, effect stated first, precondition second, with zero filler. Nothing could be removed without losing information.

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

Completeness2/5

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

For a destructive, non-idempotent, four-parameter mutation with no output schema and no parameter documentation, the definition is thin. It never states whether the undo is itself reversible, what error surfaces on an invalid or already-undone anticipation, or how the three UUID identifiers relate to one another.

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%, so the description carries full burden, yet it only explains `confirm` and leaves seriesId, anticipationId and installmentIds completely undocumented. The critical question — whether installmentIds may be a subset of the anticipation or must cover all of it — is left entirely unaddressed, which matters for a destructive call.

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?

Names a specific verb and resource ('Desfaz uma antecipação') and states the concrete effect ('devolvendo as parcelas ao período original'), which clearly distinguishes it as the inverse of an anticipation action. It never names the forward tool (e.g. anticipate_installments) it undoes, so sibling differentiation is implied by the name rather than stated.

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?

The use case is inferable — call this to revert a previously created anticipation — and a precondition is stated ('Exige confirm: true'). However, there is no guidance on when the operation is permitted, what state the anticipation must be in, or what to do instead if the undo is not possible.

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