Skip to main content
Glama

Prepare a change to a campaign

prepare_campaign_change

Prepare a change to an existing campaign as a proposal in the Loop inbox (needs a propose key): set a Google Ads search campaign's languages, replace a running search ad's wording and landing page, change a daily budget by more than the per-change limit (the daily cap still applies), give a campaign a total cap that Loop pauses it at, set a max CPC you choose (campaign or ad group; above the workspace max CPC only with overrideWorkspaceCap), move the same daily amount from one campaign to another (total unchanged; both or neither), add an ad group (keywords and one responsive search ad) to a running Google Ads search campaign within its current budget, move a Google Ads or Apple Ads campaign's end date (optionally raising the total cap Loop watches so it does not pause before the new end), keep only chosen keywords in an Apple Ads campaign and pause the rest, set the bid of one keyword in an Apple Ads campaign (daily budget unchanged), add keywords (exact match by default) at one bid to an Apple Ads ad group (daily budget unchanged), set the default bid of an Apple Ads ad group with max_cpc and adGroupName (what a Search Match ad group with no keywords bids), pause a running or scheduled campaign with pause_campaign (budget, end date and ads unchanged; needs only campaignId), set the youngest age a Meta campaign's ad sets or an Apple Ads campaign's ad groups are shown to with min_age and ageMin, optionally (Meta only) with ageMax for the oldest age (Advantage+ audience is turned off so the range is a hard limit; budget, placements and ads unchanged), narrow the Instagram placements of a Meta campaign whose ad sets run on Instagram only with placements and instagramPositions, e.g. ["stream", "reels"] to drop Stories (narrowing only; budget, ages and ads unchanged), change the pixel event a Meta website campaign's ad sets optimize for with optimization_event and event (pixel, budget, targeting and ads unchanged; Meta restarts learning, so a person always approves it), or move unspent total budget between two Meta campaigns that run on a total (lifetime) budget with total_transfer, fromCampaignId and amount (the two totals together and the end dates unchanged). Nothing is sent to the ad platform; a person approves it in Loop.

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": {
      "kind": "<kind>",
      "campaignId": "<campaignId>"
    },
    "name": "prepare_campaign_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
