Skip to main content
Glama

Preview saving a gig as a template

preview_save_event_as_template
Read-onlyIdempotent

Preview what saving a gig as a reusable template would keep and drop: retained sections with counts, excluded sections with reasons, what is always left out (people, money, client data), the existing templates a new version could replace, and a preview_token. Pass target_template_id when the user is replacing an existing template — that mode always excludes attachments, and previewing without it mints a token bound to the wrong mode, which save_event_as_template will reject. Writes nothing — pass the preview_token to save_event_as_template to save exactly what was previewed.

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": "preview_save_event_as_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
excludeNosection keys to drop from the template
includeNosection keys to keep that the template would otherwise drop
event_idYesthe gig to preview as a template
target_template_idNoexisting template id being replaced with a new version, if any

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: { retained, excluded, always_left_out, existing_templates, preview_token } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description isn't obligated to prove safety, but it still adds non-obvious behavior: the replace mode always excludes attachments, the token is mode-bound, and a mismatched token is rejected downstream. 'Writes nothing' is slightly redundant with readOnlyHint, but the mode-binding consequence is genuinely new information not present in the annotations.

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 what the preview returns, then the mode caveat, then the handoff to save_event_as_template - a sensible ordering. It is dense but each clause carries information; the only minor waste is the 'Writes nothing' clause, which repeats readOnlyHint.

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?

Covers purpose, mode selection, failure mode, and the downstream token handoff, and an output schema exists so return values need not be spelled out further. Nothing an agent needs in order to invoke this correctly is 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 100%, so the baseline is 3, and the description earns above that by explaining the consequence of target_template_id (mode switch that excludes attachments and binds the token) rather than just restating 'existing template id being replaced.' It says less about exclude/include beyond the schema's own text, but those are self-describing.

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 ('preview') and resource ('saving a gig as a reusable template') and enumerates exactly what the preview returns: retained sections with counts, excluded sections with reasons, always-excluded data, replaceable templates, and a preview_token. This is clearly distinguishable from the sibling save_event_as_template, which actually performs the save.

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 names the trigger condition for target_template_id ('when the user is replacing an existing template') and warns that omitting it in that case mints a token bound to the wrong mode that save_event_as_template will reject. It also routes the agent to the correct follow-up tool: 'pass the preview_token to save_event_as_template to save exactly what was previewed.'

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.