Health
Compute the antibiotic stock volume for a target working concentration with C₁V₁ = C₂V₂, supporting mg/mL, µg/mL, g/L, ng/mL and × fold notation.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/antibiotic-concentration' \
-H 'Content-Type: application/json' \
-d '{"stockConcentration":100,"stockUnit":"mg/mL","workingConcentration":50,"workingUnit":"µg/mL","finalVolume":100,"volumeUnit":"mL","decimalPlaces":3}'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/antibiotic-concentration| Name | Type | Required | Description |
|---|---|---|---|
| stockConcentration | number | Yes | Concentration of the stock solution (e.g. ampicillin 100 mg/mL). |
| stockUnit | select | Yes | — |
| workingConcentration | number | Yes | Desired final concentration in the medium (e.g. 50 µg/mL). |
| workingUnit | select | Yes | — |
| finalVolume | number | 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-antibiotic-concentration": {
"name": "antibiotic-concentration",
"description": "Compute the antibiotic stock volume for a target working concentration with C₁V₁ = C₂V₂, supporting mg/mL, µg/mL, g/L, ng/mL and × fold notation.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=antibiotic-concentration",
"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": "antibiotic-concentration",
"arguments": {
"stockConcentration": 100,
"stockUnit": "mg/mL",
"workingConcentration": 50,
"workingUnit": "µg/mL",
"finalVolume": 100,
"volumeUnit": "mL",
"decimalPlaces": 3
}
}
}Questions or issues? Contact [email protected]
| Total volume of medium + stock to prepare. |
| volumeUnit | select | Yes | — |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}