Finance
Строит полную таблицу ипотечных платежей, сравнивает сценарии досрочных платежей и показывает экономию процентов
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/mortgage-amortization-calculator' \
-H 'Content-Type: application/json' \
-d '{"principal":300000,"annualInterestRate":6.5,"termYears":30,"extraMonthlyPayment":250,"lumpSumPayment":0,"lumpSumMonth":0}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/mortgage-amortization-calculator| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| principal | number | Да | — |
| annualInterestRate | number | Да | — |
| termYears | number | Да | — |
| extraMonthlyPayment | number | Нет | — |
| lumpSumPayment | number | Нет | — |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-mortgage-amortization-calculator": {
"name": "mortgage-amortization-calculator",
"description": "Строит полную таблицу ипотечных платежей, сравнивает сценарии досрочных платежей и показывает экономию процентов",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=mortgage-amortization-calculator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}После подключения к SSE-endpoint выведите список доступных инструментов:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Вызовите инструмент по его id; аргументы формируются из его параметров:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "mortgage-amortization-calculator",
"arguments": {
"principal": 300000,
"annualInterestRate": 6.5,
"termYears": 30,
"extraMonthlyPayment": 250,
"lumpSumPayment": 0,
"lumpSumMonth": 0
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]
| lumpSumMonth |
| number |
| Нет |
| — |
HTML-результат
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}