duplicate_line
Copy a line and all its endpoints/targets/rules into a new line key — build v2 from v1. The copy starts inactive (a draft); edit it, then activate_line when ready. Requires edit access.
This record as markdown: /tools/dev-echorelay-management/duplicate-line.md
What duplicate_line does on EchoRelay
AI agents use duplicate_line to create or update resources in EchoRelay, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your EchoRelay environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | — | Optional name for the copy (defaults to "<source name> (copy)"). |
lineKey | string | Yes | The source line key to copy. |
newLineKey | string | Yes | New line key for the copy, e.g. "v2". |
Parameters from the server's own tool schema.
Why duplicate_line is rated Medium
This tool creates a new line by duplicating an existing one. It is a reversible write operation (creation of a draft resource). It does not execute code, delete data, or involve financial transactions. The copy starts inactive, limiting blast radius, but misconfiguration of the duplicate could have downstream effects if later activated.
From the tool's definition Copy a line and all its endpoints/targets/rules into a new line key — build v2 from v1. The copy starts inactive (a draft)
Attacks that exploit this kind of access
The rule that runs duplicate_line safely
PolicyLayer is an MCP gateway: it sits between your AI agents and EchoRelay, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For duplicate_line, this is the rule to start with:
duplicate_line stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect EchoRelay, apply this rule, and every duplicate_line call is checked against it from then on.
Questions about duplicate_line
Copy a line and all its endpoints/targets/rules into a new line key — build v2 from v1. The copy starts inactive (a draft); edit it, then activate_line when ready. Requires edit access. It is categorised as a Write tool in the EchoRelay MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
duplicate_line accepts 3 parameters: name, lineKey, newLineKey. Required: lineKey, newLineKey. The full parameter table on this page comes from the server's own tool schema.
Register the EchoRelay MCP server in PolicyLayer and add a rule for duplicate_line: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches EchoRelay. Nothing to install.
duplicate_line is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the duplicate_line rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for duplicate_line. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
duplicate_line is provided by the EchoRelay MCP server (https://mcp.echorelay.dev). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on EchoRelay, and thousands of servers like it.
This server
Across the catalogue