find_counterparts
Find nearest chemical counterparts or bioisosteric analogs for a molecule or functional group using 1024-dimensional vector cosine distance, with filters by molecule or chemical class.
Instructions
Find nearest chemical counterparts or bioisosteric analogs to a specified molecule or functional group using 1024-dimensional pgvector cosine distance.
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": {
"entity_type": "<entity_type>",
"id": "<id>"
},
"name": "find_counterparts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the molecule or functional group | |
| limit | No | Number of nearest neighbors to return (default: 10) | |
| entity_type | Yes | Entity type to find counterparts for: molecule or functional_group | |
| molecule_id | No | Optional molecule ID to filter counterpart candidates (for functional group counterparts) | |
| chemical_class_id | No | Optional chemical class ID to filter counterpart candidates | |
| include_embedding | No | Whether to include raw 1024-float vector embeddings in results |