Structural Similarity
structural_similarityRetrieve similar chemical compounds from PubChem by providing a compound name or SMILES string. Adjust similarity threshold and result count for targeted searches.
Instructions
PubChem-backed structural similarity search from a compound name or SMILES string.
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": {
"query": "EGFR inhibitors",
"threshold": 85,
"max_results": 8
},
"name": "structural_similarity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Compound name or identifier. | |
| smiles | No | Canonical or query SMILES string. | |
| threshold | No | PubChem 2D similarity threshold. Default 90. | |
| max_results | No | Maximum similar compounds to return. Default 10. |