Finance
Рассчитает, сэкономит ли рефинансирование кредита деньги
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/refinance-calculator' \
-H 'Content-Type: application/json' \
-d '{"currentLoanAmount":200000,"currentInterestRate":5.5,"currentRemainingTerm":25,"newInterestRate":4,"newLoanTerm":30,"closingCosts":5000,"cashOut":0}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/refinance-calculator| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| currentLoanAmount | number | Да | — |
| currentInterestRate | number | Да | — |
| currentRemainingTerm | number | Да | — |
| newInterestRate | number | Да | — |
| newLoanTerm | number | Да | — |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-refinance-calculator": {
"name": "refinance-calculator",
"description": "Рассчитает, сэкономит ли рефинансирование кредита деньги",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=refinance-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": "refinance-calculator",
"arguments": {
"currentLoanAmount": 200000,
"currentInterestRate": 5.5,
"currentRemainingTerm": 25,
"newInterestRate": 4,
"newLoanTerm": 30,
"closingCosts": 5000,
"cashOut": 0
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]
| closingCosts |
| number |
| Да |
| — |
| cashOut | number | Нет | — |
JSON-результат
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}