find_common_substructure
The maximum common substructure of a set of small molecules (RDKit FindMCS): the largest core every structure shares, as SMARTS, with its atom and bond count.
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": {
"molecules": "<molecules>"
},
"name": "find_common_substructure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _files | No | The project: record references shaped like _subject. Their records become library documents a tool names in sequences/parts/document; a trace or alignment is found by file name. | |
| timeout | No | seconds before RDKit stops searching. The MCS problem is NP-hard, so a large diverse set can run long; a run that stops early reports its core as a lower bound. In s. Advanced. | |
| _subject | No | The record to act on: exactly one of sequence, accession (+source), sample (an id from list_samples) or file ({name, text} or {name, base64}); record_index picks one record of several. | |
| molecules | Yes | the structures: one SMILES or molfile per entry. | |
| complete_rings_only | No | a ring is in the core whole or not at all — the core a chemist would draw. Off, RDKit may return a partial ring, which is a valid substructure and a strange thing to call a scaffold. | |
| ring_matches_ring_only | No | a ring atom only matches another ring atom, so a chain carbon never maps onto a ring one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| smarts | Yes | the common core as SMARTS — wire it into decompose_r_groups as `core` | |
| unread | Yes | input indices RDKit could not read | |
| summary | Yes | the common core in words, generated from this run | |
| canceled | Yes | the search hit the timeout, so this core is a LOWER BOUND and a longer run may find a larger one | |
| numAtoms | Yes | atoms in the core | |
| numBonds | Yes | bonds in the core |