Skip to main content
Glama

Create an automation from a template

create_automation_from_template

Instantiate a template as a new flow, adapted to this business. overrides rewrites any field of any node (the greeting, the question, the tags, the buttons) and trigger replaces the trigger, so the flow comes out configured instead of generic. Call list_automation_templates first to see each node's id and current values. Created INACTIVE: review it with preview_automation and turn it on with set_automation_active.

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": {
      "templateId": "<templateId>"
    },
    "name": "create_automation_from_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoCustom name. Optional.
triggerNoReplace the trigger, e.g. {"type":"keyword","keywords":["price","info"]}. See get_automation_node_types for the shape of each trigger type.
overridesNoPer-node field overrides keyed by node id, e.g. {"intro":{"text":"Hi! Want the price list?"},"tag":{"tags":["lead","summer"]}}. Only the fields you pass change; `id` and `type` cannot be changed. Node ids come from the template graph.
templateIdYesId from list_automation_templates.
workspaceIdNoWorkspace to work on (an id from list_workspaces). Not needed when this connection is tied to one workspace, or when you pass an account: the account's workspace is used.
idempotencyKeyNoOptional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=false but say nothing about lifecycle, and the description fills exactly that gap: the flow is 'Created INACTIVE' and must be reviewed then activated. It also clarifies that overrides are partial ('Only the fields you pass change') and that id/type are immutable, which prevents accidental destructive rewrites. The idempotencyKey behavior is left to the schema rather than reinforced here.

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?

Four sentences, each load-bearing, with the action front-loaded and the lifecycle warning placed last where it is most likely to be acted on. The overrides/trigger sentence partially duplicates the schema text, which is the only redundancy.

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

Completeness4/5

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

For a mutation tool with nested objects, no output schema, and annotations that omit lifecycle, the description supplies the critical missing context (inactive creation, prerequisite listing, follow-up tools). It does not say what the call returns, so an agent must infer that the new automation's id is available for the subsequent preview/activate calls.

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 templateId, workspaceId, trigger, overrides and idempotencyKey are already documented in structured fields. The description restates the overrides/trigger semantics and adds only the framing that the flow 'comes out configured instead of generic' rather than new syntax or edge cases. Baseline 3 is appropriate when the schema carries the parameter burden.

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: 'Instantiate a template as a new flow, adapted to this business.' The template-based nature clearly separates it from a blank-flow sibling such as create_automation, and the two customization levers (overrides, trigger) are named up front.

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?

Gives explicit workflow ordering: call list_automation_templates first to learn node ids and current values, then preview_automation and set_automation_active afterwards. It never states when to prefer this over creating an automation from scratch, so it stops short of a full when/when-not contrast.

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.

Resources