Skip to main content
Glama

Create a campaign

create_campaign
Idempotent

Create a campaign: an ordered sequence of email, wait and task steps run per contact, with follow-ups, stop rules (reply, bounce, unsubscribe and deal stage change stop a contact's sequence), a send window, caps and A/B variants. Pass steps inline, and optionally enroll to select contacts in the same call. It starts as a draft; call simulate_campaign, then launch_campaign. Delivery is a dry run (nothing leaves the system) until the operator switches sending on. Requires the manage_campaigns scope.

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
nameYesCampaign name.
stepsNoOrdered steps. email: {type:"email", variants:[{subject, body, weight?}] or subject+body, condition?, reply_in_thread?}. wait: {type:"wait", days, business_days?}. task: {type:"task", title, due_in_days?, kind? (task|call|meeting), assignee? (human|agent), wait_for_done?}. Templates: {{first_name}} {{last_name}} {{name}} {{email}} {{title}} {{company.name}} {{company.domain}} {{fields.<key>}} {{sender.name}}, with {{var | default: "text"}}.
enrollNoSame selectors as enroll_contacts, applied right after creation.
footerNoRelay identities only: full (default, your text plus the sender, postal address and unsubscribe link) or own (your step body is the whole message; set opt_out_line).
windowNoLocal send window, default {"start":"09:00","end":"17:00"}.
stop_onNoreply, bounce, unsubscribe, deal_stage_change, contact_status_change.
strategyNoYour stated plan: who you are targeting and why. The operator reads it before approving.
timezoneNoIANA zone for fixed mode.
daily_capNo
send_daysNomon..sun, default weekdays.
skip_datesNoDates like 2026-12-25 with no sending.
descriptionNoShort description.
identity_idNoSending identity id, default dry_run.
track_opensNoDefault false. Opens are unreliable.
opt_out_lineNoWith footer own: the exact words your body uses to let a reader opt out, for example reply "no". Every email body must contain it.
timezone_modeNocontact (default: each contact's own zone) or fixed.
idempotency_keyNoOptional. Repeating a call with the same key and the same arguments returns the first result instead of writing again, so retries are safe.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / footer
      Added value: +{
      +  "description": "Relay identities only: full (default, your text plus the sender, postal address and unsubscribe link) or own (your step body is the whole message; set opt_out_line).",
      +  "enum": [
      +    "full",
      +    "own"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / opt_out_line
      Added value: +{
      +  "description": "With footer own: the exact words your body uses to let a reader opt out, for example reply \"no\". Every email body must contain it.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (non-read-only, idempotent, non-destructive, closed-world), the description discloses that the campaign starts as a draft, that delivery is a dry run until the operator enables sending, that the operator reads `strategy` before approving, and that the manage_campaigns scope is required. These are operationally decisive facts an agent cannot get from the structured fields.

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?

Dense but front-loaded: the resource definition comes first, then the lifecycle, then the dry-run caveat and scope. For a 17-parameter nested tool the length is justified, though the single-paragraph block could be split to make the draft/simulate/launch sequence more scannable.

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?

Covers the high-risk gaps for a complex creation tool: lifecycle ordering, dry-run safety, approval gate and auth scope. With no output schema, it never hints at what the call returns (presumably a campaign id), which is the main remaining omission given 17 parameters and nested step objects.

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 already 94%, so the baseline is 3; the description adds real meaning on top by explaining that `steps` are passed inline as an ordered sequence and that `enroll` uses the same selectors as enroll_contacts applied right after creation. It does not restate the remaining parameters, but it does not need to.

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, then defines the resource concretely as 'an ordered sequence of email, wait and task steps run per contact' with stop rules, send window, caps and A/B variants. An agent can distinguish this from update_campaign, get_campaign and simulate_campaign 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly lays out the lifecycle: creation yields a draft, then 'call simulate_campaign, then launch_campaign'. It also positions `enroll` as an inline alternative to a separate enroll_contacts call, and states the manage_campaigns scope prerequisite. Alternatives and ordering are named rather than inferred.

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