Skip to main content
Glama

Upload an image for a ChatGPT Ads ad

chatgpt_ads_upload_image

Give OpenAI a public https image URL to use in an ad and get back a file id for chatgpt_ads_create_ad. Previews by default (dryRun true). Only works where the user has allowed changes.

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": {
      "imageUrl": "<imageUrl>"
    },
    "name": "chatgpt_ads_upload_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
imageUrlYesA public https URL of the image.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false), the description adds that the call is a dry-run preview by default, that it will fail where changes are not permitted, and that the URL must be publicly reachable so OpenAI can fetch it. It does not mention that repeat uploads likely yield distinct file ids or any size/format constraints, which matters for a non-idempotent write.

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?

Three short sentences, front-loaded with the action and the returned artifact, then the default mode, then the precondition. Nothing is redundant or padded.

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 states the return value (a file id) and its consumer, and it covers the key precondition about permitted changes. For a three-parameter upload tool it is nearly complete, missing only edge-case behavior such as duplicate uploads and accepted image constraints.

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%, with dryRun, imageUrl and accountId all documented in the schema itself, so the baseline is 3. The description's 'Previews by default (dryRun true)' merely restates the schema's default and adds no new syntax, limits, or format guidance for the URL.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific action (submit a public https image URL) and the concrete outcome (a file id consumed by chatgpt_ads_create_ad), which lets an agent place it correctly in the ad-creation workflow. It does not explicitly distinguish itself from the sibling chatgpt_ads_upload_favicon, though 'to use in an ad' implies the scope.

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 operating context: it previews by default and should only be run for real after the user has seen the preview, and it requires the user to have allowed changes. It points forward to chatgpt_ads_create_ad but names no alternative for other asset types (e.g. favicon), leaving that routing to the agent.

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