Math & Numbers
Решает линейные уравнения вида ax + b = 0 по коэффициентам или полному выражению
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/linear-equation-solver' \
-H 'Content-Type: application/json' \
-d '{"inputFormat":"coefficients","aOrEquation":"2","b":-4,"decimalPlaces":6,"showSteps":true}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/linear-equation-solver| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| inputFormat | select | Да | — |
| aOrEquation | text | Да | — |
| b | number | Нет | — |
| decimalPlaces | number | Нет | — |
| showSteps | checkbox | Нет | — |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-linear-equation-solver": {
"name": "linear-equation-solver",
"description": "Решает линейные уравнения вида ax + b = 0 по коэффициентам или полному выражению",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=linear-equation-solver",
"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": "linear-equation-solver",
"arguments": {
"inputFormat": "coefficients",
"aOrEquation": "2",
"b": -4,
"decimalPlaces": 6,
"showSteps": true
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]
JSON-результат
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}