Skip to main content
Glama

generate_ai_sequence_tool

Destructive

AI-generate a campaign's outreach sequence, for when the user wants the sequence written for them. It deletes all of the campaign's current steps (hand-written content and attachments included) and replaces them with one new step per channel in the sequence list, with AI-written step topics and automatic wait days. The sequence list takes at most 10 channels, each one of email, linkedin_connection, linkedin_message, linkedin_visit, linkedin_like, dialer, inmail or todo; a longer list or any other channel name is refused and nothing changes, and an omitted or empty list gives three email steps. Each lead'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 leads continue on the new steps, and because every step is new, leads part-way through may be sent the new sequence from its first step, while messages already queued still go out as written. With a linked knowledge hub it may also replace the campaign's stored company description. Refused for a sequence with conditions or A/B splits once the campaign has started. It is the same operation as generate_campaign_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_ai_sequence_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
sequenceNoOptional ordered list of step channels, e.g. ["email","linkedin_message","email"]. Omit to let the system choose.
campaignIdYesThe campaign to generate an AI sequence for (its 24-hex MongoDB id).

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?

Goes well beyond the supplied annotations (destructiveHint=true, readOnlyHint=false): it names exactly what is destroyed (all current steps, including hand-written content and attachments), what replaces them, that each AI-written message costs credits, that queued messages still send as written, and that mid-flight leads may restart the new sequence from step one. Also discloses the side effect of possibly replacing the stored company description via a linked knowledge hub. Only minor gaps remain, such as what the response looks like.

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?

Front-loads the core action and the destructive consequence, and nearly every sentence adds a distinct fact (credits, defaults, mid-send behavior, refusal conditions). It is a single dense block of roughly 200 words, though, and would scan better with the constraints and defaults separated from the narrative prose.

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 two-parameter, destructive, open-world tool with no output schema, the definition covers destruction scope, defaults, valid inputs, refusal conditions, credit costs, and in-flight campaign behavior, which is more than enough to call it safely. The only missing piece is any hint of what comes back after generation, which matters slightly more given there is no output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema types `sequence` only as an array of strings with no enum, so the description carries the real semantics: the eight permitted channel values, the 10-channel cap, the rejection behavior for a longer or invalid list, and that an omitted or empty list defaults to three email steps. That is meaning the schema cannot supply.

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 ("AI-generate a campaign's outreach sequence") and immediately scopes the audience intent ("for when the user wants the sequence written for them"). It also distinguishes itself from the near-identical sibling by naming generate_campaign_sequence_tool as the same operation, so the agent can tell what this tool is and is not.

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?

Gives explicit when-to-use (user wants the sequence authored for them), explicit alternatives ("It is the same operation as generate_campaign_sequence_tool, so use one or the other"), and concrete when-not cases: sequences with conditions or A/B splits are refused once the campaign has started, and a list over 10 channels or an unknown channel name is refused with nothing changed.

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.