Skip to main content
Glama

Add or edit a setlist

save_setlist
Destructive

Create a setlist, or replace the title and sets of one. Without setlist_id this creates a setlist in organization_id, optionally attached to event_id; pass sets to include songs, or add them later. With setlist_id it replaces that setlist: title is required, and sets, when provided, replace all of its sets. Each song in sets[].songs must reference an existing library song id from create_song. When the organization keeps gig sets in Run of Show (setlists brought over), gig-attached writes store sets as song run-of-show items the same way the Setlist view does; library setlists without a gig still use the setlist API. Confirmation-gated only when sets is passed (including on create with event_id), because that replaces existing song sets on the gig or setlist.

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": {
      "title": "<title>"
    },
    "name": "save_setlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
setsNosets and songs; when creating, omit for an empty setlist; when replacing, replaces all sets
titleYestitle of the setlist (not name)
event_idNooptional: associate the setlist with this event
setlist_idNoreplace this setlist; omit to create one
is_templateNotrue to save as a reusable template instead of a one-off
organization_idNothe organization to create the setlist in, an id from get_me (required when creating)
confirmation_tokenNoonly when sets is passed: 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: a library setlist: { setlist { event_id, id, is_template, notes, sets, title, total_duration } }; a gig setlist, which is written through the run of show: the gig setlists as list_setlists returns them, plus written_to: "run_of_show" and event_id }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond destructiveHint=true by naming exactly what is destroyed (all of the setlist's sets, and existing song sets on the gig), when the confirmation gate fires (only when sets is passed, including create with event_id), and the Run of Show storage divergence for gig-attached writes. It also discloses that an unknown set id is refused, which the annotations cannot convey.

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

Conciseness4/5

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

Front-loads the create-vs-replace split in the first sentence and orders the rest by operational concern (data requirements, storage behavior, confirmation). The Run of Show sentence is dense and could be tightened, but every sentence carries information an agent needs.

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 a 7-parameter destructive mutation, the description covers required fields, conditional requirements, cross-tool id dependencies, the confirmation handshake, and the storage divergence between gig and library setlists. With an output schema present and annotations covering the safety profile, nothing material is left for the agent to guess.

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%, so the baseline is 3; the description earns above that by explaining interactions the per-parameter schema text does not, notably that organization_id only matters on create and that confirmation_token belongs to the same-args retry flow. It still largely restates what the schema already says about title, sets and setlist_id.

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?

Opens with a specific verb pair and resource ('Create a setlist, or replace the title and sets of one') and immediately splits the two modes by setlist_id, which distinguishes it from delete_setlist and create_song. An agent can tell what this does and which mode it will enter without opening 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?

Explicitly states the branch conditions: no setlist_id creates in organization_id, optionally with event_id; setlist_id replaces that setlist with title required. It also names a hard prerequisite ('each song in sets[].songs must reference an existing library song id from create_song') and tells the agent it can add songs later rather than passing sets now.

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.