Skip to main content
Glama

segments_automations_copy

Copies automations from source_segment (same workspace) to the end of this segment's chain, keeping their order, config, run conditions and overwrite flag. Pass automations (sqids in the source segment) to copy only some; omit to copy all.

Automations that move leads to other segments (qualification positive_move_to_segment / negative_move_to_segment) are copied disabled and listed in needs_review: point them at this campaign's segments, then enable them. Copies don't run on existing leads; use segments_enrichments_run_all for that.

Method: POST /api/v1/workspaces/{workspace_sqid}/segments/{segment_sqid}/automations/copy/

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": {
      "segment_sqid": "<segment_sqid>",
      "source_segment": "<source_segment>"
    },
    "name": "segments_automations_copy"
  }
}

Input Schema

NameRequiredDescriptionDefault
automationsNoSqids of the source automations to copy. Omit to copy all.
segment_sqidYes
source_segmentYesSqid of the segment to copy from.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does so well: it discloses that cross-segment move automations are copied disabled and surfaced in `needs_review`, that copies do not run on existing leads, and that the source must be in the same workspace. It stops short of stating permission requirements, failure modes for invalid sqids, or the response payload beyond `needs_review`.

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 tightly packed blocks front-loaded with the action and destination, then the behavioral caveats, then the endpoint. No sentence is redundant; the sqid/omit-all guidance appears exactly where the reader needs it.

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 no annotations and no output schema, the description supplies the mutation semantics, the disabled-copy side effect, and the returned `needs_review` field. Missing only error/partial-failure behavior and any note on whether the operation is atomic when several automations are copied.

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 67%, and the description fills the gaps: it clarifies that `automations` are sqids in the source segment, that omitting them copies everything, and that `source_segment` must belong to the same workspace and points at the source side of the operation. Only `segment_sqid` (the implicit target) is left to inference.

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?

Uses a specific verb (copies) plus the exact target location ('to the end of this segment's chain'), and names the attribute set preserved (order, config, run conditions, overwrite flag). That level of detail distinguishes it from siblings like segments_automations_reorder or workspaces_segments_automations_create without opening their schemas.

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 states the constrained reading of `automations` (omit to copy all) and names the correct alternative for the scenario this tool does not cover: 'Copies don't run on existing leads; use `segments_enrichments_run_all` for that.' It also prescribes the required follow-up workflow for disabled move automations, which removes the main ambiguity about what happens after the call.

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.