Skip to main content
Glama

Ad images and videos

meta_media
Read-onlyIdempotent

get_image: an ad's image with metadata and a resized preview. get_image_by_hash: an image in an account's library. get_video: an ad's video metadata, thumbnails and source. video_status: ready, processing or error (check before using a video in a creative). compute_crops: centered pixel crops for Meta aspect ratios (changes no image). save_image: save an ad's image to the user's AdChat files.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "meta_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idNoRequired for get_image, get_video. A string, never a number
widthNoRequired for compute_crops
actionYes
heightNoRequired for compute_crops
video_idNoRequired for video_status. A string, never a number
account_idNoRequired for get_image_by_hash, video_status; not for get_image, compute_crops. e.g. act_1234567890
image_hashNoRequired for get_image_by_hash
aspect_ratiosNoOnly compute_crops

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior2/5

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

The description does add genuine behavior beyond the annotations by explaining what each action returns and the video_status prerequisite, and the annotations already cover the safety profile (readOnlyHint/idempotentHint). However, it advertises "save_image: save an ad's image to the user's AdChat files", a state-changing operation that contradicts readOnlyHint=true, and that action does not even exist in the action enum, so an agent could try to invoke something the schema rejects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The "action: meaning" format is dense and appropriately sized for a five-way enum, and the most common action (get_image) leads. But one of the six clauses, save_image, is dead weight at best and misleading at worst, since it is not a valid action value.

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?

For a multi-action tool with no output schema, the description does a fair job of characterizing each mode's return content and the one sequencing caveat (video_status). It is incomplete in a material way: the described action set does not match the enum, and nothing tells the agent what to do if it wants the save_image behavior (likely meta_upload_media or a file tool).

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?

Schema coverage is 88% and the schema already states which action requires each field (ad_id, video_id, account_id, width/height, image_hash), so the description does not need to repeat it. The only added detail is aspect_ratios implied by "Meta aspect ratios" for compute_crops; width/height and the "never a number" string constraint are left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Each action is stated as a concrete verb plus resource (get_image = "an ad's image with metadata and a resized preview", get_video = "an ad's video metadata, thumbnails and source"), so an agent can predict the payload of each mode without opening the schema. The read/compute framing separates it from write-side siblings such as meta_upload_media, but no sibling is named explicitly.

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?

Two actions carry real procedural guidance: video_status is annotated ("check before using a video in a creative") and compute_crops is scoped as non-mutating ("changes no image"). There are no explicit when-not conditions or named alternatives for the image-lookup actions, so it stops short of a full routing rule.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.