Skip to main content
Glama
Facebook Ads Library MCP Server

Facebook Ads Library MCP Server

analyze_ad_image

Read-only

Analyze a Facebook ad image by passing a media URL: returns the image plus a checklist covering text, hooks, people, brand elements, composition, and colors for quick creative review.

Instructions

Analyze a Facebook ad image: returns the image itself so you can see it, plus a checklist (text, hooks, people, brand elements, composition, colors). Pass one media_url from get_meta_ads or search_meta_ads_by_keyword. Downloads are cached locally.

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": {
      "media_url": "<media_url>"
    },
    "name": "analyze_ad_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idNo
media_urlYes
brand_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.1.0
    • addedInput schema / properties / media_url
      Added value: +{
      +  "title": "Media Url",
      +  "type": "string"
      +}
    • removedInput schema / properties / media_urls
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    }
      -  ],
      -  "title": "Media Urls"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "media_urls"
      -]New value: +[
      +  "media_url"
      +]
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safe/networked profile is covered. The description adds genuinely useful behavior — the tool returns the image itself for visual inspection and performs local caching of downloads — but says nothing about cache lifetime, size limits, or failure modes for unreachable URLs.

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

Conciseness5/5

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

Three short sentences, front-loaded with the core action and return shape, then input sourcing, then the caching note. Nothing is padded and no sentence restates the tool name.

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

Completeness4/5

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

With no output schema, the description correctly spends its words describing what is returned (image plus checklist) and where the input comes from, which is the main thing an agent needs. The remaining gap is the two optional parameters, which are unexplained anywhere in the definition.

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 description coverage is 0%, so the description must carry the load. It explains media_url well (single value, sourced from the sibling ad-search tools) but leaves ad_id and brand_name completely unmentioned, so two of three parameters get no semantic help at all.

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?

States a specific verb and resource ('Analyze a Facebook ad image') and immediately describes what comes back — the image itself plus a named checklist (text, hooks, people, brand elements, composition, colors). This distinguishes it cleanly from the video sibling without the agent needing to open any schema.

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?

Gives concrete sourcing guidance: pass one media_url obtained from get_meta_ads or search_meta_ads_by_keyword, and the word 'one' implicitly excludes batching. It does not explicitly say when to prefer analyze_ad_video or what to do if the URL is not an image, so it stops short of full when/when-not coverage.

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