get_substance
Retrieves a chemical substance by name and CAS number or substance ID, and creates the record automatically when no matching entry exists.
Instructions
Substance records matching name and CAS number, or the substance with substance_id. Creates the substance if it does not exist yet.
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": {
"name": "<name>",
"cas": "<cas>"
},
"name": "get_substance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cas | Yes | CAS number, or 'N/A' if none | |
| name | Yes | ||
| substance_id | No | ID of a known substance |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |