Math & Numbers
Выполняет одновыборочные Z-тесты среднего с известным стандартным отклонением популяции или одной доли
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/z-test-calculator' \
-H 'Content-Type: application/json' \
-d '{"testType":"mean","sampleMean":105,"hypothesizedMean":100,"populationStandardDeviation":15,"sampleSize":64,"successCount":60,"trialCount":100,"hypothesizedProportion":0.5,"alternative":"two-sided","alpha":0.05,"decimalPlaces":4}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/z-test-calculator| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| testType | select | Нет | — |
| sampleMean | number | Нет | — |
| hypothesizedMean | number | Нет | — |
| populationStandardDeviation | number | Нет | — |
| sampleSize | number | Нет | — |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-z-test-calculator": {
"name": "z-test-calculator",
"description": "Выполняет одновыборочные Z-тесты среднего с известным стандартным отклонением популяции или одной доли",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=z-test-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": "z-test-calculator",
"arguments": {
"testType": "mean",
"sampleMean": 105,
"hypothesizedMean": 100,
"populationStandardDeviation": 15,
"sampleSize": 64,
"successCount": 60,
"trialCount": 100,
"hypothesizedProportion": 0.5,
"alternative": "two-sided",
"alpha": 0.05,
"decimalPlaces": 4
}
}
}| successCount |
| number |
| Нет |
| — |
| trialCount | number | Нет | — |
| hypothesizedProportion | number | Нет | — |
| alternative | select | Нет | — |
| alpha | number | Нет | — |
| decimalPlaces | number | Нет | — |
JSON-результат
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Вопросы или проблемы? Свяжитесь с [email protected]