get_pubchem_compound_id
Retrieve the PubChem Compound ID (CID) for a given compound name. Returns JSON with the CID or an error if not found.
Instructions
Get a PubChem compound ID (CID) for a compound name.
RETURNS the PubChem Compound ID(s) as a JSON-formatted string. On upstream/HTTP failure this tool does NOT raise — it returns a plain string beginning with "Error:" (not JSON). CHECK FOR the "Error:" prefix BEFORE parsing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compound_name | Yes | Compound name, e.g. "resveratrol". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |