Math & Numbers
Determine the limiting reagent and compute theoretical yield, actual yield, and percent yield from a balanced reaction.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/reaction-stoichiometry-calculator' \
-H 'Content-Type: application/json' \
-d '{"reactants":"2 H2, 1.0 g\n1 O2, 8.0 g","product":"2 H2O","actualYield":0,"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/reaction-stoichiometry-calculator| Name | Type | Required | Description |
|---|---|---|---|
| reactants | textarea | Yes | Each line: optional label, stoichiometric coefficient + chemical formula, and the available mass (g/kg/mg). |
| product | text | Yes | Chemical formula of the product whose yield you want. Include its stoichiometric coefficient (e.g. 2 H2O). |
| actualYield | number | No | — |
| 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-reaction-stoichiometry-calculator": {
"name": "reaction-stoichiometry-calculator",
"description": "Determine the limiting reagent and compute theoretical yield, actual yield, and percent yield from a balanced reaction.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=reaction-stoichiometry-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": "reaction-stoichiometry-calculator",
"arguments": {
"reactants": "2 H2, 1.0 g\n1 O2, 8.0 g",
"product": "2 H2O",
"actualYield": 0,
"decimalPlaces": 4
}
}
}Questions or issues? Contact [email protected]