get_pubchem_compound_id
Resolve a compound name to its PubChem CID, returning a JSON-formatted ID for use in biomedical data queries.
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 |