Skip to main content
Glama

Set template planning rules

set_template_planning_rules
DestructiveIdempotent

Set the planning rules on a gig template: anchors (named schedule landmarks such as doors or downbeat), constraints between entries, the entry keys that stay fixed when a plan moves, and match hints (event types and keywords) that steer suggest_plan_templates. Rules make every future plan built from this template land better. The event must be a TEMPLATE and the caller an org admin or gig manager. 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": "set_template_planning_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
anchorsNoanchor key → schedule entry key, e.g. {"doors": "doors_open"}
event_idYesthe TEMPLATE-status event id (list_events event_status="TEMPLATE")
constraintsNoordering rules, each {id, rule: "before" | "after" | "within" | "minDuration", ...rule fields}; the server validates and names any bad field
match_hintsNohints that raise this template in suggest_plan_templates
fixed_entry_keysNoschedule entry keys that keep their clock time when the plan is re-anchored

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: { rules } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (destructive, idempotent, non-read-only), the description discloses that no one is notified and that it executes on the first call with no confirmation step, which is important for a destructive operation an agent might otherwise expect to be confirmed. It does not say whether existing rules are fully replaced or merged, which is the one behavioral fact left unstated.

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 rule categories come first, followed by preconditions and then side-effect behavior, which is a sensible front-loaded order. It runs slightly long in one block, but essentially every sentence contributes a distinct fact.

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

Completeness3/5

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

With an output schema present, return values need no explanation, and auth plus notification behavior are covered. However, for a tool annotated destructive on a template, the description leaves open whether a call overwrites previously configured rules and whether omitted fields are cleared — a meaningful gap for a 5-parameter nested mutation.

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 coverage is 100%, so the baseline is 3. The description names the four rule categories and adds the intent behind match_hints ('steer suggest_plan_templates'), but it does not meaningfully elaborate the anchors, constraints, or fixed_entry_keys parameters beyond what the schema already documents with examples.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Set the planning rules on a gig template') and enumerates the rule categories: anchors, constraints, fixed entry keys, and match hints. It also explains the downstream effect on suggest_plan_templates. It stops short of distinguishing itself from sibling mutations like save_event_as_template or rebase_event_plan_template, so it is clear but not fully differentiated.

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?

Explicit preconditions are given: the event must be in TEMPLATE status and the caller must be an org admin or gig manager, with a pointer to list_events event_status="TEMPLATE" in the schema for obtaining the id. It does not state when to avoid this tool or name an alternative for editing rules on a non-template event, so there is clear context but no exclusions.

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.