Finance
Convert odds between decimal, fractional, and American formats with implied probability, plus parlay combination odds and no-vig fair-odds calculation.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/betting-odds-calculator' \
-H 'Content-Type: application/json' \
-d '{"mode":"convert","odds":"+150","format":"auto","stake":100,"legs":"1.80\n2.20\n1.95","market":"1.95\n2.05 (2-way)\nor 2.30 / 3.40 / 3.10 (3-way)","decimals":2}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST http://127.0.0.1:3003/en/api/tools/betting-odds-calculator| Name | Type | Required | Description |
|---|---|---|---|
| mode | select | Yes | — |
| odds | text | No | — |
| format | select | Yes | — |
| stake | number | No | — |
| legs | textarea | No | — |
| market | textarea |
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-betting-odds-calculator": {
"name": "betting-odds-calculator",
"description": "Convert odds between decimal, fractional, and American formats with implied probability, plus parlay combination odds and no-vig fair-odds calculation.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=betting-odds-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": "betting-odds-calculator",
"arguments": {
"mode": "convert",
"odds": "+150",
"format": "auto",
"stake": 100,
"legs": "1.80\n2.20\n1.95",
"market": "1.95\n2.05 (2-way)\nor 2.30 / 3.40 / 3.10 (3-way)",
"decimals": 2
}
}
}Questions or issues? Contact [email protected]
| No |
| — |
| decimals | number | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}