Skip to main content
Glama

Meta Ads MCP

by pipeboard-co

upload_ad_image

Upload an image directly to Meta Ads for creative use. Supports data URLs, base64 strings, or direct image links. Returns JSON with image details for campaign integration.

Instructions

Upload an image to use in Meta Ads creatives. Args: access_token: Meta API access token (optional - will use cached token if not provided) account_id: Meta Ads account ID (format: act_XXXXXXXXX) file: Data URL or raw base64 string of the image (e.g., "data:image/png;base64,iVBORw0KG...") image_url: Direct URL to an image to fetch and upload name: Optional name for the image (default: filename) Returns: JSON response with image details including hash for creative creation

Input Schema

NameRequiredDescriptionDefault
access_tokenNo
account_idNo
fileNo
image_urlNo
nameNo

Input Schema (JSON Schema)

{ "properties": { "access_token": { "default": null, "title": "Access Token", "type": "string" }, "account_id": { "default": null, "title": "Account Id", "type": "string" }, "file": { "default": null, "title": "File", "type": "string" }, "image_url": { "default": null, "title": "Image Url", "type": "string" }, "name": { "default": null, "title": "Name", "type": "string" } }, "title": "upload_ad_imageArguments", "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