upsert_custom_field
Define or change (pass id) a custom field — admins only. Required: entity, label. Optional: key (derived from the label if omitted; cannot change later), type (default text), required, options (for select/multiselect), sort_order, active (false hides it without deleting values).
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": {
"entity": "<entity>",
"label": "<label>"
},
"name": "upsert_custom_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ID of an existing custom field to change; omit to create a new one | |
| key | No | Technical key; derived from the label if omitted, cannot be changed later | |
| type | No | Field type: text, textarea, number, date, boolean, select or multiselect (default text) | |
| label | Yes | Label | |
| active | No | Whether the entry is active | |
| entity | Yes | Area the field belongs to: contacts, accounts, agreements, leads or a module table (mod_…) | |
| options | No | Allowed values for select/multiselect fields | |
| required | No | Whether a value must be filled in | |
| sort_order | No | Position of the field in the display order |