Skip to main content
Glama

Start, pause or archive an OpenAI Ads campaign

openai_ads_set_campaign_status
Destructive

Sets the status of a campaign of one OpenAI Ads account: active (serves and spends real money), paused, or archived (cannot be undone; OpenAI Ads has no deletion). dryRun (default true) describes the change without applying it.

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>",
      "status": "<status>"
    },
    "name": "openai_ads_set_campaign_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNo
statusYes
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.

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.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is partly covered. The description still adds real value by explaining that 'active' serves and spends real money, that 'archived' is irreversible with no deletion path, and that dryRun (default true) previews rather than applies the change — details no annotation conveys.

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?

A single front-loaded sentence carries the verb, resource, status semantics, irreversibility warning, and the dryRun default. Every clause earns its place and nothing is repeated from structured fields without adding meaning.

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 destructive mutation with no output schema, the definition covers what matters most: what the states do and that dryRun defaults to a safe preview. Only minor gaps remain, such as whether changes propagate immediately or what permissions are required.

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 50%, with campaignId and accountId documented in the schema itself. The description compensates for the undocumented half by giving the meaning of every status value and of dryRun, including its true default, which is the single most failure-prone parameter here.

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 specific verb and resource ('Sets the status of a campaign') and enumerates the exact scope of the operation (active, paused, archived) for one OpenAI Ads account. An agent can distinguish this from update/create siblings 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 Guidelines4/5

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

It makes when-to-use clear by defining what each status means, and it flags the important prerequisite that archived 'cannot be undone' because there is no deletion. It stops short of naming an explicit alternative for changing other campaign fields, so the routing guidance is strong but not exhaustive.

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