Health
Estimate your BAC from sex, weight, drinks and time using the Widmark formula. Returns g/dL and ‰, predicts sober time, and flags the impairment tier and legal driving limits.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/bac-calculator' \
-H 'Content-Type: application/json' \
-d '{"sex":"male","weight":75,"weightUnit":"kg","inputMode":"standard","drinks":3,"abv":13,"volumePerDrink":150,"drinkCount":3,"hours":2,"precision":2}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/bac-calculator| Name | Type | Required | Description |
|---|---|---|---|
| sex | select | No | — |
| weight | number | Yes | — |
| weightUnit | select | No | — |
| inputMode | select | No | — |
| drinks | number | Yes | — |
| abv |
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-bac-calculator": {
"name": "bac-calculator",
"description": "Estimate your BAC from sex, weight, drinks and time using the Widmark formula. Returns g/dL and ‰, predicts sober time, and flags the impairment tier and legal driving limits.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=bac-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": "bac-calculator",
"arguments": {
"sex": "male",
"weight": 75,
"weightUnit": "kg",
"inputMode": "standard",
"drinks": 3,
"abv": 13,
"volumePerDrink": 150,
"drinkCount": 3,
"hours": 2,
"precision": 2
}
}
}Questions or issues? Contact [email protected]
| number |
| No |
| — |
| volumePerDrink | number | No | — |
| drinkCount | number | No | — |
| hours | number | Yes | — |
| precision | number | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}