Add or change a label or label group
save_labelSet up the organization's labels. kind="label" (default) works on one label, kind="group" on a label group. Without id it creates one: a label needs name and takes group_id, color (hex), description and applies_to; a group needs name and takes description, selection_mode (SINGLE: an item gets at most one of its labels; MULTIPLE, the default) and applies_to (EVENT, TASK, ASSET, SCHEDULE_ITEM, CONTACT; empty means anything). To add a gig type, create a label whose group_id is the group list_labels shows with system_key "event_type". With id (from list_labels) it renames, recolors, moves (group_id) or narrows that label or group, and archived=true archives it (items keep it, nobody can pick it any more; archived=false restores it). A name that is already taken in the same group returns a conflict. Confirmation-gated only when id is set (changing or archiving an existing label or group); creating one runs on the first call. Requires org admin. Nobody is notified.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "save_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | the label or group id from list_labels to change; omit to create one | |
| kind | No | label (default) or group: which record to create or change | |
| name | No | required when creating; the new name when changing | |
| color | No | label only: hex color such as #7C3AED | |
| archived | No | with id: true archives it, false restores an archived one | |
| group_id | No | label only: the group it belongs in (the event_type group for a gig type); omit for an ungrouped label. With id, "" or null moves it out of its group | |
| applies_to | No | what it can go on; empty means anything (a label also inherits its group) | |
| description | No | a short note on what the label or group is for; with id, "" or null clears it | |
| selection_mode | No | group only: SINGLE allows one label of the group per item | |
| organization_id | No | organization to act in, an id from get_me; omit to use your active organization | |
| confirmation_token | No | only when id is set: leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | when the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: kind=label: { id, group_id, name, description, color, applies_to, sort_order, archived, archived_at, usage { total, event, task, asset, schedule_item, contact, ledger_item } }; kind=group: { id, name, description, selection_mode, applies_to, system_key, sort_order, archived, archived_at } } | |
| error | No | when ok is false |