Skip to main content
Glama

Duplicate an automation

duplicate_automation

Copy an existing flow, graph and all, so you only have to change what differs — typically the keyword and the post. The copy is created TURNED OFF on purpose: two live flows listening for the same keyword on the same post would send every commenter two DMs. Change what you need, then turn it on with set_automation_active. Run counters and A/B stats start clean; the copy lands in the same workspace as the original.

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": {
      "flowId": "<flowId>"
    },
    "name": "duplicate_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName for the copy. Defaults to the original plus "(copy)".
flowIdYesThe flow to copy (from list_automations).
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.4/5.0
Behavior5/5

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

Goes well past the annotations: it discloses that the copy is created turned off, explains the reason (duplicate live flows would double-DM commenters), notes that run counters and A/B stats reset, and states the copy lands in the original's workspace. These are exactly the side effects an agent cannot infer from readOnlyHint=false / destructiveHint=false.

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?

Three tight sentences, front-loaded with the action, then the non-obvious risk-driven behavior, then the activation step. Every sentence carries information an agent needs; nothing is padding.

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?

Strong on side effects and next steps for a tool with no output schema. The one gap is the return value: it never says whether the response includes the new flow's ID, which the agent needs to call set_automation_active on the copy. Everything else an agent needs to call it correctly is present.

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 flowId, name, and idempotencyKey are already documented in structured data. The description adds only indirect meaning — no workspace parameter exists because the copy inherits the original's workspace — and does not elaborate on idempotencyKey behavior beyond the schema. 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?

States a specific verb and resource ('Copy an existing flow, graph and all') and distinguishes the result from creating from scratch — you only change what differs. An agent can separate this from create_automation or create_automation_from_template without opening a schema.

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 clear usage context (duplicate when most of the flow is reusable) and an explicit follow-up step: 'Change what you need, then turn it on with set_automation_active.' It stops short of naming when NOT to duplicate, e.g. versus starting from a template, so it is not a full 5.

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