Skip to main content
Glama

campaign_update_preview

Read-onlyIdempotent

Preview a campaign update after reading current state.

Instructions

Preview a campaign update after reading current state.

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": {
      "profile": "<profile>",
      "adAccountId": "<adAccountId>",
      "id": "<id>",
      "payload": "<payload>"
    },
    "name": "campaign_update_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYestarget resource ID as a string
payloadYestyped fields to update
profileYeslocal Apple Ads profile name
adAccountIdYesApple Ads ad account ID

Output Schema

NameRequiredDescriptionDefault
errorNo
previewNo
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.8
    • changedInput schema / properties / payload / properties / bidStrategy / allOf
      Previous value: -[
      -  {
      -    "if": {
      -      "properties": {
      -        "bidStrategyType": {
      -          "enum": [
      -            "MANUAL_CPT"
      -          ]
      -        }
      -      },
      -      "required": [
      -        "bidStrategyType"
      -      ]
      -    },
      -    "then": {
      -      "properties": {
      -        "bidStrategyGoal": {
      -          "enum": [
      -            "TAP"
      -          ]
      -        }
      -      }
      -    }
      -  },
      -  {
      -    "if": {
      -      "properties": {
      -        "bidStrategyType": {
      -          "enum": [
      -            "MAX_CONVERSIONS"
      -          ]
      -        }
      -      },
      -      "required": [
      -        "bidStrategyType"
      -      ]
      -    },
      -    "then": {
      -      "properties": {
      -        "bidStrategyGoal": {
      -          "enum": [
      -            "INSTALL"
      -          ]
      -        }
      -      }
      -    }
      -  }
      -]New value: +[
      +  {
      +    "if": {
      +      "properties": {
      +        "bidStrategyType": {
      +          "enum": [
      +            "MANUAL_CPT"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "bidStrategyType"
      +      ]
      +    },
      +    "then": {
      +      "properties": {
      +        "bidStrategyGoal": {
      +          "enum": [
      +            "TAP"
      +          ]
      +        }
      +      }
      +    }
      +  },
      +  {
      +    "if": {
      +      "properties": {
      +        "bidStrategyType": {
      +          "enum": [
      +            "MAX_CONVERSIONS"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "bidStrategyType"
      +      ]
      +    },
      +    "then": {
      +      "properties": {
      +        "bidStrategyGoal": {
      +          "enum": [
      +            "INSTALL"
      +          ]
      +        }
      +      }
      +    }
      +  },
      +  {
      +    "if": {
      +      "properties": {
      +        "bidStrategyType": {
      +          "enum": [
      +            "MAX_CONVERSIONS"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "bidStrategyType"
      +      ]
      +    },
      +    "then": {
      +      "required": [
      +        "bid"
      +      ]
      +    }
      +  },
      +  {
      +    "if": {
      +      "properties": {
      +        "bidStrategyType": {
      +          "enum": [
      +            "MANUAL_CPT"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "bidStrategyType"
      +      ]
      +    },
      +    "then": {
      +      "not": {
      +        "required": [
      +          "bid"
      +        ]
      +      }
      +    }
      +  }
      +]
    • changedInput schema / properties / payload / properties / bidStrategy / properties / bid / description
      Previous value: -"bid or automated ceiling in account currency; auto-bidding ad group updates require zero"New value: +"campaign TargetCpa for MAX_CONVERSIONS or ad-group bid in account currency; auto-bidding ad group updates require zero"
    • changedInput schema / properties / payload / properties / bidStrategy / properties / bid / properties / amount / pattern
      Previous value: -"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"New value: +"^(0\\.0*[1-9][0-9]*|[1-9][0-9]*(\\.[0-9]+)?)$"
  2. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so safety is covered. The description's only added signal is "after reading current state," which is vague and omits the operationally important facts: whether the preview emits a token/plan the agent must feed to operations_apply, and whether the preview can fail validation on unmodified 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?

A single short sentence with no waste and the key concept front-loaded. Its brevity is not padding, though it leaves the definition under-specified, which is penalized elsewhere.

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

Completeness2/5

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

Output schema exists so return values needn't be described, but this is a 4-required-parameter update tool sitting in a large preview/apply workflow with dozens of siblings, and the description explains neither its role in the read-preview-apply cycle nor its relationship to the field-specific preview alternatives.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% with detailed nested descriptions (supplySource restricted to APPSTORE, ISO codes, bidStrategy dependentRequired rules), so the schema carries parameter meaning. The description adds nothing about the payload's partial-update semantics, such as whether omitted/null fields are left unchanged.

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

Purpose3/5

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

"Preview a campaign update" gives a verb and resource, so the agent knows this returns a dry-run of a campaign mutation. But "after reading current state" is cryptic and doesn't distinguish this generic update preview from the many field-specific siblings (campaign_daily_budget_preview, campaign_bid_strategy_preview, campaign_schedule_preview, campaign_pause_preview).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No statement of when to choose this versus campaign_bid_strategy_preview, campaign_schedule_preview, campaign_create_preview, or the ad_group/ad/keyword update previews. No mention of the prerequisite of having the campaign already read, or of what step follows the preview.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools