Molecular Formula & Weight
science.chem.formulaRetrieve molecular formula and weight for any compound using its name, CAS number, or SMILES.
Instructions
Get molecular formula and molecular weight for any compound by name, CAS number, or SMILES. Returns formula (e.g. "C9H8O4" for aspirin) and weight in daltons (e.g. 180.157). Accepts any chemical identifier format (NCI CACTUS)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identifier | Yes | Chemical identifier — compound name (e.g. "ibuprofen"), CAS number (e.g. "15687-27-1"), or SMILES string. Returns molecular formula and weight |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. | |
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. |