Skip to main content
Glama

Meta Ads MCP

by pipeboard-co

create_ad_creative

Generate a new ad creative for Meta Ads campaigns by specifying image hash, ad copy, destination URL, headlines, descriptions, and call-to-action type. Optimize for Facebook and Instagram placements with dynamic creative testing.

Instructions

Create a new ad creative using an uploaded image hash. Args: access_token: Meta API access token (optional - will use cached token if not provided) account_id: Meta Ads account ID (format: act_XXXXXXXXX) name: Creative name image_hash: Hash of the uploaded image page_id: Facebook Page ID to be used for the ad link_url: Destination URL for the ad message: Ad copy/text headline: Single headline for simple ads (cannot be used with headlines) headlines: List of headlines for dynamic creative testing (cannot be used with headline) description: Single description for simple ads (cannot be used with descriptions) descriptions: List of descriptions for dynamic creative testing (cannot be used with description) dynamic_creative_spec: Dynamic creative optimization settings call_to_action_type: Call to action button type (e.g., 'LEARN_MORE', 'SIGN_UP', 'SHOP_NOW') instagram_actor_id: Optional Instagram account ID for Instagram placements Returns: JSON response with created creative details

Input Schema

NameRequiredDescriptionDefault
access_tokenNo
account_idNo
call_to_action_typeNo
descriptionNo
descriptionsNo
dynamic_creative_specNo
headlineNo
headlinesNo
image_hashNo
instagram_actor_idNo
link_urlNo
messageNo
nameNo
page_idNo

Input Schema (JSON Schema)

{ "properties": { "access_token": { "default": null, "title": "Access Token", "type": "string" }, "account_id": { "default": null, "title": "Account Id", "type": "string" }, "call_to_action_type": { "default": null, "title": "Call To Action Type", "type": "string" }, "description": { "default": null, "title": "Description", "type": "string" }, "descriptions": { "default": null, "items": { "type": "string" }, "title": "Descriptions", "type": "array" }, "dynamic_creative_spec": { "additionalProperties": true, "default": null, "title": "Dynamic Creative Spec", "type": "object" }, "headline": { "default": null, "title": "Headline", "type": "string" }, "headlines": { "default": null, "items": { "type": "string" }, "title": "Headlines", "type": "array" }, "image_hash": { "default": null, "title": "Image Hash", "type": "string" }, "instagram_actor_id": { "default": null, "title": "Instagram Actor Id", "type": "string" }, "link_url": { "default": null, "title": "Link Url", "type": "string" }, "message": { "default": null, "title": "Message", "type": "string" }, "name": { "default": null, "title": "Name", "type": "string" }, "page_id": { "default": null, "title": "Page Id", "type": "string" } }, "title": "create_ad_creativeArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pipeboard-co/meta-ads-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server