Skip to main content
Glama

chatgpt_ads_images_upload_file

Uploads a local JPEG, PNG, or WebP image to a ChatGPT Ads account and returns its file_id for use in an ad creative.

Instructions

Uploads one local image file to the ChatGPT Ads account. Returns the platform object unchanged: file_id, which goes into creative.file_id of chatgpt_ads_ads_create. Mutates the account (adds a file); not undone by rollback. Creative images must be JPEG, PNG or WebP and at least 640x640 pixels; mureo refuses other extensions and files over 30MB and files whose content is not that image format before sending anything; the bytes checked are the bytes sent. An upload is not retried on a 5xx or a transport error.

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": {
      "file_path": "<file_path>"
    },
    "name": "chatgpt_ads_images_upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoWhy this change is being made: one or two sentences naming the evidence and the expected effect. Stored in the journal and on the action_log entry this call produces, for the operator and the next session.
approvalNoExternal approval this change carries out (recorded and shown, never verified)
expectedNoExpected effects [{metric, direction, target?, horizon_days?, primary?}], exactly one primary:true when several; metric cpa/cpc/cpl/cpm/conversions/cvr/ctr/roas/cost/spend/clicks/impressions; direction up/down/hold.
file_pathYesPath of a local .jpg, .jpeg, .png or .webp file (e.g. '/Users/me/ads/card.png'). Only the file name is sent with the bytes.
decision_idNoA proposed decision this change carries out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.46.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only supply readOnlyHint=false; the description carries the rest and does so richly — it discloses the mutation ('adds a file'), that rollback does not undo it, that validation happens locally before any bytes are sent, that checked bytes equal sent bytes, and that no retry occurs on 5xx or transport errors. It also states the return is the platform object unchanged.

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?

Four tight sentences, front-loaded with what the tool does, then the return contract, then the mutation warning, then validation and retry semantics. No filler or repeated schema text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, yet the description explains the return value (file_id on the untouched platform object) and how to use it. For a mutating upload with nested optional governance params, the description covers the decision-relevant behavior without gaps.

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 100%, so the baseline is 3, but the description adds meaning beyond the schema for file_path: allowed content types, the 640x640 minimum, the 30MB cap, and the note that only the file name accompanies the bytes. The governance parameters (reason, approval, expected, decision_id) are left entirely to the schema.

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?

Opens with a specific verb+resource pair ('Uploads one local image file to the ChatGPT Ads account') and pins the scope to a single file, distinguishing it from video/asset siblings. It also names the downstream consumer (creative.file_id of chatgpt_ads_ads_create), so the agent knows exactly where the result belongs.

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?

Clear context is given: call this to obtain a file_id that feeds creative.file_id in chatgpt_ads_ads_create, with the applicable creative constraints stated up front. It stops short of naming alternatives (e.g. the Meta/Google upload siblings) or an explicit when-not, so it is strong but not a full routing rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools