Math & Numbers
Convert pH ↔ [H⁺] in mol/L, mmol/L, µmol/L or nmol/L with the full unit table — pH 7.40 ↔ 39.8 nmol/L.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/ph-to-hydrogen-ion' \
-H 'Content-Type: application/json' \
-d '{"inputQuantity":"ph","value":7.4,"concUnit":"nM","decimalPlaces":2}'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/ph-to-hydrogen-ion| Name | Type | Required | Description |
|---|---|---|---|
| inputQuantity | select | Yes | Whether the entered value is a pH or a hydrogen ion concentration. |
| value | number | Yes | The pH value (−3 to 16), or the concentration in the selected unit. |
| concUnit | select | Yes | Unit of the entered (or reported) hydrogen ion concentration. |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}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-ph-to-hydrogen-ion": {
"name": "ph-to-hydrogen-ion",
"description": "Convert pH ↔ [H⁺] in mol/L, mmol/L, µmol/L or nmol/L with the full unit table — pH 7.40 ↔ 39.8 nmol/L.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=ph-to-hydrogen-ion",
"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": "ph-to-hydrogen-ion",
"arguments": {
"inputQuantity": "ph",
"value": 7.4,
"concUnit": "nM",
"decimalPlaces": 2
}
}
}Questions or issues? Contact [email protected]