chem_empirical_formula
Empirical & molecular formula from composition — Find the empirical formula (and the molecular formula when molar_mass is given) from percent composition or measured element masses. Converts each value to moles with IUPAC conventional atomic weights, divides by the smallest, finds the smallest whole-number multiplier, and returns mole ratios, Hill-order and input-order formulas, empirical mass, back-calculated composition, a confidence flag and warnings (e.g. percentages not summing to 100). Params: percent=C:40.0,H:6.71,O:53.29 or mass= grams per element; optional molar_mass= g/mol. Offline, instant. Price: $0.002 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"percent": "<percent>"
},
"name": "chem_empirical_formula"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| percent | Yes | e.g. C:40.0,H:6.71,O:53.29 |