Add client custom fields
client_custom_fields_createDefine custom fields on client records (text, select, boolean, number, date; at most 30 per call). A key that already exists with the same type is kept unchanged, so repeating a call is safe; a different type is refused and nothing is deleted. Afterwards clients_create and clients_update accept values by key. Use crm_apply_blueprint to add stages and fields together. Needs permission to edit business details.
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": {
"fields": "<fields>"
},
"name": "client_custom_fields_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Custom fields to add, at most 30. A field whose key already exists with the same type is left as it is. | |
| dry_run | No | True previews the result and writes nothing. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| counts | Yes | ||
| stages | Yes | ||
| applied | Yes | True when the changes were written. | |
| dry_run | Yes | True when nothing was written. | |
| warnings | Yes | ||
| custom_fields | Yes | ||
| default_stages_added | Yes | True when the five default stages were written first because the workspace had none stored. |