Skip to main content
Glama

Change an OpenAI Ads campaign

openai_ads_update_campaign
Destructive

Changes a campaign of one OpenAI Ads account: name, description, end time, linked conversion events (replaced) or lifetime budget (account currency, at least 1; raising it lets the campaign spend more real money, lowering it below what is already spent stops it). biddingType cannot be changed after creation. dryRun (default true) returns the changes without applying them.

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": "openai_ads_update_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
budgetNo
dryRunNo
endTimeNo
accountIdNoFezola accountId of the OpenAI Ads account (type openai_ads in list_accounts or openai_ads_list_accounts). Optional when only one is connected.
campaignIdYesCampaign id, as returned by openai_ads_campaigns.
descriptionNo
conversionEventSettingIdsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag this as destructive and non-read-only, but the description goes well beyond them: it discloses that conversionEventSettingIds are replaced (not merged), that budget is denominated in account currency and that lowering it below already-spent amount halts the campaign, that biddingType is immutable post-creation, and that dryRun defaults to true and returns changes without applying them. That is exactly the risk context an agent needs for a destructive money-touching mutation.

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?

The verb and scope are front-loaded, and each subsequent clause adds a distinct operational fact (replace semantics, budget risk, immutable field, dryRun default). The long budget parenthetical is dense but earns its length; a tiny amount of redundancy remains in restating the schema's minimum of 1.

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 an 8-parameter destructive mutation with no output schema and sparse schema descriptions, the description covers the safety-critical behavior well. It stops short of stating whether unspecified fields are left untouched (partial update) and what the tool returns on a dryRun versus a real run, which an agent would still want to know.

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 only 25% schema coverage, the description does the heavy lifting: it explains the replace semantics of conversionEventSettingIds, the currency and real-spend consequences of budget, the byte-level meaning of endTime, and the default-true behavior of dryRun. Remaining gaps are minor — campaignId and accountId are already documented in the schema, and the description repeats the schema's minimum budget of 1 rather than adding to it.

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 opens with a specific verb and resource ("Changes a campaign of one OpenAI Ads account") and then enumerates exactly which attributes are mutable: name, description, end time, conversion event links, lifetime budget. An agent can distinguish this from openai_ads_create_campaign and openai_ads_set_campaign_status purely from this text, and it explicitly rules out one field (biddingType) as immutable.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the tool is for mutating existing campaigns, and the immutability of biddingType hints that such a change requires create_campaign instead. However, no sibling is named, no explicit "use this when / not when" condition is given, and there is no guidance on when set_campaign_status is preferable for status changes.

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