chem_compound
Look up a compound in PubChem by name, CID, SMILES, or InChIKey and return its upstream record, optionally narrowed to selected properties.
Instructions
Look up one compound in PubChem and return its upstream record.
Use this for both a full record and a chosen property subset: pass
properties (PubChem property names such as "MolecularFormula",
"XLogP") to narrow the fields, or omit it for the default set.
Unknown property names are rejected with the allowed list.
Returns only fields PubChem actually carries (CID, formula, molecular weight, IUPAC name, SMILES, InChIKey, XLogP, TPSA, H-bond counts, rotatable bonds, heavy atoms, charge, complexity, up to 20 synonyms). Fields the upstream omits stay omitted — nothing is inferred.
Args: identifier: Compound name, numeric CID, SMILES or InChIKey. id_type: One of "name", "cid", "smiles", "inchikey". properties: Optional PubChem property names (default: all).
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": {
"identifier": "<identifier>"
},
"name": "chem_compound"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_type | No | name | |
| identifier | Yes | ||
| properties | No |