Skip to main content
Glama

Create campaign

create_campaign

Create a manual tracker campaign. Only name is required — domain defaults to the workspace default, cost model to none, rotation to by_position. Give offer_id (and optionally landing_id) to build the default flow with that single destination, or send a full flows tree (flows → rules → destinations; see get_campaign include=flows for the shape). Returns the campaign with its click_url.

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
nameYes
tagsNoTag ids (see list_tags)
aliasNoShort code used in the click URL /c/{alias}; generated when omitted. Globally unique.
flowsNoRouting tree, evaluated in order. Exactly one flow should be is_default (catch-all, no rules). On update the list is complete: rows match by id, omitted rows are deleted.
notesNo
pixelsNoAttached conversion pixels (complete list on update)
group_idNo
offer_idNoCreate shortcut: route the default flow to this offer (ignored when flows is sent)
cost_typeNoHow click cost is booked (auto = from the {cost} macro)
domain_idNoTracking domain (see list_domains; defaults to the workspace default on create)
postbacksNoCampaign-level outgoing postbacks (complete list on update)
cost_valueNoCost per click / per 1000 (cpc / cpm) or per conversion (cpa); % for revshare
landing_idNoCreate shortcut: show this landing before the offer (needs offer_id)
auto_metricNo
sticky_flowNoCookie-pin a returning visitor to the flow and destination they got first (priority flows still win)
site_list_idNoSite list attached to the campaign
traffic_lossNo0–100 % traffic-loss compensation; null = inherit the traffic source
cost_currencyNoDefault USD
flow_rotationNoauto = EPC/CR bandit split of each flow's destinations
network_linksNoIds of campaigns already running on the campaign's API traffic source, exactly as the network shows them — network actions (start/stop, stats, bids, lists) then act on them. Complete list: replaces the manual links, [] clears them, omit to leave them as they are. A link turns a manual campaign into an api one; removing the last turns it back. Ignored for sources without an API connection.
remember_offerNoKeep a returning visitor on the offer they first got
auto_min_clicksNoauto rotation: clicks before exploiting (default 100)
back_button_urlNoBack button target http(s) URL, macros allowed (target = url)
uniqueness_modeNo
uniqueness_scopeNo
backup_domain_idsNoOrdered failover pool for automatic domain switching (max 20)
traffic_source_idNo
uniqueness_periodNoHours (1–8760, default 24)
back_button_targetNoBack button: where a visitor pressing Back on a served landing / PWA install page is sent; null = off
auto_explore_percentNoauto rotation: exploration share 0–50 (default 10)
back_button_offer_idNoBack button target offer (target = offer)
back_button_campaign_idNoBack button target campaign (target = campaign; not the campaign itself)
sticky_flow_keep_click_idNoSticky flow: a return visit resumes the original click id instead of minting a new click
sticky_flow_skip_inactiveNoSticky flow: route afresh when the sticky flow is paused (default true); false keeps serving it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / pixels / items / properties / event_mapping / description
      Previous value: -"Tracker event → platform event name, e.g. {\"lead\":\"Lead\",\"sale\":\"Purchase\"}. For google_ads pixels the value is a conversion action id (numeric) or \"default\" for the pixel-level one"New value: +"Tracker event → platform event name, e.g. {\"lead\":\"Lead\",\"sale\":\"Purchase\"}. Keys: click, lead, sale, reject, upsell, pwa_install, tg_start, tg_join (Telegram bot start / channel join) or a conversion type code. For google_ads pixels the value is a conversion action id (numeric) or \"default\" for the pixel-level one"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare it as a non-read-only, non-idempotent, non-destructive write. The description adds real behavior: which fields default and to what (domain, cost_type none, flow_rotation by_position), the flows→rules→destinations shape to follow, and the return value ('the campaign with its click_url'), which matters since there is no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core action, then the defaults, then the two creation modes, with a pointer to get_campaign include=flows for the tree shape. Four dense sentences and no filler or repetition of the schema.

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 34-parameter create tool with no output schema, the description covers the required field, the defaulted fields, the two mutually exclusive routing modes, and the return shape. It is not exhaustive on the many optional configuration parameters, but the schema documents those at high coverage.

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?

With 34 parameters at 79% schema coverage the baseline is 3, but the description adds framing the schema cannot: only name is required, offer_id/landing_id are a shortcut that must not be combined with flows, and the flows tree must have exactly one default catch-all flow. The remaining ~30 parameters (pixels, postbacks, stickiness, back button) are left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'Create a manual tracker campaign.' The word 'manual' implicitly separates it from create_campaign_from_meta and clone_campaign, but no sibling is named, so differentiation rests on inference.

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?

Explains the two creation paths clearly: the offer_id/landing_id shortcut builds a single-destination default flow, while sending a full flows tree overrides it ('ignored when flows is sent'). It also states what is required versus defaulted. It does not say when to prefer a sibling (meta campaign creation, cloning) or when not to use this tool.

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