Skip to main content
Glama

Save a gig as a template

save_event_as_template
Destructive

Save a gig as a reusable gig template (a TEMPLATE-status event) that brief-to-plan can plan from. Structure is kept — schedule shape, roles, checklist — while people, money, and client data are always left out. Run preview_save_event_as_template first, show the user what is kept and dropped, and pass its preview_token back so the save matches the preview. target_template_id saves a NEW VERSION of an existing template instead of creating another one. Nobody is notified. Runs on the first call; there is no confirmation step.

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>"
    },
    "name": "save_event_as_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNonotes stored on the template
titleNotemplate name; defaults to the gig title
excludeNosection keys to drop from the template
includeNosection keys to keep that the template would otherwise drop
event_idYesthe gig to save as a template
preview_tokenNotoken from preview_save_event_as_template, so the save matches the preview
target_template_idNoexisting template id to save a new version of, instead of creating a new one

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: { assignments, event { admin_notes, admin_notes_saved, assignees, assignments, calendar_event_id, continuous_music, contact_email, contact_name, and 56 more fields }, invitations [{ converted_to_offer_id, call_order, currency, decline_reason, delivery_status, email, email_bounced_at, email_delivered_at, and 20 more fields }], members [{ calendar_status, call_order, email, id, invitation_status, org_position_id, phone_number, position_name, and 4 more fields }], template_summary { last_used_at, run_of_show_item_count, shift_count, task_count, used_count }, inventory_short_count, viewer_capabilities { can_manage_event, can_manage_assignees, can_manage_staffing, can_manage_tasks, can_edit_run_of_show, can_view_financials, can_edit_financials, can_write_show_notes, and 11 more fields }, read_at } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the destructiveHint=true annotation, the description discloses exactly what survives (schedule shape, roles, checklist) and what is always stripped (people, money, client data), plus that nobody is notified and there is no confirmation gate. That is precisely the operational context an agent needs before invoking an irreversible write.

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

Conciseness5/5

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

Four short sentences, each carrying a distinct load: identity, kept/dropped contract, required preview workflow, and execution semantics. The most decision-critical facts (what is dropped, run preview first) are front-loaded with no filler.

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, non-idempotent write with 7 parameters, the definition covers the data contract, the mandatory preview handshake, the versioning alternative, and side effects (no notifications, no confirmation). An output schema exists, so return values need not be explained, and nothing an agent needs to call this safely is missing.

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%, so every parameter is already documented in the schema; the description only restates preview_token and target_template_id, though it does frame them within the preview-then-save workflow. It says nothing about the include/exclude section keys or notes, so it adds little beyond structured data. Baseline 3 is appropriate.

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 gives a specific verb and resource ('save a gig as a reusable gig template') and pins down what a template is here: a TEMPLATE-status event that brief-to-plan can plan from. It also implicitly distinguishes itself from its preview sibling by describing the preview as a separate preceding step, and from save_staffing_template by scoping to the whole gig rather than staffing.

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 states an explicit workflow requirement (run preview_save_event_as_template first, show the user what is kept and dropped, then pass preview_token) and names the alternative branch: target_template_id to version an existing template rather than create a new one. It also removes ambiguity about confirmation by saying it runs on the first call with no confirmation step.

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.