Skip to main content
Glama

xmagnet

create_campaign

Create a DRAFT email campaign via a programmatic wizard. Call this tool and it will guide through the steps — no manual orchestration needed. WIZARD STEPS (handled automatically by the tool):

  1. Call with contacts + total_contacts → tool returns engine picker (NextGen vs MyConvo)

  2. Add campaign_type from user's click → tool returns campaign category chips (promotional, newsletter, event…)

  3. Add campaign_category from user's click → tool returns engine-specific template gallery MyConvo: shows plain_email_templates (personal plain-text) + the user's sender inboxes; with no saved templates it returns AI-written copy (subject options + body). NextGen: shows campaign_templates (HTML).

  4. Add template_id (or subject + body for AI copy) and, for MyConvo, from_account → tool creates the draft. RULES: Reuse contacts from prior search — never re-search. Pass total_contacts from search result's total_in_crm so the user always sees the full count. Saves as DRAFT only — no emails sent.

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

Input Schema

NameRequiredDescriptionDefault
bodyNoEmail body (only needed for AI-generate path, not template path).
nameYesCampaign name
toneNoEmail tone — collected from user alongside campaign_description.
subjectNoSubject line (only needed for AI-generate path, not template path).
contactsNoContact objects from prior search to add as recipients.
template_idNoTemplate ID selected by user from wizard step 3 gallery.
from_accountNoSender inbox (MyConvo only) — one of the connected inboxes the wizard lists in step 3. Ask the user if they have more than one.
campaign_typeNoEngine chosen by user. Omit on first call — tool will prompt.
total_contactsNoTotal contact count from search result's total_in_crm. Always pass this so user sees full count.
campaign_categoryNoCampaign category chosen by user. Omit until user picks from wizard step 2.
campaign_descriptionNoWhat the campaign is about — collected from user when no MyConvo templates found. Used to auto-generate plain-text content.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / from_account / description
      Previous value: -"Sender email address (MyConvo only)."New value: +"Sender inbox (MyConvo only) — one of the connected inboxes the wizard lists in step 3. Ask the user if they have more than one."
  2. Changed11 schema fields changed
    • addedInput schema / properties / body
      Added value: +{
      +  "description": "Email body (only needed for AI-generate path, not template path).",
      +  "type": "string"
      +}
    • addedInput schema / properties / campaign_category
      Added value: +{
      +  "description": "Campaign category chosen by user. Omit until user picks from wizard step 2.",
      +  "enum": [
      +    "promotional",
      +    "newsletter",
      +    "event",
      +    "lead_gen",
      +    "follow_up",
      +    "product"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / campaign_description
      Added value: +{
      +  "description": "What the campaign is about — collected from user when no MyConvo templates found. Used to auto-generate plain-text content.",
      +  "type": "string"
      +}
    • changedInput schema / properties / campaign_type / description
      Previous value: -"Must be explicitly chosen by user — never default"New value: +"Engine chosen by user. Omit on first call — tool will prompt."
    • changedInput schema / properties / contacts / description
      Previous value: -"Contact objects to add as recipients"New value: +"Contact objects from prior search to add as recipients."
    • changedInput schema / properties / from_account / description
      Previous value: -"Sender email address (MyConvo only)"New value: +"Sender email address (MyConvo only)."
    • addedInput schema / properties / subject
      Added value: +{
      +  "description": "Subject line (only needed for AI-generate path, not template path).",
      +  "type": "string"
      +}
    • changedInput schema / properties / template_id / description
      Previous value: -"REQUIRED. Template ID from list_campaign_templates. Always call list_campaign_templates first and let user pick."New value: +"Template ID selected by user from wizard step 3 gallery."
    • addedInput schema / properties / tone
      Added value: +{
      +  "description": "Email tone — collected from user alongside campaign_description.",
      +  "enum": [
      +    "professional",
      +    "friendly",
      +    "casual",
      +    "urgent"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / total_contacts
      Added value: +{
      +  "description": "Total contact count from search result's total_in_crm. Always pass this so user sees full count.",
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "name",
      -  "campaign_type",
      -  "template_id"
      -]New value: +[
      +  "name"
      +]
  3. Changed8 schema fields changed
    • removedInput schema / properties / body
      Removed value: -{
      -  "description": "Email body (HTML or plain text)",
      -  "type": "string"
      -}
    • removedInput schema / properties / campaign_type / default
      Removed value: -"myconvo"
    • addedInput schema / properties / campaign_type / description
      Added value: +"Must be explicitly chosen by user — never default"
    • changedInput schema / properties / contacts / description
      Previous value: -"List of contact objects to add as recipients"New value: +"Contact objects to add as recipients"
    • changedInput schema / properties / from_account / description
      Previous value: -"Sender email address"New value: +"Sender email address (MyConvo only)"
    • removedInput schema / properties / subject
      Removed value: -{
      -  "description": "Email subject line",
      -  "type": "string"
      -}
    • addedInput schema / properties / template_id
      Added value: +{
      +  "description": "REQUIRED. Template ID from list_campaign_templates. Always call list_campaign_templates first and let user pick.",
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "name",
      -  "subject",
      -  "body"
      -]New value: +[
      +  "name",
      +  "campaign_type",
      +  "template_id"
      +]
  4. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the mutation/safety profile is partly covered; the description earns real credit by adding 'Saves as DRAFT only — no emails sent', which the annotations cannot express. It also discloses that the tool is stateful across calls, returning engine pickers and template galleries rather than creating on the first invocation. However, it says nothing about what the successful final call returns (campaign id, confirmation) or what failure looks like, leaving a gap for an 11-parameter multi-turn mutation.

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?

Content is front-loaded with purpose first, then numbered steps, then a RULES block in caps — a clear scannable hierarchy. Length is justified by a four-stage wizard, though the step text partially restates schema descriptions (total_contacts, campaign_category) rather than only adding cross-parameter logic.

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 complex, stateful, 11-parameter creation flow with no output schema, the description covers the full call sequence, the branching between MyConvo and NextGen, and the draft-only safety guarantee. The remaining gap is post-creation behavior — no statement of what the returned draft looks like or what the agent should do with it afterwards — which matters given there is no output schema to fall back on.

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 description coverage is 100%, so the baseline is 3, but the description adds genuine sequencing semantics the schema cannot: campaign_type, campaign_category, and template_id are only valid at specific wizard stages, and from_account is MyConvo-only while subject/body apply only to the AI-generate path. That conditional-path mapping is the most useful thing an agent can know here. It stops short of 5 because it never explains tone/campaign_description interaction or validation rules for contacts objects.

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?

The opening sentence gives a specific verb and resource ('Create a DRAFT email campaign') plus the delivery mechanism ('programmatic wizard'), and the DRAFT qualifier immediately separates it from anything that would send mail. Against siblings like create_sequence_draft, generate_campaign_content, and list_campaigns, this states its own scope tightly enough to be selected without opening the schema.

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?

It provides explicit call-order guidance across four steps, including which fields to omit on the first call ('Omit on first call — tool will prompt') and when to add each one. The RULES block adds hard constraints ('Reuse contacts from prior search — never re-search', 'Always pass total_contacts'), which is stronger routing guidance than merely naming an alternative sibling.

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