Math & Numbers
Строит одну или несколько функций y=f(x) на общей системе координат и отмечает корни, экстремумы и интеграл
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/function-equation-plotter' \
-H 'Content-Type: application/json' \
-d '{"expressions":"x^2 - 2*x\nsin(x)","xMin":-2,"xMax":4,"yMin":-2,"yMax":4,"sampleCount":240,"integralFrom":0,"integralTo":3.1416}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/function-equation-plotter| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| expressions | textarea | Да | — |
| xMin | number | Да | — |
| xMax | number | Да | — |
| yMin | number | Нет | — |
| yMax | number | Нет | — |
| sampleCount |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-function-equation-plotter": {
"name": "function-equation-plotter",
"description": "Строит одну или несколько функций y=f(x) на общей системе координат и отмечает корни, экстремумы и интеграл",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=function-equation-plotter",
"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": "function-equation-plotter",
"arguments": {
"expressions": "x^2 - 2*x\nsin(x)",
"xMin": -2,
"xMax": 4,
"yMin": -2,
"yMax": 4,
"sampleCount": 240,
"integralFrom": 0,
"integralTo": 3.1416
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]
| number |
| Нет |
| — |
| integralFrom | number | Нет | — |
| integralTo | number | Нет | — |
HTML-результат
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}