Skip to main content
Glama

Moedux — Finanças Brasileiras

calcular_quitar_dividas

Read-onlyIdempotent

Em quantos meses uma dívida acaba e quanto ela custa até lá: com o saldo devedor, os juros ao mês e a parcela que a pessoa consegue pagar, devolve quantos meses faltam para o saldo zerar, o total pago, quanto disso é só de juros e a parcela mínima que faz o saldo cair. Use quando o usuário perguntar quanto tempo leva para quitar uma dívida, em quantos meses a dívida acaba, quanto vai pagar de juros no total ou se vale aumentar a parcela. Se a parcela não cobrir os juros do mês, devolve a parcela que precisa ser batida em vez de um prazo falso. Devolve também o link da calculadora com os números já preenchidos.

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": {
      "saldo": "<saldo>",
      "juros_mensal": "<juros_mensal>",
      "parcela": "<parcela>"
    },
    "name": "calcular_quitar_dividas"
  }
}

Input Schema

NameRequiredDescriptionDefault
saldoYesSaldo devedor em reais
parcelaYesQuanto a pessoa paga por mês, em reais
juros_mensalYesJuros ao mês em % (ex.: 10 para 10% ao mês; o rotativo do cartão costuma ficar acima de 10%)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered; the description goes further by disclosing an important edge-case behavior — when the payment does not cover monthly interest it returns the required payment instead of a misleading term. It also discloses that a pre-filled calculator link is returned, which is beyond what the annotations say. It does not discuss rounding or precision of the results.

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?

It is front-loaded with the input-output contract, then usage triggers, then edge-case behavior, then the return link — a sensible order. A few phrases restate each other ("quanto tempo leva para quitar" and "em quantos meses a dívida acaba"), but they are serving as distinct query-matching hooks rather than pure filler.

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 three-parameter, read-only calculator with no output schema, the description fully specifies the return values (months to zero, total paid, interest portion, minimum payment that reduces balance, link) and the degenerate case. An agent can call it and interpret the result without any additional documentation.

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 coverage is 100% and the schema already explains saldo (balance in reais), parcela (monthly payment in reais) and juros_mensal (percent per month, with the credit-card rotativo example). The description restates these inputs in narrative form and adds no new units, constraints or formats beyond what the schema provides, so the baseline of 3 applies.

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?

The description opens with a concrete verb+resource pair (compute payoff horizon and cost of a debt) and immediately enumerates the three inputs and the four outputs, so an agent knows exactly what it gets back. It does not name any sibling calculator, so the distinction from e.g. calcular_pagar_minimo_cartao or simular_emprestimo_pessoal is only implied by the specific input set rather than stated outright.

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?

There is explicit when-to-use guidance: "Use quando o usuário perguntar quanto tempo leva para quitar uma dívida, em quantos meses a dívida acaba, quanto vai pagar de juros no total ou se vale aumentar a parcela", covering four concrete user intents. No exclusions or named alternatives are given, so it stops short of a 5.

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.