set_record_labels
Add and/or remove labels on people (entity=contacts) or organisations (entity=accounts) — one record or many at once (bulk). Required: entity, ids. add/remove: label names or ids; names in add that do not exist yet are created. Returns how many assignments were added/removed.
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>",
"ids": "<ids>"
},
"name": "set_record_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Label names or ids to add; unknown names are created | |
| ids | Yes | IDs of the contacts or accounts to label | |
| entity | Yes | contacts | accounts | |
| remove | No | Label names or ids to remove |