Math & Numbers
Практикуйте правила значащих цифр с пошаговой обратной связью: подсчёт, округление до N цифр, перевод в научную нотацию и распространение через +/−/×/÷.
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/significant-figures-sandbox' \
-H 'Content-Type: application/json' \
-d '{"number":"0.005030","mode":"practice","guess":4,"roundN":0,"sciDigits":0,"opA":"e.g. 12.5","opB":"e.g. 3.20","operation":"+"}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/significant-figures-sandbox| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| number | text | Да | The number to analyse. Accepts integers, decimals, leading zeros, and scientific notation (1.23e4, 1.23E4, 1.23×10^4). |
| mode | select | Нет | Practice gives feedback on your sig-fig guess. Round rounds to N sig figs. Propagate applies the +/−/×/÷ rule to two operands. |
| guess | number | Нет | Practice mode only: enter your guess to get correct/incorrect feedback. |
| roundN | number | Нет | Round mode only: how many sig figs to round to. Defaults to the number's own count. |
| sciDigits |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-significant-figures-sandbox": {
"name": "significant-figures-sandbox",
"description": "Практикуйте правила значащих цифр с пошаговой обратной связью: подсчёт, округление до N цифр, перевод в научную нотацию и распространение через +/−/×/÷.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=significant-figures-sandbox",
"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": "significant-figures-sandbox",
"arguments": {
"number": "0.005030",
"mode": "practice",
"guess": 4,
"roundN": 0,
"sciDigits": 0,
"opA": "e.g. 12.5",
"opB": "e.g. 3.20",
"operation": "+"
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]
| number |
| Нет |
| Round mode only: how many sig figs to show in scientific notation. Defaults to the round-to value. |
| opA | text | Нет | Propagate mode only: first measured value. |
| opB | text | Нет | Propagate mode only: second measured value. |
| operation | select | Нет | Propagate mode only: the operation to apply. |
HTML-результат
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}