API Reference

Meta Ads / API Reference

meta_ads_get_upload_url

Use this when the user wants to upload a local file (image or video) to Meta Ads. Returns a signed GCS upload URL. Two-step workflow: (1) call this tool with the filename, (2) use curl/PowerShell to PUT the file to the returned upload_url, (3) pass the returned public_url to meta_upload_ad_image or meta_upload_ad_video as source. This avoids base64 size limits and works with any file size.

This is a read-only tool: it retrieves upload url from your Meta Ads account. It changes nothing.

Ask Claude

You do not call this tool yourself. Ask for the outcome and the client picks the tool:

Get upload url in my Meta Ads account for [filename].

It takes 1 required and 1 optional parameter.

Parameters

ParameterTypeRequiredDescription
filenamestringYesFilename
content_typestringNoContent Type

Related Meta Ads tools

Before you can call it

This tool needs a connected Meta Ads account. The Meta Ads connect guide covers the OAuth flow and the permissions it asks for, and the quickstart gets a client talking to the server in about five minutes.

Workflows that use this

Rather than calling tools one at a time, these skills run a whole procedure against the same account:

Start using MCP Ads