Calculator
Calculate probabilities for dice rolls and combinations
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/dice-probability' \
-H 'Content-Type: application/json' \
-d '{"calculationType":"specific-value","numDice":1,"diceSides":6,"targetNumber":6,"atLeast":4,"atMost":3,"exactSum":7}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/dice-probability| Name | Type | Required | Description |
|---|---|---|---|
| calculationType | select | Yes | — |
| numDice | number | No | — |
| diceSides | number | No | — |
| targetNumber | number | No | — |
| atLeast | number | No | — |
| atMost |
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-dice-probability": {
"name": "dice-probability",
"description": "Calculate probabilities for dice rolls and combinations",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=dice-probability",
"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": "dice-probability",
"arguments": {
"calculationType": "specific-value",
"numDice": 1,
"diceSides": 6,
"targetNumber": 6,
"atLeast": 4,
"atMost": 3,
"exactSum": 7
}
}
}Questions or issues? Contact [email protected]
| number |
| No |
| — |
| exactSum | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}