search
Find containers by names, CAS numbers, SMILES, barcodes, GHS, or advanced queries in one request; returns per-term container summaries and matching orders.
Instructions
Search containers for one or more terms, e.g. a whole list of names, CAS numbers or SMILES at once. Returns, per term, the container summaries and matching orders, or an error. Results are filtered by the user's 'limit search to' setting.
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": {
"inventory": "<inventory>",
"search_type": "<search_type>",
"terms": "<terms>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| terms | Yes | Search terms, each searched separately. name: matching follows the account's name search preference (user.preferences.ns in get_details) and is often exact; for partial names use advanced with operator 'contains' on the name field. cas: checked for a valid check digit before searching. Structure searches: molfile or SMILES (stereocenters may be ignored); substances without a stored structure are not found. ghs: {searchtype: 'or'|'and', items: ['H225', ...]}. advanced: QueryBuilder rules {condition, rules: [{id, field, type, input, operator, value}]} with fields from advanced_search_options and operators such as 'contains' or 'between'; dates in the user's date format from get_details | |
| inventory | Yes | Inventory ID, or a site, enterprise or recycling scope | |
| search_type | Yes | One of name (includes synonyms), cas, barcode, ghs, advanced, exactstructure, substructure, substanceid, containerid, or a custom field as cf-<datatype>-<id> / sf-<datatype>-<id>, e.g. cf-date-363 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |