Math & Numbers
Вычисляет Cohen d, Hedges g, Cohen h для долей или корреляцию r по сводной статистике
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/effect-size-calculator' \
-H 'Content-Type: application/json' \
-d '{"effectType":"cohen-d","group1Mean":105,"group2Mean":100,"group1Sd":15,"group2Sd":15,"group1Size":30,"group2Size":30,"proportion1":0.6,"proportion2":0.5,"correlation":0.3,"decimalPlaces":4}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/effect-size-calculator| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| effectType | select | Нет | — |
| group1Mean | number | Нет | — |
| group2Mean | number | Нет | — |
| group1Sd | number | Нет | — |
| group2Sd | number | Нет | — |
| group1Size |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-effect-size-calculator": {
"name": "effect-size-calculator",
"description": "Вычисляет Cohen d, Hedges g, Cohen h для долей или корреляцию r по сводной статистике",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=effect-size-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": "effect-size-calculator",
"arguments": {
"effectType": "cohen-d",
"group1Mean": 105,
"group2Mean": 100,
"group1Sd": 15,
"group2Sd": 15,
"group1Size": 30,
"group2Size": 30,
"proportion1": 0.6,
"proportion2": 0.5,
"correlation": 0.3,
"decimalPlaces": 4
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]
| number |
| Нет |
| — |
| group2Size | number | Нет | — |
| proportion1 | number | Нет | — |
| proportion2 | number | Нет | — |
| correlation | number | Нет | — |
| decimalPlaces | number | Нет | — |
JSON-результат
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}