Skip to main content
Glama

Create a paused ChatGPT Ads ad

chatgpt_ads_create_ad

Create a chat-card ad in an ad group, always PAUSED. Previews by default (dryRun true). Needs the ad group id, a name, a title, body text (max 100 characters), the destination URL, and an image file id from chatgpt_ads_upload_image. Tag it for GA4 with a queryStringTemplate (UTM parameters; it overrides its ad group's and campaign's for a matching key) or UTM parameters in the destination URL. The ad goes through OpenAI's review before it can serve.

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": {
      "adGroupId": "<adGroupId>",
      "name": "<name>",
      "title": "<title>",
      "body": "<body>",
      "targetUrl": "<targetUrl>"
    },
    "name": "chatgpt_ads_create_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesBody text, at most 100 characters.
nameYesAd name (3+ characters).
titleYesThe ad's headline.
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.
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.
adGroupIdYesThe ad group id, from chatgpt_ads_get_ad_groups.
targetUrlYesDestination URL. UTM parameters can be in it or come from a queryStringTemplate.
imageFileIdNoImage file id from chatgpt_ads_upload_image.
queryStringTemplateNoUTM / tracking query string OpenAI appends to destination links, e.g. utm_source=chatgpt.com&utm_medium=cpc&utm_campaign={campaign_id}&utm_content={ad_id} (no leading '?', max 2048). Only {campaign_id}, {ad_id} and {oppref} are supported macros. Set at campaign level and ad groups and ads inherit it; a lower level overrides a matching key. chatgpt_ads_utm_audit shows what is tagged and recommends a template.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, non-idempotent, open-world write. Beyond that, the description adds real context: the ad is created paused, it must pass OpenAI's review before serving, and the queryStringTemplate at this level overrides matching keys inherited from campaign/ad group. That is substantive behavior an agent could not infer from the annotations.

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-loads the core action and the paused/preview behavior in the first two sentences, then adds requirements. Some content duplicates the schema (body length limit, macro list), which costs it the top score, but overall it is dense and free of 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?

With 9 parameters, a mutation operation, no output schema, and no idempotency, the description covers the essentials an agent needs: creation state, preview default, asset dependencies, review gate, and tracking inheritance. Output/return shape is left implicit, but nothing critical to calling it correctly is missing.

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%, so the schema already documents every parameter including dryRun, targetUrl, imageFileId, and queryStringTemplate macro semantics. The description largely restates these (body max 100 characters, destination URL, image file id source) rather than adding new meaning, so the baseline of 3 applies.

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 ("Create a chat-card ad in an ad group") plus a distinctive behavioral qualifier ("always PAUSED"), which separates it from sibling tools like chatgpt_ads_update_ad and the generic ad-group/campaign creators. An agent can immediately tell what is produced and in what state.

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 clear use context (creating a new ad) and a strong operational rule: previews by default with dryRun true. It also routes the agent to chatgpt_ads_upload_image for the image file id. It stops short of explicitly naming the alternative for editing an existing ad (chatgpt_ads_update_ad), so it is not a full when/when-not treatment.

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