Search By Name
search_by_nameResolve a common chemical or drug name to PubChem CIDs. Use for "what's the CID of ibuprofen?" or to disambiguate. Returns CIDs (Compound IDs) matched to the name. Then use get_compound with the CID for properties.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "ibuprofen"
},
"name": "search_by_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Common, IUPAC, or brand name (e.g., "ibuprofen", "caffeine") | |
| max_results | No | Cap results (default 5) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cids | Yes | List of matching PubChem Compound IDs | |
| name | Yes | The chemical/drug name searched | |
| count | Yes | Number of CIDs found | |
| pubchem_urls | Yes | Direct URLs to PubChem pages for each CID |