update_substance_structure
Sets a substance's chemical structure from a Molfile or SMILES and returns the matching substance ID, helping identify whether the structure already exists.
Instructions
Set the structure of a substance. Returns the substance ID, which is an existing substance's ID if the structure matches one.
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": {
"substance_id": "<substance_id>",
"structure": "<structure>"
},
"name": "update_substance_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| structure | Yes | Molfile or SMILES | |
| substance_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |