Finance
Simulación mensual paralela: amortización hipotecaria + impuesto predial/seguro/HOA/mantenimiento frente a alquiler + seguro de inquilino; el inquilino invierte la entrada y el ahorro mensual al tipo de oportunidad; entrega NPV anual, año de equilibrio, TIR de los flujos diferenciales, escudo fiscal SALT y un gráfico de tornado ±20%.
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'http://127.0.0.1:3003/es/api/tools/rent-vs-buy-total-cost-of-ownership-mortgage-tax-insurance-maintenance-irr-tutor' \
-H 'Content-Type: application/json' \
-d '{"homePrice":450000,"downPaymentPct":20,"mortgageRatePct":6.5,"termYears":30,"propertyTaxRatePct":1.1,"insuranceAnnual":2200,"hoaMonthly":0,"maintenancePct":1,"appreciationPct":3.5,"sellingCostPct":6,"closingCostPct":3,"rentMonthly":2400,"rentGrowthPct":3,"renterInsuranceAnnual":180,"investmentReturnPct":5,"marginalTaxRatePct":24,"saltCap":40400,"standardDeduction":31500,"analysisYears":10}'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST http://127.0.0.1:3003/es/api/tools/rent-vs-buy-total-cost-of-ownership-mortgage-tax-insurance-maintenance-irr-tutor| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| homePrice | number | Sí | — |
| downPaymentPct | number | No | — |
| mortgageRatePct | number | No | — |
| termYears | number | No | — |
| propertyTaxRatePct | number | No | — |
| insuranceAnnual | number | No | — |
| hoaMonthly | number | No | — |
| maintenancePct | number | No | — |
| appreciationPct | number | No | — |
| sellingCostPct | number | No | — |
| closingCostPct | number | No | — |
| rentMonthly | number | Sí | — |
| rentGrowthPct | number | No | — |
| renterInsuranceAnnual | number | No | — |
| investmentReturnPct | number | No | — |
| marginalTaxRatePct | number | No | — |
| saltCap | number | No | — |
| standardDeduction | number | No | — |
| analysisYears | number | No | — |
Resultado HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-rent-vs-buy-total-cost-of-ownership-mortgage-tax-insurance-maintenance-irr-tutor": {
"name": "rent-vs-buy-total-cost-of-ownership-mortgage-tax-insurance-maintenance-irr-tutor",
"description": "Simulación mensual paralela: amortización hipotecaria + impuesto predial/seguro/HOA/mantenimiento frente a alquiler + seguro de inquilino; el inquilino invierte la entrada y el ahorro mensual al tipo de oportunidad; entrega NPV anual, año de equilibrio, TIR de los flujos diferenciales, escudo fiscal SALT y un gráfico de tornado ±20%.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=rent-vs-buy-total-cost-of-ownership-mortgage-tax-insurance-maintenance-irr-tutor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "rent-vs-buy-total-cost-of-ownership-mortgage-tax-insurance-maintenance-irr-tutor",
"arguments": {
"homePrice": 450000,
"downPaymentPct": 20,
"mortgageRatePct": 6.5,
"termYears": 30,
"propertyTaxRatePct": 1.1,
"insuranceAnnual": 2200,
"hoaMonthly": 0,
"maintenancePct": 1,
"appreciationPct": 3.5,
"sellingCostPct": 6,
"closingCostPct": 3,
"rentMonthly": 2400,
"rentGrowthPct": 3,
"renterInsuranceAnnual": 180,
"investmentReturnPct": 5,
"marginalTaxRatePct": 24,
"saltCap": 40400,
"standardDeduction": 31500,
"analysisYears": 10
}
}
}¿Dudas o problemas? Contacta con [email protected]