Skip to main content
Glama

Alugar ou Comprar — MCP Server

max_price_from_rent

Calcula o preço máximo de imóvel compatível com um aluguel mensal máximo informado. Considera parcela de financiamento (PRICE), condomínio, IPTU, manutenção, seguros e custo de oportunidade da entrada. Retorna o preço máximo e o custo mensal estimado nos cenários atual, otimista (taxa -2%) e pessimista (taxa +2%).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
prazoAnosNoPrazo do financiamento em anos
seguroPctNoSeguro anual do imóvel (% do valor do imóvel)
entradaPctNoPercentual de entrada (%)
iptuAnualPctNoIPTU anual (% do valor do imóvel)
seguroMipDfiPctNoSeguro MIP/DFI anual (% do saldo devedor)
taxaJurosAnualPctNoTaxa de juros anual (%)
amortizationSystemNoSistema de amortização (PRICE ou SAC)
aluguelMensalMaximoYesAluguel mensal máximo que o usuário aceita pagar (R$)
condominioMensalPctNoCondomínio mensal (% do valor do imóvel)
custosManutencaoPctNoCustos anuais de manutenção (% do valor do imóvel)
custoOportunidadePctNoRendimento anual alternativo do capital (%)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/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 disclose considered cost components and the three scenario outputs. However, it mentions 'parcela de financiamento (PRICE)' while the schema's `amortizationSystem` parameter also supports SAC, inaccurately narrowing the described behavior and omitting a configurable option.

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 three compact sentences with no redundant information. The primary purpose is front-loaded, and each sentence adds a necessary layer: the calculation goal, the inputs considered, and the output scenarios.

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

Completeness4/5

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

Given the tool's complexity (11 parameters, no output schema), the description provides a solid high-level contract: purpose, key inputs, and the returned scenarios. It omits default-value assumptions and the SAC option, but the schema handles parameter definitions, so the description remains sufficient for correct invocation.

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 the individual parameters are already well documented. The description only restates the cost categories considered (condomínio, IPTU, manutenção, seguros, etc.) without adding new semantic detail beyond 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 clearly states the tool's specific verb ('Calcula') and resource ('preço máximo de imóvel compatível com um aluguel mensal máximo informado'). It also explains what the tool considers and returns, making it easily distinguishable from siblings like check_affordability or simulate_buy_vs_rent.

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?

Usage context is implied through the phrase 'compatível com um aluguel mensal máximo informado', but there is no explicit statement of when to use this tool versus alternatives, nor any exclusions or examples. The guidance is adequate but leaves the agent to infer the intended scenario.

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