Skip to main content
Glama

Set key times

set_event_key_times
DestructiveIdempotent

Replace a gig's whole set of key times. Any key time you leave out is removed, so read them with get_event_key_times first and send the full list back with your edit and the revision from that read; if someone changed the key times since, the save fails with 409 and you read again. An empty list clears them. Confirmation-gated only when the new list removes a key time the gig has now: that call returns confirmation_required naming the ones it would remove and saves nothing. A time a person sets here is never overwritten by a later Flex, labor call or import sync. Run of show sections that follow a key time (key_time_kind) move with it. Requires gig-manager access and does not message crew.

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": {
      "event_id": "<event_id>",
      "key_times": "<key_times>",
      "revision": "<revision>"
    },
    "name": "set_event_key_times"
  }
}

Input Schema

NameRequiredDescriptionDefault
event_idYesthe gig (event) id, from list_events, open_gigs or my_agenda
revisionYesthe revision from your last get_event_key_times read
key_timesYesthe complete set after your edit
confirmation_tokenNoonly when the new list removes a key time: leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token

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: { timezone, featured [kind], kinds [{ kind, label, color, guests, days, custom, archived }], revision, key_times [{ id, kind, label, color, date (YYYY-MM-DD), day_offset, time (HH:MM), past_midnight, at (ISO instant or null), note, set_by_user, source, updated_at }] } }
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?

Annotations already flag destructiveHint=true and idempotentHint=true, but the description goes well beyond them: omitted key times are deleted, revision-based optimistic concurrency returns 409, confirmation_required is returned with a token only when an existing key time would be removed and nothing is saved on that call, and human-set times take precedence over Flex/labor/import syncs. It also states the gig-manager access requirement — rich disclosure for a destructive tool.

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?

Tight and front-loaded — replacement semantics come first, then the read-edit-revise loop, then edge cases. It is a dense single block with no filler, though the run-on clause about run-of-show sections and the sync-precedence note could be split for scanability.

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 destructive, concurrency-controlled mutation with an output schema, the description covers everything an agent needs to call it correctly: prerequisites, the retry loop, confirmation gating, and the precedence guarantee. Return-value detail is correctly deferred to the output schema while the two special responses (409, confirmation_required) are still flagged.

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 adds meaning beyond the schema by explaining the conflict/retry loop around revision (409 then re-read) and by reinforcing that key_times must be the complete post-edit set rather than a delta. The nested item fields are left entirely to the schema.

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 ('Replace a gig's whole set of key times') and immediately frames the replacement scope, distinguishing it from the read counterpart get_event_key_times which it names explicitly.

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?

Gives an explicit workflow: read with get_event_key_times first, send the full list plus that revision, re-read on 409, and use an empty list to clear. It also states the exclusions and side effects (run-of-show sections move, no crew messaging) so the agent knows exactly when and how to invoke it versus the getter.

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.