Skip to main content
Glama

Delete setlist

delete_setlist
DestructiveIdempotent

Delete a setlist. Confirmation-gated. For an organization on Run of Show (setlists brought over), only setlists with no gig can be written; the sets of a gig are edited in the Setlist view of its Run of Show, and writing a gig setlist answers 409 SETLISTS_RETIRED.

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": {
      "setlist_id": "<setlist_id>"
    },
    "name": "delete_setlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
setlist_idYesthe setlist to delete, an id from list_setlists
confirmation_tokenNoleave 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: absent (the API answers 204 with no body) }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / setlist_id / description
      Previous value: -"the setlist to delete"New value: +"the setlist to delete, an id from list_setlists"
    • addedInput schema / properties / setlist_id / minLength
      Added value: +1
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / properties / data / description
      Previous value: -"tool payload (API/composite/confirmation object); object, array, or primitive JSON"New value: +"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: absent (the API answers 204 with no body) }"
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "description": "tool payload (API/composite/confirmation object); object, array, or primitive JSON"
      +    },
      +    "error": {
      +      "description": "when ok is false",
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "true on success (including confirmation_required prompts)",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the call is confirmation-gated, tied to organization mode, and returns a specific 409 error code when a gig setlist is targeted. Annotations already flag destructiveHint and idempotentHint, so this extra detail on prerequisites and failure semantics is genuinely additive.

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-loaded with the action and the gating flag before the org-mode caveat, and every sentence carries information. Phrasing like "can be written" for a delete operation is slightly imprecise and costs a little clarity.

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

Completeness4/5

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

Output schema exists and the confirmation handshake is described, so return values need no explanation. The remaining gap is minor: no mention of what happens on a wrong or expired confirmation_token, or whether deletion cascades to anything else.

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

Parameters3/5

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

Schema description coverage is 100% and the schema itself documents setlist_id provenance (from list_setlists) and the two-step confirmation_token flow. The description only gestures at the gating ("Confirmation-gated") without adding syntax or edge cases, so the schema carries nearly all the weight.

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?

States a specific verb and resource ("Delete a setlist") up front, then narrows the scope precisely: only setlists with no gig can be written for Run of Show organizations. An agent can tell this apart from save_setlist and from the in-app Setlist view path 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 Guidelines4/5

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

Gives a real exclusion — gig setlists must be edited in the Setlist view of their Run of Show — and names the failure mode (409 SETLISTS_RETIRED) if attempted anyway. It does not explicitly contrast with save_setlist or the other delete_* siblings, but the when-not guidance is clear.

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.