Math & Numbers
Convert dilution notations 1:X ↔ 1/X ↔ percent, with dilution factor, parts, and mixing volumes.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/dilution-ratio-converter' \
-H 'Content-Type: application/json' \
-d '{"mode":"ratio","value":5,"convention":"total","finalVolume":100,"volumeUnit":"mL","decimalPlaces":4}'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/dilution-ratio-converter| Name | Type | Required | Description |
|---|---|---|---|
| mode | select | Yes | How the entered value is written. |
| value | number | Yes | For ratio/fraction: the right-hand number X. For percent: the percentage (e.g. 12.5). |
| convention | select | Yes | Only used in Ratio mode: whether 1:X means X parts in total, or 1 part solute plus X parts diluent. |
| finalVolume | number | No | Total volume of the diluted solution to prepare. |
| volumeUnit | select |
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-dilution-ratio-converter": {
"name": "dilution-ratio-converter",
"description": "Convert dilution notations 1:X ↔ 1/X ↔ percent, with dilution factor, parts, and mixing volumes.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=dilution-ratio-converter",
"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": "dilution-ratio-converter",
"arguments": {
"mode": "ratio",
"value": 5,
"convention": "total",
"finalVolume": 100,
"volumeUnit": "mL",
"decimalPlaces": 4
}
}
}Questions or issues? Contact [email protected]
| — |
| decimalPlaces | number | No | — |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}