Math & Numbers
Находит давление, силу или площадь из P=F/A и переводит между Па, кПа, МПа, бар, атм, psi, Торр, inHg, кгс/см²
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/pressure-conversion' \
-H 'Content-Type: application/json' \
-d '{"mode":"formula","solveFor":"pressure","pressure":0,"force":100,"area":0.5,"convertValue":0,"fromUnit":"atm"}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/pressure-conversion| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| mode | select | Нет | — |
| solveFor | select | Нет | — |
| pressure | number | Нет | — |
| force | number | Нет | — |
| area | number | Нет | — |
| convertValue |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-pressure-conversion": {
"name": "pressure-conversion",
"description": "Находит давление, силу или площадь из P=F/A и переводит между Па, кПа, МПа, бар, атм, psi, Торр, inHg, кгс/см²",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pressure-conversion",
"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": "pressure-conversion",
"arguments": {
"mode": "formula",
"solveFor": "pressure",
"pressure": 0,
"force": 100,
"area": 0.5,
"convertValue": 0,
"fromUnit": "atm"
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]
| number |
| Нет |
| — |
| fromUnit | select | Нет | — |
HTML-результат
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}