bidNokeyword_bid: the new max bid in the account's currency (major units, e.g. 376 for ¥376). add_keywords: the new keywords' max bid.
capNototal_cap: the total in the campaign's currency.
keepNokeep_keywords: the keyword texts to keep enabled; the campaign's other enabled keywords are paused.
kindYes
adRefNoreplace_search_ad: the ad to replace (customers/…/adGroupAds/…).
eventNooptimization_event: Meta's custom_event_type to optimize for (CONTENT_VIEW = ViewContent, START_TRIAL = StartTrial, …).
sinceNototal_cap: YYYY-MM-DD to count spend from (default today).
ageMaxNomin_age: optional oldest age (at least ageMin). Turns off Advantage+ audience so Meta keeps the range as a hard limit.
ageMinNomin_age: the youngest age the campaign's ad sets are shown to.
amountNobudget_transfer: the daily amount to move. total_transfer: the amount of total budget to move.
familyNoreplace_search_ad / add_ad_group: the workspace campaign family for utm_campaign.
maxCpcNomax_cpc: the new max CPC in the account's currency (Apple Ads: the ad group's default bid). add_ad_group: the new ad group's max CPC (manual CPC campaigns only).
endDateNoend_date: the new last day (YYYY-MM-DD) in the ad account's time zone.
keywordNokeyword_bid: the text of the enabled keyword whose bid changes.
landingNoreplace_search_ad / add_ad_group: landing page without utm_*; UTM is added by Loop.
fundedByNobudget_move: id of the campaign whose budget this uses (recorded only).
keywordsNoadd_ad_group: the new ad group's keywords.
headlinesNo
languagesNolanguages: codes such as vi, ja; empty = all languages.
matchTypeNokeyword_bid: only needed when the same text is enabled with more than one match type. add_keywords: the match type (default EXACT).
campaignIdYesThe campaign id from list_campaigns (budget_transfer, total_transfer: the campaign that receives).
adGroupNameNomax_cpc: an ad group of a manual CPC campaign (omit for the campaign max CPC); on Apple Ads the ad group whose default bid changes (may be omitted when the campaign has one ad group). add_ad_group: the new ad group's name. keyword_bid: only needed when the same keyword is enabled in more than one ad group. add_keywords: the ad group to add to (may be omitted when the campaign has one ad group).
dailyBudgetNobudget_move: the new daily budget in the campaign's currency.
newKeywordsNoadd_keywords: the keyword texts to add (up to 20); each gets matchType (default EXACT) and bid.
utmCampaignNoreplace_search_ad / add_ad_group: utm_campaign for this campaign ({adgroup} allowed).
descriptionsNo
raiseTotalCapNoend_date: if Loop watches a total cap on this campaign, raise it by the added days × daily budget.
fromCampaignIdNobudget_transfer, total_transfer: the campaign that gives the budget.
instagramPositionsNoplacements: the Instagram positions to keep (stream = Feed, story = Stories, reels, explore, …). Must be fewer than the ad sets use now.
overrideWorkspaceCapNomax_cpc / add_keywords: allow a bid above the workspace max CPC.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / instagramPositions
      Added value: +{
      +  "description": "placements: the Instagram positions to keep (stream = Feed, story = Stories, reels, explore, …). Must be fewer than the ad sets use now.",
      +  "items": {
      +    "enum": [
      +      "stream",
      +      "story",
      +      "reels",
      +      "explore",
      +      "explore_home",
      +      "profile_feed",
      +      "ig_search",
      +      "profile_reels"
      +    ],
      +    "type": "string"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "languages",
      -  "replace_search_ad",
      -  "budget_move",
      -  "total_cap",
      -  "max_cpc",
      -  "budget_transfer",
      -  "add_ad_group",
      -  "end_date",
      -  "keep_keywords",
      -  "keyword_bid",
      -  "add_keywords",
      -  "pause_campaign",
      -  "min_age",
      -  "optimization_event",
      -  "total_transfer"
      -]New value: +[
      +  "languages",
      +  "replace_search_ad",
      +  "budget_move",
      +  "total_cap",
      +  "max_cpc",
      +  "budget_transfer",
      +  "add_ad_group",
      +  "end_date",
      +  "keep_keywords",
      +  "keyword_bid",
      +  "add_keywords",
      +  "pause_campaign",
      +  "min_age",
      +  "placements",
      +  "optimization_event",
      +  "total_transfer"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / ageMax
      Added value: +{
      +  "description": "min_age: optional oldest age (at least ageMin). Turns off Advantage+ audience so Meta keeps the range as a hard limit.",
      +  "maximum": 65,
      +  "minimum": 18,
      +  "type": "integer"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / event
      Added value: +{
      +  "description": "optimization_event: Meta's custom_event_type to optimize for (CONTENT_VIEW = ViewContent, START_TRIAL = StartTrial, …).",
      +  "enum": [
      +    "PURCHASE",
      +    "INITIATED_CHECKOUT",
      +    "ADD_TO_CART",
      +    "ADD_PAYMENT_INFO",
      +    "ADD_TO_WISHLIST",
      +    "CONTENT_VIEW",
      +    "SEARCH",
      +    "DONATE",
      +    "CUSTOMIZE_PRODUCT",
      +    "LEAD",
      +    "COMPLETE_REGISTRATION",
      +    "CONTACT",
      +    "SUBMIT_APPLICATION",
      +    "SCHEDULE",
      +    "SUBSCRIBE",
      +    "START_TRIAL",
      +    "FIND_LOCATION"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "languages",
      -  "replace_search_ad",
      -  "budget_move",
      -  "total_cap",
      -  "max_cpc",
      -  "budget_transfer",
      -  "add_ad_group",
      -  "end_date",
      -  "keep_keywords",
      -  "keyword_bid",
      -  "add_keywords",
      -  "pause_campaign",
      -  "min_age",
      -  "total_transfer"
      -]New value: +[
      +  "languages",
      +  "replace_search_ad",
      +  "budget_move",
      +  "total_cap",
      +  "max_cpc",
      +  "budget_transfer",
      +  "add_ad_group",
      +  "end_date",
      +  "keep_keywords",
      +  "keyword_bid",
      +  "add_keywords",
      +  "pause_campaign",
      +  "min_age",
      +  "optimization_event",
      +  "total_transfer"
      +]
  4. Changed4 schema fields changed
    • changedInput schema / properties / amount / description
      Previous value: -"budget_transfer: the daily amount to move."New value: +"budget_transfer: the daily amount to move. total_transfer: the amount of total budget to move."
    • changedInput schema / properties / campaignId / description
      Previous value: -"The campaign id from list_campaigns (budget_transfer: the campaign that receives)."New value: +"The campaign id from list_campaigns (budget_transfer, total_transfer: the campaign that receives)."
    • changedInput schema / properties / fromCampaignId / description
      Previous value: -"budget_transfer: the campaign that gives the budget."New value: +"budget_transfer, total_transfer: the campaign that gives the budget."
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "languages",
      -  "replace_search_ad",
      -  "budget_move",
      -  "total_cap",
      -  "max_cpc",
      -  "budget_transfer",
      -  "add_ad_group",
      -  "end_date",
      -  "keep_keywords",
      -  "keyword_bid",
      -  "add_keywords",
      -  "pause_campaign",
      -  "min_age"
      -]New value: +[
      +  "languages",
      +  "replace_search_ad",
      +  "budget_move",
      +  "total_cap",
      +  "max_cpc",
      +  "budget_transfer",
      +  "add_ad_group",
      +  "end_date",
      +  "keep_keywords",
      +  "keyword_bid",
      +  "add_keywords",
      +  "pause_campaign",
      +  "min_age",
      +  "total_transfer"
      +]
  5. Changed2 schema fields changed
    • addedInput schema / properties / ageMin
      Added value: +{
      +  "description": "min_age: the youngest age the campaign's ad sets are shown to.",
      +  "maximum": 25,
      +  "minimum": 18,
      +  "type": "integer"
      +}
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "languages",
      -  "replace_search_ad",
      -  "budget_move",
      -  "total_cap",
      -  "max_cpc",
      -  "budget_transfer",
      -  "add_ad_group",
      -  "end_date",
      -  "keep_keywords",
      -  "keyword_bid",
      -  "add_keywords",
      -  "pause_campaign"
      -]New value: +[
      +  "languages",
      +  "replace_search_ad",
      +  "budget_move",
      +  "total_cap",
      +  "max_cpc",
      +  "budget_transfer",
      +  "add_ad_group",
      +  "end_date",
      +  "keep_keywords",
      +  "keyword_bid",
      +  "add_keywords",
      +  "pause_campaign",
      +  "min_age"
      +]
  6. Changed1 schema field changed
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "languages",
      -  "replace_search_ad",
      -  "budget_move",
      -  "total_cap",
      -  "max_cpc",
      -  "budget_transfer",
      -  "add_ad_group",
      -  "end_date",
      -  "keep_keywords",
      -  "keyword_bid",
      -  "add_keywords"
      -]New value: +[
      +  "languages",
      +  "replace_search_ad",
      +  "budget_move",
      +  "total_cap",
      +  "max_cpc",
      +  "budget_transfer",
      +  "add_ad_group",
      +  "end_date",
      +  "keep_keywords",
      +  "keyword_bid",
      +  "add_keywords",
      +  "pause_campaign"
      +]
  7. Changed6 schema fields changed
    • changedInput schema / properties / adGroupName / description
      Previous value: -"max_cpc: an ad group of a manual CPC campaign (omit for the campaign max CPC); on Apple Ads the ad group whose default bid changes (may be omitted when the campaign has one ad group). add_ad_group: the new ad group's name. keyword_bid: only needed when the same keyword is enabled in more than one ad group."New value: +"max_cpc: an ad group of a manual CPC campaign (omit for the campaign max CPC); on Apple Ads the ad group whose default bid changes (may be omitted when the campaign has one ad group). add_ad_group: the new ad group's name. keyword_bid: only needed when the same keyword is enabled in more than one ad group. add_keywords: the ad group to add to (may be omitted when the campaign has one ad group)."
    • changedInput schema / properties / bid / description
      Previous value: -"keyword_bid: the new max bid in the account's currency (major units, e.g. 376 for ¥376)."New value: +"keyword_bid: the new max bid in the account's currency (major units, e.g. 376 for ¥376). add_keywords: the new keywords' max bid."
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "languages",
      -  "replace_search_ad",
      -  "budget_move",
      -  "total_cap",
      -  "max_cpc",
      -  "budget_transfer",
      -  "add_ad_group",
      -  "end_date",
      -  "keep_keywords",
      -  "keyword_bid"
      -]New value: +[
      +  "languages",
      +  "replace_search_ad",
      +  "budget_move",
      +  "total_cap",
      +  "max_cpc",
      +  "budget_transfer",
      +  "add_ad_group",
      +  "end_date",
      +  "keep_keywords",
      +  "keyword_bid",
      +  "add_keywords"
      +]
    • changedInput schema / properties / matchType / description
      Previous value: -"keyword_bid: only needed when the same text is enabled with more than one match type."New value: +"keyword_bid: only needed when the same text is enabled with more than one match type. add_keywords: the match type (default EXACT)."
    • addedInput schema / properties / newKeywords
      Added value: +{
      +  "description": "add_keywords: the keyword texts to add (up to 20); each gets matchType (default EXACT) and bid.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / overrideWorkspaceCap / description
      Previous value: -"max_cpc: allow a value above the workspace max CPC."New value: +"max_cpc / add_keywords: allow a bid above the workspace max CPC."
  8. Changed2 schema fields changed
    • changedInput schema / properties / adGroupName / description
      Previous value: -"max_cpc: an ad group of a manual CPC campaign (omit for the campaign max CPC). add_ad_group: the new ad group's name. keyword_bid: only needed when the same keyword is enabled in more than one ad group."New value: +"max_cpc: an ad group of a manual CPC campaign (omit for the campaign max CPC); on Apple Ads the ad group whose default bid changes (may be omitted when the campaign has one ad group). add_ad_group: the new ad group's name. keyword_bid: only needed when the same keyword is enabled in more than one ad group."
    • changedInput schema / properties / maxCpc / description
      Previous value: -"max_cpc: the new max CPC in the account's currency. add_ad_group: the new ad group's max CPC (manual CPC campaigns only)."New value: +"max_cpc: the new max CPC in the account's currency (Apple Ads: the ad group's default bid). add_ad_group: the new ad group's max CPC (manual CPC campaigns only)."
  9. Changed5 schema fields changed
    • changedInput schema / properties / adGroupName / description
      Previous value: -"max_cpc: an ad group of a manual CPC campaign (omit for the campaign max CPC). add_ad_group: the new ad group's name."New value: +"max_cpc: an ad group of a manual CPC campaign (omit for the campaign max CPC). add_ad_group: the new ad group's name. keyword_bid: only needed when the same keyword is enabled in more than one ad group."
    • addedInput schema / properties / bid
      Added value: +{
      +  "description": "keyword_bid: the new max bid in the account's currency (major units, e.g. 376 for ¥376).",
      +  "type": "number"
      +}
    • addedInput schema / properties / keyword
      Added value: +{
      +  "description": "keyword_bid: the text of the enabled keyword whose bid changes.",
      +  "type": "string"
      +}
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "languages",
      -  "replace_search_ad",
      -  "budget_move",
      -  "total_cap",
      -  "max_cpc",
      -  "budget_transfer",
      -  "add_ad_group",
      -  "end_date",
      -  "keep_keywords"
      -]New value: +[
      +  "languages",
      +  "replace_search_ad",
      +  "budget_move",
      +  "total_cap",
      +  "max_cpc",
      +  "budget_transfer",
      +  "add_ad_group",
      +  "end_date",
      +  "keep_keywords",
      +  "keyword_bid"
      +]
    • addedInput schema / properties / matchType
      Added value: +{
      +  "description": "keyword_bid: only needed when the same text is enabled with more than one match type.",
      +  "enum": [
      +    "EXACT",
      +    "BROAD"
      +  ],
      +  "type": "string"
      +}
  10. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, it discloses that the call only creates a proposal and never reaches the ad platform, that a person approves it, and that a propose key is required. It also adds operation-specific behavior such as budget_move being all-or-nothing, placements being narrowing-only, and Meta learning being restarted only with human approval.

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

Conciseness3/5

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

The opening sentence front-loads the purpose well, but the remainder is a single run-on enumeration that is difficult to scan despite being information-dense. Every clause carries useful content, yet the lack of structure or grouping makes it longer and harder to parse than necessary.

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

Completeness5/5

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

For a 30-parameter, sixteen-kind proposal tool with no output schema, the description covers each kind's scope, required context, and notable side effects. An agent has enough information to select the correct kind and populate the associated fields without needing the output shape explained.

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 90%, but the description adds cross-parameter meaning by mapping each kind enum value to the fields it uses, e.g. total_transfer with fromCampaignId and amount versus budget_transfer with dailyBudget. It also clarifies defaults such as exact match for add_keywords, though it does not exhaustively restate every parameter's constraints.

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 description states a precise verb and resource: prepare a change to an existing campaign as a proposal in the Loop inbox, with nothing sent to the ad platform. It immediately distinguishes this tool from direct mutation tools by framing the output as a proposal a person approves.

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?

It gives extensive when-to-use guidance by enumerating the sixteen change kinds and their concrete scenarios, and it points to pause_campaign for pausing. It does not state when not to use this tool or name a proposal-alternative sibling, so it falls short of explicit exclusions.

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