Skip to main content
Glama

AdsLibraryAPI — Meta, Google & TikTok Ad Library JSON MCP

Search Meta (Facebook & Instagram) Ad Library Video & Image Creatives

search_meta_ad_library
Read-onlyIdempotent

Query active commercial Meta (Facebook/Instagram/Messenger) ads by keyword or brand. Returns full hook copy, HD video MP4 URLs, creative thumbnails, CTA buttons, destination landing page URLs with UTMs, collation variation counts, and active days running. Cost: 2 Credits / ad returned.

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": {
      "query": "<query>"
    },
    "name": "search_meta_ad_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax Meta ads to return (1–50).
queryYesKeyword or brand name to search in Meta Ad Library (e.g. "CRM software", "skincare").
countryNo2-letter ISO country code (default "US").US

Output Schema

NameRequiredDescriptionDefault
codeYes0 on success, -1 on error.
dataYesSearch results payload containing normalized commercial ad creatives.
statusYesResponse status ("ok" or "error").
providerNoGateway origin URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare readOnly, openWorld, idempotent, and non-destructive behavior. The description usefully adds the credit cost (2 credits per ad returned) and the active-ad scope, while listing the returned artifacts. It does not cover rate limits, authentication, or pagination behavior.

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?

The description is two tight sentences, with the core purpose front-loaded and the cost note immediately after. There is no filler or redundant repetition.

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?

This is a simple search tool with full schema coverage, annotations, and an output schema. The description covers the essential purpose, scope, returned artifact types, and cost, which is sufficient for correct invocation, though it could mention how active status or country affects results.

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 all three parameters are already documented in the schema. The description only adds a general keyword/brand search framing and does not provide additional syntax, country behavior, or limit semantics beyond what the schema already states.

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?

The description uses a specific verb and resource: query active commercial Meta ads. It clearly scopes the platform to Facebook/Instagram/Messenger and mentions the creative types, which helps distinguish it from the Google Ads sibling. It stops short of explicitly differentiating from search_commercial_ads or other alternatives.

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?

It implies usage for keyword or brand research on active commercial Meta ads, and notes the cost. However, it gives no explicit when-to-use versus alternatives, no when-not-to-use, and no guidance on non-commercial or political ad limitations.

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.

Resources