Skip to main content
Glama

Create an OpenAI Ads campaign

openai_ads_create_campaign

Creates a campaign in one OpenAI Ads account. dryRun (default true) creates nothing and returns the plan with irreversible, the choices that cannot be changed after creation (the budget is a LIFETIME spend limit, not a daily budget; biddingType is fixed; without conversionEventSettingIds the campaign ignores conversions), and warnings for what is missing; dryRun: false creates it. New campaigns are created paused unless status is active, which starts spending real money. budget is in the account currency, at least 1. locationIds come from openai_ads_geo_lookup, conversionEventSettingIds from openai_ads_conversion_event_settings. startTime and endTime are Unix seconds, rounded down to the hour in the account time zone.

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": {
      "name": "<name>",
      "budget": "<budget>"
    },
    "name": "openai_ads_create_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesCampaign name, 3 characters min.
budgetYesLifetime spend limit, in the account currency (not per day).
dryRunNotrue (default): returns the plan, creates nothing.
statusNopaused (default) or active (serves and spends right away).paused
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.
startTimeNo
biddingTypeNoimpressions, clicks or conversions (default). Fixed after creation.conversions
descriptionNo
locationIdsNo
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
Behavior4/5

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

Adds substantial context beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true): dryRun returns `irreversible`, `warnings`, and the plan; budget is a LIFETIME limit not daily; biddingType is frozen; status active spends real money immediately. What is missing is the non-dryRun return shape (campaign id?) and what `warnings` actually contains.

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?

Single dense paragraph that front-loads the action and then the dryRun contract; nearly every clause carries operational information. Some sentences pack three or four facts at once (budget immutability, status spending, time rounding), which slows scanning but adds no filler.

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 11-parameter mutation with no output schema and thin annotations, the description covers the risky parts an agent must know: dryRun default, paused-by-default, lifetime budget, enum immutability, currency, and time format. It lacks the success-path return values and idempotency/duplicate-name behavior, which would fully round it out.

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 schema coverage at 55%, the description compensates well: budget units and lifetime semantics, locationIds and conversionEventSettingIds provenance, and the Unix-seconds/rounded-to-hour rule for startTime and endTime. name, description, and the accountId fallback behavior are left to the schema, so a small gap remains.

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?

States a specific verb and resource ("Creates a campaign") and scopes it to "one OpenAI Ads account," which cleanly separates it from openai_ads_update_campaign and openai_ads_set_campaign_status. An agent knows immediately this is a creation-mutation, not a read or an edit.

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?

Gives a concrete operating procedure: dryRun defaults to true and returns the plan, dryRun:false actually creates, and new campaigns stay paused unless status is active. It also routes the agent to openai_ads_geo_lookup for locationIds and openai_ads_conversion_event_settings for conversionEventSettingIds. It stops short of explicitly naming openai_ads_update_campaign as the alternative for post-creation changes, though the immutability notes imply it.

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