Skip to main content
Glama

Edit a ChatGPT Ads campaign

chatgpt_ads_update_campaign
Idempotent

Change settings of ONE existing campaign: name, description, start and end date (null clears one), target countries, excluded countries, platforms, custom audiences, conversion goals, and the UTM query-string template. Only what you pass changes, and only if it differs from what is set now. NOT for pausing/resuming (chatgpt_ads_set_status) or the daily budget (chatgpt_ads_set_daily_budget); nothing is archived or deleted. Targeting is sent as the COMPLETE current targeting with your changes applied, so changing platforms can't wipe countries. Previews by default (dryRun true) with before, after and the exact request; set dryRun false only after the user agrees. Only works where the user has allowed changes for the ad account in the Caybl.ai dashboard.

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

Input Schema

NameRequiredDescriptionDefault
nameNoNew name (3+ characters). Also what GA4's utm_campaign should match.
dryRunNoPreview only (the default): reads the current value and shows exactly what would change (before and after) without sending anything. Set false only after the user has seen the preview and agreed.
endDateNoYYYY-MM-DD end, midnight in the account time zone; null clears it.
accountIdNoThe ChatGPT Ads ad account id, as listed by chatgpt_ads_list_ad_accounts. A connection reaches one ad account, so this is normally left out.
countriesNoReplace the target countries with these two-letter codes, e.g. ['US','GB']. At least one: to remove the restriction, use Ads Manager.
platformsNoReplace where ads may show.
startDateNoYYYY-MM-DD start, midnight in the account time zone; null clears it.
campaignIdYesThe campaign id, from chatgpt_ads_get_campaigns.
descriptionNoNew description; null clears it.
customAudienceIdsNoReplace the custom audiences to target; [] clears them.
excludedCountriesNoReplace the excluded countries; [] clears the exclusions.
queryStringTemplateNoThe UTM / query-string template OpenAI appends to the link (landing_page_configuration.query_string_template), e.g. utm_source=chatgpt.com&utm_medium=cpc&utm_campaign={campaign_name}. No leading ?, no spaces, 2048 characters at most. null removes it. Tagging links lets GA4 attribute the traffic (chatgpt_ads_vs_ga4_conversions).
conversionEventSettingIdsNoReplace the campaign's conversion goals (ids from chatgpt_ads_conversion_health); [] detaches all goals.
excludedCustomAudienceIdsNoReplace the custom audiences to exclude; [] clears them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the merge semantics ("Only what you pass changes, and only if it differs from what is set now") and the critical non-obvious rule that targeting must be sent as the complete current targeting with changes applied, which prevents accidental country wipes. It also adds a prerequisite the annotations cannot express: the user must have allowed changes for the ad account in the Caybl.ai dashboard.

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?

Front-loaded with purpose, then exclusions, then the safety-critical targeting rule, then the dryRun approval flow. It is dense but every sentence carries a decision the agent needs; the only mild waste is repeating 'null clears it' for dates, which the schema descriptions already state.

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 14-parameter mutation with no output schema, the description covers the risk profile (no deletion, no archiving), the partial-update contract, the targeting replacement hazard, the preview-then-confirm flow, and the dashboard permission prerequisite. Nothing an agent needs in order to call this safely is missing.

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 100%, so the baseline is 3, but the description still adds meaning: null clears dates, and the complete-targeting rule gives the array parameters (countries, excludedCountries, platforms) a replacement-not-append semantic that the schema alone does not state. The GA4/UTM linkage is also named, though much of the field-level detail is already present in the schema descriptions.

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?

"Change settings of ONE existing campaign" states the verb, the resource, and the cardinality, then enumerates the exact editable fields. It explicitly excludes pausing/resuming and daily budget with named siblings, so an agent can separate this from chatgpt_ads_set_status and chatgpt_ads_set_daily_budget without opening any 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?

Gives explicit when-not conditions (NOT for pausing/resuming, NOT for budget, nothing archived or deleted) and names the correct alternatives. It also states the ordering rule for the approval workflow: previews by default via dryRun true, and set dryRun false only after the user agrees.

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