Skip to main content
Glama
meta-ad-library-mcp

meta-ad-library-mcp

search_meta_ads

Search active Meta Ad Library ads on Facebook and Instagram by keyword, country, media type, and minimum days active to find winning competitor ad creatives.

Instructions

Search live active ads from the Meta Ad Library (Facebook & Instagram). Allows filtering by country, media type (VIDEO, IMAGE), and minimum days active to identify winning competitor ads.

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": {
      "keyword": "<keyword>"
    },
    "name": "search_meta_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxAdsNoMaximum number of ad records to return (1 to 50). Defaults to 20.
keywordYesBrand name, competitor, or product keyword (e.g. "Gymshark", "Athletic Greens", "running shoes").
mediaTypeNoFilter creatives by media format. Defaults to "ALL".ALL
accessTokenNoOptional Meta Graph API access token. If omitted, uses process.env.META_ACCESS_TOKEN.
countryCodeNoTwo-letter ISO country code (e.g. "US", "GB", "CA", "AU", or "ALL"). Defaults to "US".US
minDaysActiveNoMinimum days the ad has been running continuously (e.g. 30 to only find winning, profitable ads). Defaults to 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose one important behavioral trait — results are limited to live, active ads, so historical or paused creatives are excluded. It says nothing about rate limits, auth failure behavior, or result ordering, leaving notable gaps for an unannotated tool.

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?

Two sentences, front-loaded with the core action and followed by the filtering capabilities. Little waste, though the closing rationale is slightly promotional rather than strictly informative.

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?

For a six-parameter search tool with full schema coverage and no output schema, the description covers what the tool returns (live active ads) and what can be filtered. Missing return-shape and pagination detail is acceptable given the schema already explains maxAds.

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 100%, so every parameter is already documented in the schema with defaults, enum values, and examples. The description only restates country, media type, and minDaysActive filtering without adding format or edge-case detail, so baseline 3 applies.

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?

Names a specific verb ('Search') and resource ('live active ads from the Meta Ad Library, Facebook & Instagram'), which is immediately actionable. It doesn't explicitly contrast itself with siblings like analyze_competitor_ads or get_ad_library_url, so differentiation is left to inference.

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

Usage Guidelines3/5

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

The phrase 'to identify winning competitor ads' implies the intended use case and minDaysActive hints at a strategy, but there is no explicit when-to-use versus when-to-use-a-sibling guidance or stated exclusions.

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