Math & Numbers
Calculate water costs based on usage and water rates
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/water-bill-calculator' \
-H 'Content-Type: application/json' \
-d '{"waterUsage":100,"unit":"gallons","ratePerUnit":0.01,"currency":"USD","billingPeriod":"monthly"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/water-bill-calculator| Name | Type | Required | Description |
|---|---|---|---|
| waterUsage | number | Yes | — |
| unit | select | Yes | — |
| ratePerUnit | number | Yes | — |
| currency | select | Yes | — |
| billingPeriod | select | Yes | — |
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-water-bill-calculator": {
"name": "water-bill-calculator",
"description": "Calculate water costs based on usage and water rates",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=water-bill-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": "water-bill-calculator",
"arguments": {
"waterUsage": 100,
"unit": "gallons",
"ratePerUnit": 0.01,
"currency": "USD",
"billingPeriod": "monthly"
}
}
}Questions or issues? Contact [email protected]
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}