Skip to main content
Glama

Create a campaign

create_campaign

Create a draft outbound campaign: agent, caller-id numbers, contact list, purpose, consent_basis (existing_customer | explicit_consent), calling windows, retry policy (or a preset: sales, collections, single_attempt), concurrency and optional schedule. It starts only when launched with launch_campaign.

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": {
      "project_id": "<project_id>",
      "name": "<name>",
      "agent_id": "<agent_id>",
      "from_number_ids": "<from_number_ids>",
      "contact_list_id": "<contact_list_id>",
      "purpose": "<purpose>",
      "consent_basis": "<consent_basis>"
    },
    "name": "create_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
ends_atNo
purposeYesOptional, free-form outbound purpose, recorded when sent; no purpose or token is ever refused. The documented advisory catalog is: appointment, booking_confirmation, callback_requested, customer_outreach, delivery_notification, ops_alert, other, payment_reminder, personal_errand, reservation, status_check, support.
agent_idYes
languageNo
time_zoneNoIANA time zone (default UTC), matched and stored like a contact's time_zone: ignoring case, another spelling of a zone stored as the zone it names, an offset such as UTC-5 refused.
project_idYes
retry_policyNo
consent_basisYes
max_callbacksNoHow many call-backs one contact may be granted in this campaign. A request beyond it finishes the contact with skip_reason callback_limit_reached.
time_zone_modeNo
calling_windowsNo{weekday: [{start: 'HH:MM', end: 'HH:MM'}]}; defaults per destination country.
contact_list_idYes
from_number_idsYes
max_concurrencyNo
organization_idNoOptional. Defaults to the authenticated workspace; when supplied it must be that workspace's id.
followup_contextNoWhat a follow-up call (a retry or a call-back) is told about the previous conversation with the contact. summary: its summary reaches the call as the built-in variables campaign.previous_summary and campaign.previous_follow_up; campaign.previous_summary_status says whether there is one. Every campaign call carries campaign.call_kind (first_contact, retry, callback or reopened).none
scheduled_start_atNo
followup_transcriptNoFree-form AI agents only: a follow-up call (a retry or a call-back) is given the previous conversation's transcript, newest turns first, at most 4,000 characters, as quoted data at the end of its prompt. Not given on a workflow agent or Eleven Realtime, on a call with a keypad variable, or when the earlier call held a value back or keyed one. Independent of followup_context.
retry_policy_presetNo
reserved_concurrencyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / followup_transcript
      Added value: +{
      +  "default": false,
      +  "description": "Free-form AI agents only: a follow-up call (a retry or a call-back) is given the previous conversation's transcript, newest turns first, at most 4,000 characters, as quoted data at the end of its prompt. Not given on a workflow agent or Eleven Realtime, on a call with a keypad variable, or when the earlier call held a value back or keyed one. Independent of followup_context.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / followup_context
      Added value: +{
      +  "default": "none",
      +  "description": "What a follow-up call (a retry or a call-back) is told about the previous conversation with the contact. summary: its summary reaches the call as the built-in variables campaign.previous_summary and campaign.previous_follow_up; campaign.previous_summary_status says whether there is one. Every campaign call carries campaign.call_kind (first_contact, retry, callback or reopened).",
      +  "enum": [
      +    "none",
      +    "summary"
      +  ],
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / max_callbacks
      Added value: +{
      +  "default": 2,
      +  "description": "How many call-backs one contact may be granted in this campaign. A request beyond it finishes the contact with skip_reason callback_limit_reached.",
      +  "maximum": 10,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / purpose / description
      Previous value: -"Required, free-form outbound purpose declaration -- never refused for being novel. Any non-empty token is accepted; the documented advisory catalog is: appointment, booking_confirmation, callback_requested, customer_outreach, delivery_notification, ops_alert, other, payment_reminder, personal_errand, reservation, status_check, support."New value: +"Optional, free-form outbound purpose, recorded when sent; no purpose or token is ever refused. The documented advisory catalog is: appointment, booking_confirmation, callback_requested, customer_outreach, delivery_notification, ops_alert, other, payment_reminder, personal_errand, reservation, status_check, support."
  5. First observed

TDQS

A4/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 profile is known; the description usefully adds that creation produces a non-running draft, which is real behavioral value. It says nothing about required permissions, whether fields can later be changed, or what happens on duplicate names, so it does not go much beyond the annotations.

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?

Two dense sentences, front-loaded with the create verb and with the launch constraint placed last so it is not missed. The parenthetical enumerations are compact, though the long run-on field list makes it slightly list-like rather than explanatory.

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

Completeness3/5

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

For a 21-parameter, non-idempotent creation tool with no output schema, the description covers the core fields and the draft/launch lifecycle but leaves notable behavior undocumented (follow-up context/transcript effects, time-zone resolution, concurrency reservations). Adequate to invoke safely, but an agent would still need to read the schema closely for over a third of the parameters.

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 only 33% across 21 properties, so the description must compensate, and it does map most of the load-bearing inputs: agent, caller-id numbers, contact list, purpose, consent_basis, calling windows, retry policy, concurrency and schedule. It omits the follow-up parameters (followup_context, followup_transcript), time_zone_mode, max_callbacks and the distinction between max_concurrency and reserved_concurrency.

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 ('Create a draft outbound campaign') and enumerates the main inputs the call must supply. It also draws the boundary against launch_campaign, so an agent can tell creation from activation without opening either 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?

Explicitly says the campaign is only a draft and starts only via launch_campaign, which gives a clear next-step/alternative. It stops short of stating prerequisites (e.g., the contact list or numbers must already exist) or when to prefer update_campaign over re-creating.

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.