Skip to main content
Glama

Moedux — Brazilian Personal Finance & Salary Calculator

calcular_financiamento

Parcela de um financiamento com juros fixos: calcula pela Tabela Price a parcela, o total pago, os juros e a renda mínima que a parcela exige (até 30% da renda familiar), a partir do valor do imóvel, da entrada, do prazo em anos e da taxa anual do contrato. Use quando o usuário perguntar quanto fica a parcela de um financiamento de imóvel ou de veículo, quanto vai pagar de juros ou se a parcela cabe no orçamento. Informe o valor do bem e o prazo em anos; entrada é opcional (0 sem entrada) e a taxa anual é opcional (padrão 10,75% ao ano, a mesma do exemplo da calculadora — troque pela taxa do contrato). Não é consórcio, que não tem juros e cobra taxa de administração: para consórcio use simular_consorcio; para empréstimo sem bem use simular_emprestimo_pessoal. Devolve a parcela, o total, os juros e o link da calculadora com os números 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": {
      "valor_imovel": "<valor_imovel>",
      "prazo_anos": "<prazo_anos>"
    },
    "name": "calcular_financiamento"
  }
}

Input Schema

NameRequiredDescriptionDefault
entradaNoQuanto a pessoa paga à vista, em reais. Padrão: 0
prazo_anosYesPrazo do contrato em anos
taxa_anualNoTaxa de juros nominal do contrato em % ao ano. Padrão: 10.75 (exemplo da calculadora)
valor_imovelYesValor total do bem, em reais

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description must carry the whole burden. It does disclose the method (Price), the derived affordability rule (parcela must not exceed 30% of family income), the defaults (0 entrada, 10.75% a.a., flagged as the calculator's example rate), and the returned values. It doesn't cover edge-case behavior, such as what happens if entrada exceeds valor_imovel or if the result would be an invalid financing, which is the only remaining gap.

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 definition is well front-loaded: computation, then use cases, then inputs, then exclusions, then outputs. Dense and useful, but slightly longer than necessary — the consórcio explanation ('não tem juros e cobra taxa de administração') is extra detail beyond what an agent needs in order to choose.

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 stateless calculation tool with four parameters and no output schema, the description covers everything needed: inputs and their defaults, the formula family, the business rule applied, the return payload (including the prefilled-link behavior), and where to go for related needs. Nothing required in order to call it 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 would be 3. The description adds some meaning: it restates which inputs are required, confirms '0 sem entrada' as the interpretation of the default, and tells the agent to replace 10.75% with the contract rate — practical guidance the schema does not give. The rest of the parameter prose is only repetition of the schema.

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 names a specific verb+resource in Portuguese — 'calcula pela Tabela Price a parcela, o total pago, os juros e a renda mínima' — and explicitly separates itself from 'simular_consorcio' and 'simular_emprestimo_pessoal' in the sibling list. An agent can tell immediately that this is the Price-table real-estate/vehicle financing calculator, not a consortium or personal loan simulator.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

This gives explicit when-to-use triggers: 'quanto fica a parcela', 'quanto vai pagar de juros', 'se a parcela cabe no orçamento'. It also names two exclusions and routes to the correct alternative for each case (consórcio, then empréstimo pessoal), which is exactly the when/when-not/alternatives structure needed.

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.