Math & Numbers
Convert common physical, chemistry, cooking, medical, and information units with the formula and dimensional analysis visible.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/unit-converter-with-formula' \
-H 'Content-Type: application/json' \
-d '{"domain":"physical","value":100,"sourceUnit":"km","targetUnit":"mi","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/unit-converter-with-formula| Name | Type | Required | Description |
|---|---|---|---|
| domain | select | No | — |
| value | number | Yes | — |
| sourceUnit | select | No | — |
| targetUnit | select | No | — |
| decimalPlaces | number | No | — |
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-unit-converter-with-formula": {
"name": "unit-converter-with-formula",
"description": "Convert common physical, chemistry, cooking, medical, and information units with the formula and dimensional analysis visible.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=unit-converter-with-formula",
"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": "unit-converter-with-formula",
"arguments": {
"domain": "physical",
"value": 100,
"sourceUnit": "km",
"targetUnit": "mi",
"decimalPlaces": 4
}
}
}Questions or issues? Contact [email protected]
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}