Math & Numbers
Calculate Cohen d, Hedges g, Cohen h for proportions, or correlation r effect sizes from summary statistics
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/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}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/effect-size-calculator| Name | Type | Required | Description |
|---|---|---|---|
| effectType | select | No | — |
| group1Mean | number | No | — |
| group2Mean | number | No | — |
| group1Sd | number | No | — |
| group2Sd | number | No | — |
| group1Size |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-effect-size-calculator": {
"name": "effect-size-calculator",
"description": "Calculate Cohen d, Hedges g, Cohen h for proportions, or correlation r effect sizes from summary statistics",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=effect-size-calculator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"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
}
}
}Questions or issues? Contact [email protected]
| number |
| No |
| — |
| group2Size | number | No | — |
| proportion1 | number | No | — |
| proportion2 | number | No | — |
| correlation | number | No | — |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}