Skip to main content
Glama

Apply call list to gig

apply_calllist_to_event
Idempotent

Drop a call list onto a gig as DRAFT shifts (mode=draft_shifts, the default): one draft shift per position slot, covering every day of the gig, sized at the template seats, with the primary person penciled into each slot attached as an un-sent draft recipient (backups are left off the shift). NOTHING IS SENT AND NOBODY IS NOTIFIED — the admin reviews the roster and sets fees, then sends the offers. Re-applying is a no-op for slots this template already put on the gig (DRAFT/OPEN/FILLED); withdrawn or expired shifts leave a hole a re-apply refills. Both modes also add each template labor call line whose department the gig does not already have (case-insensitive) to the gig labor call, which writes its house labor shifts; labor_departments_added counts them. Returns shifts_created / recipients_added / skipped, plus a hint explaining why when 0 shifts were created (no org positions, template members without a position, empty slots, or already applied). mode=event_members is the legacy path: it adds roster rows instead of shifts, primaries (call_order 0) INVITED and backups STANDBY, and puts nothing on the Staffing board. Either mode commits people from the template onto a real gig, so it is confirmation-gated.

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": {
      "calllist_id": "<calllist_id>",
      "event_id": "<event_id>"
    },
    "name": "apply_calllist_to_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNodraft_shifts (default) creates draft shifts; event_members is the legacy roster path
event_idYesthe gig to apply the call list to, an id from list_events, open_gigs or my_agenda
calllist_idYesthe call list (team template) to apply, an id from get_staffing_plan scope "templates"
organization_idNoorganization to act in, an id from get_me; omit to use your active organization
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)
dataNotool payload (API/composite/confirmation object); object, array, or primitive JSON
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 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 / calllist_id / description
      Previous value: -"the calllist to apply"New value: +"the call list (team template) to apply, an id from get_staffing_plan scope \"templates\""
    • addedInput schema / properties / calllist_id / minLength
      Added value: +1
    • addedInput schema / properties / confirmation_token
      Added value: +{
      +  "description": "leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed",
      +  "type": "string"
      +}
    • changedInput schema / properties / event_id / description
      Previous value: -"the event to apply the calllist to"New value: +"the gig to apply the call list to, an id from list_events, open_gigs or my_agenda"
    • addedInput schema / properties / event_id / minLength
      Added value: +1
    • changedInput schema / properties / organization_id / description
      Previous value: -"defaults to your active organization"New value: +"organization to act in, an id from get_me; omit to use your active organization"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  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.6/5.0
Behavior5/5

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

The description goes well beyond the annotations: it states that nothing is sent and nobody is notified, explains that primaries are attached as un-sent draft recipients while backups are omitted, discloses that template labor-call lines may also be added, and describes what the returned hint means when zero shifts are created. It also clarifies that re-application is a no-op for existing slots but refills withdrawn or expired holes, which adds concrete side-effect context beyond idempotentHint and destructiveHint.

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?

The description is dense and long, but it is front-loaded with the primary behavior and then layers in mode differences, re-apply behavior, side effects, and return values. Every major sentence carries useful operational information, though the single block could be easier to scan with lighter structure.

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 complex, multi-mode mutation tool with confirmation gating and an output schema, the description covers the essential behavior: side effects, recipient handling, labor-call replication, idempotency, mode selection, return fields, and the confirmation flow. Nothing critical for correct invocation appears 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 already 100%, so the baseline is 3, but the description adds meaningful semantics for mode: draft_shifts creates one draft shift per position slot across every gig day, while event_members adds roster rows instead and puts nothing on the Staffing board. It also clarifies that confirmation is gated and that the same arguments must be resent with the token, which supplements rather than repeats 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?

The description states a specific verb and resource — dropping a call list onto a gig as draft shifts — and immediately explains the two modes and their different outcomes. An agent can distinguish this from generic labor-call tools because the description specifies shift creation, recipient drafting, and labor-department replication.

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?

It clearly identifies draft_shifts as the default mode and event_members as the legacy path, and it explains the re-apply behavior for existing, withdrawn, or expired slots. It also warns that either mode commits real people and is confirmation-gated. It does not compare this tool to sibling labor-call tools, but the mode-selection guidance is explicit.

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.