save_custom_field
Create or update a container or substance custom field by specifying its name, data type, and allowed values; returns the field ID for ChemInventory configuration.
Instructions
Create or update a container or substance custom field. Returns the field 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": {
"field_kind": "<field_kind>",
"name": "<name>",
"data_type": "<data_type>"
},
"name": "save_custom_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| field_id | No | Custom field to update; 0 creates a new field | |
| data_type | Yes | ||
| field_kind | Yes | ||
| searchable | No | ||
| allowed_values | No | Options for dropdown and tags fields | |
| admin_edit_only | No | Only administrators may edit (initial value still free) | |
| show_for_orders | No | Container fields: available on order requests |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |