Skip to main content
Glama

generate_campaign_sequence_tool

Destructive

Write a fresh AI-generated sequence for a campaign, deleting all of its current steps (hand-written content and attachments included) and replacing them with new steps that hold AI-written topics and automatic wait days. Optionally takes the ordered channel list to generate for; without one it writes three email steps. Each contact's message is then AI-written from its step's topic when that step is scheduled, and each AI-written message costs credits. It also runs on a campaign that is already sending: its enrolled contacts continue on the new steps, and because every step is new, contacts part-way through may be sent the new sequence from its first step, while messages already queued still go out as written. When the campaign has a linked knowledge hub, it may also replace the campaign's stored company description with the hub's context. Refused with SEQUENCE_STRUCTURE_LOCKED for a sequence with conditions or A/B splits once the campaign has started. It is the same operation as generate_ai_sequence_tool, so use one or the other: each call replaces the steps again.

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": {
      "campaignId": "<campaignId>"
    },
    "name": "generate_campaign_sequence_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
sequenceNo
campaignIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare destructive/openWorld/non-readOnly; the description goes far beyond them, spelling out that all existing steps and attachments are deleted, that credits are consumed per AI-written message, how in-flight contacts and queued messages behave, and that the company description may be overwritten from the linked hub. It also names the specific error code returned in the locked case.

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 destructive replace action is front-loaded and every sentence carries real information about consequences or costs. Several sentences are long compound clauses, which makes it denser than necessary, but there is no filler.

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

Completeness5/5

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

For a destructive, credit-consuming mutation with no output schema, the description covers what is destroyed, cost implications, mid-flight behavior, side effects on campaign metadata, and the failure mode. An agent has enough to decide and call safely; only return-value info is absent, which is not required here.

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 0%, so the description must carry the load, and it does: it explains that the channel list is ordered and that omitting it yields three email steps. Allowed channel values are only discoverable from the schema enum, so the meaning is not fully exhausted, but the key default and ordering semantics are added.

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 ('Write a fresh AI-generated sequence for a campaign') plus the scope of what it replaces. It explicitly names the sibling generate_ai_sequence_tool as the identical operation, so an agent can distinguish this from listing, previewing, or step-editing siblings 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 an explicit either/or with the equivalent sibling ('use one or the other') and states a hard precondition for refusal (SEQUENCE_STRUCTURE_LOCKED for sequences with conditions or A/B splits once started). It does not route the agent to preview_campaign_sequence_tool or check_sequence_list_compatibility_tool first, but the usage context is otherwise clear.

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