Skip to main content
Glama

Add or change a label or label group

save_label
Destructive

Set 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

NameRequiredDescriptionDefault
idNothe label or group id from list_labels to change; omit to create one
kindNolabel (default) or group: which record to create or change
nameNorequired when creating; the new name when changing
colorNolabel only: hex color such as #7C3AED
archivedNowith id: true archives it, false restores an archived one
group_idNolabel 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_toNowhat it can go on; empty means anything (a label also inherits its group)
descriptionNoa short note on what the label or group is for; with id, "" or null clears it
selection_modeNogroup only: SINGLE allows one label of the group per item
organization_idNoorganization to act in, an id from get_me; omit to use your active organization
confirmation_tokenNoonly 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

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNowhen 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 } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare a destructive, non-idempotent, non-read-only write, and the description adds substantial context beyond them: archive semantics ('items keep it, nobody can pick it any more'), duplicate-name conflict behavior, org-admin requirement, no notifications, and the crucial nuance that confirmation gating applies only when id is set while creation runs on the first call. It stops short of describing the returned error/conflict payload shape, but with an output schema present that is a minor omission.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded and nearly every clause carries information, but it is one dense block that mixes creation, modification, archiving, permissions, and confirmation semantics with no structural separation, making it easy to miss the confirmation-gating rule on a first read. Bulleting create/modify/archive would preserve the content at much lower reading cost.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter, destructive, confirmation-gated mutation tool, the description covers the create/modify/archive branches, the two-phase confirmation protocol, the admin prerequisite, conflict behavior, and side effects (nobody notified). With an output schema available to explain return values, nothing an agent needs to invoke this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema itself already documents most per-parameter meaning (hex color, null/"" clearing, SINGLE semantics, confirmation_token flow), so the description largely restates rather than adds. What it does add is cross-parameter structure — which fields are required for a label versus a group, kind defaults to label, and that an empty applies_to means anything while a label also inherits its group — which helps an agent compose a valid call.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Set up the organization's labels') and immediately splits the behavior by kind ('label' default vs 'group'), which distinguishes it from list_labels and from the many save_* siblings. An agent can tell exactly what record class this mutates without consulting the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly routes create-vs-modify: omit id to create, supply id 'from list_labels' to rename, recolor, move or archive. It even names a concrete use case and the lookup path (the group list_labels shows with system_key "event_type") for adding a gig type, and states the confirmation precondition for the id path.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.