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.
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": {
"compound_name": "<compound_name>"
},
"name": "get_pubchem_compound_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compound_name | Yes | Compound name, e.g. "resveratrol". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |