Skip to main content
Glama
algoyandreina1236-web

Meta Ads MCP

upload_ad_video

Upload a video from a public URL to your Meta ad account. Returns a video_id to reference in ad creatives; wait for processing to complete before using.

Instructions

Sube un VIDEO a la cuenta publicitaria para usarlo luego en un anuncio (create_ad_creative con el parámetro video_id).

Meta DESCARGA el video directamente desde la URL pública (no se suben bytes), igual que upload_ad_image con image_url. El video se procesa (transcodifica) de forma ASÍNCRONA: el video_id devuelto NO es usable de inmediato en creativos flexibles/3x3. Antes de usarlo en esos casos, espera a que get_ad_video(video_id) devuelva video_status == "ready" (los creativos de un solo video suelen no verse afectados).

Args: account_id: Cuenta publicitaria (act_XXXXXXXXX). video_url: URL PÚBLICA del archivo de video (mp4). Debe ser accesible por Meta (sin login/VPN). Rutas locales (file://...) no sirven: súbelo antes a un host público. name: Nombre/archivo opcional del video. title: Título opcional del video. description: Descripción opcional del video. access_token: Token de Meta (opcional; usa el de la sesión).

Returns: JSON con { success, video_id, account_id, name } o el error de Meta. Pasa el video_id a create_ad_creative (param video_id) para crear el anuncio de video.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
titleNo
video_urlYes
account_idYes
descriptionNo
access_tokenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description fully carries the burden. It discloses that Meta downloads from a public URL rather than receiving bytes, that processing is asynchronous and the video_id is not immediately ready for flexible creatives, and that local file paths are unsupported. These are important behavioral traits beyond the schema.

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?

The description is well-structured with clear sections for purpose, behavior, args, and returns, and the key warning about async processing is front-loaded. It has slight redundancy, such as mentioning create_ad_creative twice, but every paragraph earns its place.

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?

The description is complete for the tool's complexity: it explains the async lifecycle, return shape, constraints on video_url, and how to use the result in create_ad_creative. The output schema exists but the description additionally clarifies practical usage and readiness checks.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description compensates thoroughly by documenting all six parameters. It provides account_id format (act_XXXXXXXXX), video_url constraints (public, mp4, no file://), optional name/title/description, and access_token session fallback—all beyond the bare schema titles.

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?

The description opens with a specific action: 'Sube un VIDEO a la cuenta publicitaria para usarlo luego en un anuncio', which clearly identifies the resource and purpose. It also references the downstream tool create_ad_creative and differentiates from the sibling upload_ad_image.

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?

The description explains the intended flow: upload the video, use video_id in create_ad_creative, and check get_ad_video for readiness before using in flexible creatives. It does not explicitly say 'use X instead', but the context and sibling distinction are clear.

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

Install Server

Other Tools

Latest Blog Posts

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/algoyandreina1236-web/meta-ads-mcp-pwm'

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