Skip to main content
Glama

Moedux — Calculadoras financeiras e trabalhistas do Brasil

calcular_quitar_dividas

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.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the edge-case behavior that an installment below the monthly interest yields the required minimum installment instead of a misleading term, and it enumerates the returned metrics plus a pre-filled calculator link. It does not cover assumptions such as fixed interest over time or rounding, which are minor gaps for a deterministic calculator.

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 information is front-loaded with a colon introducing the input-to-output mapping, followed by trigger conditions and edge-case behavior. It is dense but every sentence carries an actionable fact; the only weakness is that it is a single long paragraph with the calculator-link detail tacked on at the end.

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?

There is no output schema and no annotations, so the description must explain both the return values and safety/mutation behavior — and it does, listing every returned metric, the degenerate case, and the extra calculator link. Nothing an agent needs in order to call this three-parameter tool correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning beyond the field labels: it frames the three inputs as a coherent scenario and implies the crucial relationship that parcela must exceed the monthly interest charge on saldo, which is exactly what the fallback behavior enforces. That relational context is not in the schema.

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 states a precise verb and resource with concrete inputs and outputs: given saldo, juros mensal and parcela, it returns the number of months to zero the balance, total paid, interest portion and the minimum viable parcela. It is far more specific than a name restatement. It never names or routes against siblings such as calcular_pagar_minimo_cartao or simular_emprestimo_pessoal, so sibling differentiation is absent.

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 gives explicit trigger conditions in user-intent language: 'quanto tempo leva para quitar', 'em quantos meses a dívida acaba', 'quanto vai pagar de juros no total', 'se vale aumentar a parcela'. However, there are no exclusions or named alternatives telling the agent when another calculator is the better choice.

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