Skip to main content
Glama

Upload Ad Image

meta_upload_ad_image

Upload an image from a public URL to an ad account's image library. Returns an image hash for use in ad creatives.

Instructions

Uploads an image to an ad account's image library for use in creatives.

Args:

  • ad_account_id (string): Ad account ID

  • url (string): Public URL of the image to upload

  • name (string, optional): Name for the uploaded image

Returns: Image hash (used when creating ad creatives).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ad_account_idYes
urlYesPublic image URL
nameNo
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown
Behavior3/5

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

Annotations already indicate readOnlyHint=false and destructiveHint=false. The description adds that the tool returns an image hash for use in creatives, but does not disclose rate limits, authorization requirements, or behavior on duplicate uploads. With annotations present, the description provides minimal extra context.

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 concise with a clear purpose statement, bulleted args, and return value. It front-loads the key action. The 'Args:' section is somewhat redundant with the schema but still efficient, with no wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description includes the return value. It explains the tool's purpose and basic parameters, but misses the response_format parameter and does not address authentication or potential errors. For a simple upload tool, it is mostly adequate but has gaps.

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

Parameters3/5

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

The description adds meaning for ad_account_id and name, which lack schema descriptions, and clarifies that the return value is an image hash. However, it omits the response_format parameter entirely, despite the schema defining it with an enum and default. Schema coverage is 50%, and the description partially compensates but is incomplete.

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 clearly states the tool uploads an image to an ad account's image library for use in creatives, using a specific verb and resource. It distinguishes from sibling tools like meta_upload_ad_video and meta_list_ad_images by focusing on image upload.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, such as when an image already exists or when to use list_ad_images. No prerequisites or exclusions are mentioned.

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/oliverames/meta-mcp-server'

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