Skip to main content
Glama

create_chatgpt_ad

Save a ChatGPT ad DRAFT under the current user. Does not launch, reserve funds or spend money. Returns the creative and current quote for review in chat. Use start_chatgpt_ad only after the user approves the exact budget, service fee, duration and oriiion shared advertiser identity. No campaign-builder page is needed.

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>",
      "headline": "<headline>",
      "body": "<body>",
      "imageUrl": "<imageUrl>",
      "linkUrl": "<linkUrl>",
      "goal": "<goal>",
      "budgetCents": "<budgetCents>",
      "bidCents": "<bidCents>",
      "durationDays": "<durationDays>",
      "countries": "<countries>",
      "requestKey": "<requestKey>"
    },
    "name": "create_chatgpt_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesAd copy, 1–100 characters.
goalYestraffic (clicks to linkUrl) or awareness (impressions).
nameYesInternal campaign name, 1–180 characters.
linkUrlYesPublic HTTPS destination URL.
bidCentsYesMaximum bid in wallet minor units; must not exceed the budget.
headlineYesAd headline, 3–50 characters.
imageUrlYesPublic HTTPS URL of a static JPEG/PNG/WebP, at least 640×640 pixels. Use an uploaded or generated image.
countriesYesUppercase country codes from get_chatgpt_ads availability.countries.
requestKeyYesGenerate one UUID for this operation and reuse it on retries.
budgetCentsYesLifetime media budget in wallet minor units (50000 means 500.00). Read the currency with get_chatgpt_ads.
durationDaysYesCampaign duration starting at launch: whole days from 1 to 30.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • addedInput schema / properties / bidCents / description
      Added value: +"Maximum bid in wallet minor units; must not exceed the budget."
    • addedInput schema / properties / body / description
      Added value: +"Ad copy, 1–100 characters."
    • addedInput schema / properties / budgetCents / description
      Added value: +"Lifetime media budget in wallet minor units (50000 means 500.00). Read the currency with get_chatgpt_ads."
    • addedInput schema / properties / countries / description
      Added value: +"Uppercase country codes from get_chatgpt_ads availability.countries."
    • addedInput schema / properties / durationDays / description
      Added value: +"Campaign duration starting at launch: whole days from 1 to 30."
    • addedInput schema / properties / goal / description
      Added value: +"traffic (clicks to linkUrl) or awareness (impressions)."
    • addedInput schema / properties / headline / description
      Added value: +"Ad headline, 3–50 characters."
    • addedInput schema / properties / imageUrl / description
      Added value: +"Public HTTPS URL of a static JPEG/PNG/WebP, at least 640×640 pixels. Use an uploaded or generated image."
    • addedInput schema / properties / linkUrl / description
      Added value: +"Public HTTPS destination URL."
    • addedInput schema / properties / name / description
      Added value: +"Internal campaign name, 1–180 characters."
    • addedInput schema / properties / requestKey / description
      Added value: +"Generate one UUID for this operation and reuse it on retries."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-destructive, open-world write; the description usefully adds that no funds are reserved or spent and that the call returns the creative plus a current quote for review. It stops short of covering retry/idempotency behavior, which matters since idempotentHint is false and the schema's requestKey implies retry semantics the description never mentions.

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 draft/not-launch distinction is front-loaded and every sentence carries routing or safety information. However, the phrase 'oriiion shared advertiser identity' appears garbled and forces the agent to guess at a required approval item.

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 no output schema, the description correctly fills the gap by saying it returns the creative and current quote. For an eleven-parameter financial write, the main omission is the absence of any note on draft lifecycle or retry behavior with requestKey.

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 coverage is 100%, so all eleven parameters already carry inline documentation including units, ranges, and enum meaning. The description echoes concepts like budget, duration, and advertiser identity without adding format or validation detail beyond the schema, 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?

The description gives a specific verb and resource ('Save a ChatGPT ad DRAFT under the current user') and immediately bounds scope by stating it does not launch, reserve funds, or spend money. This cleanly separates it from start_chatgpt_ad, which the description names explicitly.

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?

It states the precondition for the alternative tool ('Use start_chatgpt_ad only after the user approves the exact budget, service fee, duration and ... advertiser identity') and rules out a workflow the agent might otherwise assume ('No campaign-builder page is needed'). The decision boundary between draft creation and launch is explicit.

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