save_ghs_entry
Create or update a GHS hazard entry for a substance and get the entry ID back. Pass hazard codes and a source, or set entry_id to 0 to create a new entry.
Instructions
Create or update a GHS hazard entry of a substance. Returns the entry ID.
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>",
"hazard_codes": "<hazard_codes>",
"source": "<source>"
},
"name": "save_ghs_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Shown to users, e.g. 'Sigma Aldrich' | |
| entry_id | No | GHS entry to update; 0 creates a new entry | |
| hazard_codes | Yes | e.g. ['H225', 'H410'] | |
| substance_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |