Search metabolites by chemical formula in a MetExplore network
search_metabolites_by_formulaLists ALL the metabolites of a MetExplore network whose chemical formula matches the given molecular formula (element order does not matter: C3H3O4 = H3C3O4). Use this tool whenever the user gives a chemical formula such as C6H12O6, C3H3O4 or CO2, instead of search_metabolites (which only searches names). The result is exhaustive and lists every match with its id, identifier, name, formula, charge, compartment and cross-references. Set ignore_hydrogens to also find the other protonation states of the same compound. Requires an id_network (see search_organisms).
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": {
"id_network": "<id_network>",
"formula": "<formula>"
},
"name": "search_metabolites_by_formula"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formula | Yes | Chemical (molecular) formula to look for, in any element order, e.g. 'C3H3O4' or 'C6H12O6' | |
| id_network | Yes | Id of the MetExplore network (obtained via search_organisms) | |
| output_format | No | Format of the result: markdown table or text. Default: table. | |
| ignore_hydrogens | No | If true, hydrogen counts are ignored so every protonation state matches (e.g. C3H4O4 also finds C3H3O4 and C3H2O4). Default: false (exact formula). |