Skip to main content
Glama

Google Ads & Meta Ads

Meta: Create Ad

meta_create_ad

Add a new ad, with a new creative, to an ad set that already exists — use this instead of meta_create_campaign when the campaign and ad set are already set up. The ad is created PAUSED even if the ad set is active, so it does not spend until you run meta_set_status on the returned adId. Any image is uploaded to the ad account rather than hotlinked. Or pass creative_id to reuse a creative already in the account (see meta_create_creative, meta_list_creatives) instead of ad_text and link_url. Use meta_list_campaigns to find the ad set id.

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": {
      "ad_set_id": "<ad_set_id>"
    },
    "name": "meta_create_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional ad name. Defaults to a name derived from the ad set.
ad_textNoPrimary ad text / body copy. Required without creative_id.
page_idNoFacebook Page id for the creative. Optional — the ad account's Page is used automatically when there is only one. See meta_list_pages.
headlineNoOptional headline.
link_urlNoDestination URL for the ad. Required without creative_id, except with call_to_action WHATSAPP_MESSAGE.
ad_set_idYesId of the existing ad set the ad goes into.
image_urlNoCreative image URL: optional for a website ad, required with call_to_action WHATSAPP_MESSAGE. Must be a publicly reachable https JPEG or PNG — the image is uploaded to the ad account, not hotlinked.
creative_idNoExisting creative in the ad account to use. When set, ad_text, link_url, headline, image_url and call_to_action are not used.
ad_account_idNoMeta ad account to change: act_ id or exact account name. Required when you have several ad accounts — the stored default is never used for a change then.
call_to_actionNoOptional button on the ad. Omitted entirely when not set. The button always points at link_url; WHATSAPP_MESSAGE instead opens a WhatsApp chat and needs an ad set whose destination is WHATSAPP.

Output Schema

NameRequiredDescriptionDefault
adIdYesId of the ad that was created.
statusYesAlways PAUSED — the ad does not deliver until meta_set_status turns it on.
adSetIdYesId of the ad set the ad was added to.
adSetNameNoName of the ad set.
imageHashNoUploaded image hash, when there is one.
campaignIdNoCampaign the ad set belongs to.
creativeIdYesId of the creative the ad uses.
imageSourceYesWhere the creative image came from: UPLOADED_HASH when it was uploaded to the ad account, REMOTE_URL when Meta has to fetch the URL itself, NONE when the ad has no image.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Adds high-value behavior beyond the annotations: the ad is created PAUSED even in an active ad set and will not spend until meta_set_status is called on the returned adId, and images are uploaded rather than hotlinked. The annotations cover safety/open-world but say nothing about the paused default, so this is genuinely additive. It stops short of stating that repeated calls create duplicate ads despite idempotentHint=false.

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-loaded with the core action and the sibling exclusion, then the PAUSED caveat, then the creative-reuse branch, then the id lookup. Every sentence carries operational information, though the density makes it slightly harder to scan than a tighter three-sentence version.

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?

For a 10-parameter mutation with an output schema, the description covers the safety-critical behavior (paused, no spend), the image upload constraint, the required follow-up call, and the prerequisite lookup. Nothing an agent needs to invoke it correctly is missing.

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 explains the mutual exclusivity between creative_id and ad_text/link_url as a workflow choice rather than just a field note. The ad_account_id 'never use the stored default for a change' nuance is left to the schema, keeping this short of a 5.

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 ('Add a new ad, with a new creative, to an ad set that already exists') and immediately distinguishes itself from meta_create_campaign by naming the precondition that selects the sibling. An agent can pick between the two without opening either schema.

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?

Explicit routing: use this instead of meta_create_campaign when campaign and ad set already exist, use meta_list_campaigns to find the ad set id, use meta_create_creative/meta_list_creatives when reusing a creative, and call meta_set_status afterwards. Multiple alternatives are named with the condition that selects each.

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