Skip to main content
Glama

Alugar ou Comprar — MCP Server

calculate_cet

Calcula o CET (Custo Efetivo Total) anual de um financiamento imobiliário, incluindo juros, seguros MIP/DFI e taxas administrativas. Aceita os mesmos parâmetros da simulação comprar vs alugar.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cetPctNoCET (Custo Efetivo Total) anual informado (%)
itbiPctNoITBI (% do valor do imóvel)
prazoAnosNoPrazo do financiamento em anos
seguroPctNoSeguro anual do financiamento (% do valor do imóvel)
trHistoryNoSérie mensal de TR (% a.m.), ex: [0.0052, 0.0048, ...]
entradaPctNoPercentual de entrada (%)
inflacaoPctNoInflação anual esperada (%)
trMensalPctNoTaxa mensal de referência TR (%) para correção do saldo devedor
valorImovelYesValor do imóvel (R$)
iptuAnualPctNoIPTU anual (% do valor do imóvel)
aluguelMensalYesAluguel mensal inicial (R$)
fgtsDisponivelNoSaldo do FGTS disponível para entrada ou amortização (R$)
rentIncreasePctNoReajuste anual do aluguel (%)
spreadOverTRPctNoSpread anual sobre a TR quando indexer = TR_PLUS_SPREAD (%)
financingIndexerNoIndexador do financiamento: FIXA, TR ou TR_PLUS_SPREAD
insuranceMonthlyNoSeguro MIP/DFI mensal fixo em R$
amortizationSystemNoSistema de amortização (PRICE ou SAC)
taxaValorizacaoPctNoTaxa anual de valorização do imóvel (%)
custosManutencaoPctNoCustos anuais de manutenção (% do valor do imóvel)
custoOportunidadePctNoRendimento anual alternativo do capital (%)
tempoPermanenciaAnosNoHorizonte de permanência em anos
amortizacaoExtraMensalNoAmortização extra mensal (R$)
taxasTransacaoVendaPctNoTotal de taxas de transação de venda (% do valor do imóvel)
taxasTransacaoCompraPctNoTotal de taxas de transação de compra (% do valor do imóvel)
administrativeFeeMonthlyNoTaxa administrativa fixa mensal em R$
taxaAdministrativaMensalNoTaxa administrativa mensal do banco (R$)
rendaExtraMensalInvestidaNoRenda extra mensal investida pelo comprador (R$)
condominioMensalPctOfValueNoCondomínio mensal (% do valor do imóvel)
taxaFinanciamentoNominalPctNoTaxa de juros nominal anual do financiamento (%)
amortizacaoExtraordinariaMensalNoAmortização extraordinária mensal (R$)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / amortizacaoExtraordinariaMensal
      Added value: +{
      +  "description": "Amortização extraordinária mensal (R$)",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / rendaExtraMensalInvestida
      Added value: +{
      +  "description": "Renda extra mensal investida pelo comprador (R$)",
      +  "minimum": 0,
      +  "type": "number"
      +}
  2. Changed4 schema fields changed
    • addedInput schema / properties / amortizacaoExtraMensal
      Added value: +{
      +  "description": "Amortização extra mensal (R$)",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / fgtsDisponivel
      Added value: +{
      +  "description": "Saldo do FGTS disponível para entrada ou amortização (R$)",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / taxaAdministrativaMensal
      Added value: +{
      +  "description": "Taxa administrativa mensal do banco (R$)",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / trMensalPct
      Added value: +{
      +  "description": "Taxa mensal de referência TR (%) para correção do saldo devedor",
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "number"
      +}
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full burden of behavioral disclosure. It states what is calculated but does not mention return format, side effects, prerequisites, or whether it is read-only. For a calculation tool, this is acceptable in terms of side effects, but the absence of any output description leaves the agent guessing about the result structure.

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?

The description is two sentences, front-loaded with the core purpose and a brief inclusion list. It wastes no words and is appropriately concise for a calculator tool.

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?

Given the 30-parameter complexity and no output schema or annotations, this description is too thin. It does not explain what the tool returns, any dependencies between parameters, or how the CET calculation differs from other calculations. The completeness is low; the description only covers the basic purpose.

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 100%, so all 30 parameters are already documented. The description adds no specific parameter details beyond the general note about accepting same parameters as buy vs rent, which is not additional meaning for individual params. Baseline 3 applies because the schema handles parameter semantics adequately.

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 names a specific verb ('Calcula') and resource ('CET anual de um financiamento imobiliário'), listing included components (juros, seguros MIP/DFI, taxas administrativas). It is clear what the tool computes, though it does not explicitly contrast with sibling tools like simulate_buy_vs_rent, so it loses a point for not differentiating itself.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool versus the many siblings. The only hint is 'Aceita os mesmos parâmetros da simulação comprar vs alugar', which implies a relationship but does not state conditions for choosing this tool over alternatives. No exclusions or when-not-to-use advice.

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