Skip to main content
Glama

Google Ads & Meta Ads

Meta: List Ad Library Ads

meta_list_ad_library_ads
Read-onlyIdempotent

List public Meta Ad Library ads in one country: the ads of one advertiser (page_id, a public Facebook Page id from meta_search_ad_library_advertisers), ads from any advertiser whose text matches search_terms, or both to search within one advertiser's ads. Returns each ad's Page, text, headline, call to action, displayed and destination link, format, carousel cards in order, image and video links, delivery dates, the Meta apps it is published on and a link to it in the Ad Library. By default it returns ads active now, including ones that started long ago; there is no default date window. Use it for competitor research on messaging, offers, formats and destinations, and count what you actually inspected ("6 of the 20 ads shown mention free delivery"). It cannot show budgets, spend, targeting, results or which ad performs best, and how long an ad has run does not show it is profitable. An empty result does not show the advertiser is absent from Meta. This is public data about other advertisers, not the user's own Meta ad account, and needs no connected Facebook or Meta Ads account. Read-only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "meta_list_ad_library_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoAds per page, 1–50 (default 15). A record with cards and media links is large; ask for what will be read.
cursorNo`nextCursor` of the previous page, passed unchanged. The search it continues is remembered, so the other arguments may be left out.
countryNoRequired unless `cursor` is passed: two-letter ISO country code where the ads are delivered, e.g. US or DE. ALL only when the user asks for worldwide research.
page_idNoPublic Facebook Page id of the advertiser (digits, e.g. 15087023444), or an Ad Library advertiser link. From meta_search_ad_library_advertisers. Not an ad account id, a Page name or an Instagram handle.
media_typeNoOnly ads with this media (default ALL). MEME is an image with text on it; NONE is ads without image or video.
delivered_toNoOnly ads that were delivered on or before this day, YYYY-MM-DD. Omit for no upper bound. For past periods combine with active_status ALL.
search_termsNoWords to find in ad text, e.g. "free delivery". Put a phrase in double quotes for an exact match. Alone it searches every advertiser; with `page_id` it narrows that advertiser's ads.
active_statusNoACTIVE (default): ads the library lists as running now. INACTIVE: ads that stopped. ALL: both.
delivered_fromNoOnly ads that were delivered on or after this day, YYYY-MM-DD. An ad that started earlier and was still running then is included. Omit for no lower bound.
publisher_platformsNoOnly ads published on these Meta apps. Omit for any.

Output Schema

NameRequiredDescriptionDefault
adsYesPublic library records, newest first. Null means the source did not supply the value; a missing destination is normal for messaging and other on-platform ads.
scopeYesADVERTISER: ads of one Page. KEYWORD: ads from any Page whose text matches.
sourceYesWhere this data came from and when.
hasMoreYesWhether a further page can be fetched.
coverageYesKnown limits of this research; state them with any conclusion.
warningsYesConditions of this particular result that change how to read it.
nextCursorNoPass as `cursor` for the next page. Valid about one hour.
advertisersYesPages that published the ads on this page, with their ad count.
totalMatchesYesThe library's own count of all records matching the search, when it gave one.
returnedCountYesAds in this result.
effectiveQueryYesThe search that actually ran, after normalization and defaults.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only, open-world, idempotent and non-destructive, but the description goes further with behavior the annotations cannot express: there is no default date window and results are active-now by default, cards and media links make records large, and the empty-result semantics are spelled out. The public-data / no-auth-required disclosure is exactly the kind of context structured fields cannot carry.

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?

Single well-structured paragraph, front-loaded with the operation and scoping modes before caveats. The long enumeration of returned fields (Page, text, headline, format, carousel cards, delivery dates, apps) is largely redundant given an output schema exists, which is the main thing trimming would improve.

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

Completeness5/5

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

For a 10-parameter, open-world, read-only listing tool with a full output schema, this covers everything an agent needs: the selection logic between modes, the prerequisite tool for `page_id`, default window behavior, pagination memory, and the interpretive traps. Nothing material is left to inference.

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 100% and the parameter descriptions already explain the page_id + search_terms interaction, cursor continuation, media_type values and delivered_from/delivered_to bounds. The description restates the three-mode logic at a higher level but adds no syntax, format or edge-case detail beyond the schema, so the baseline 3 applies.

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 ("List public Meta Ad Library ads in one country") and immediately enumerates the three invocation shapes: advertiser-only via `page_id`, keyword-only via `search_terms`, or both combined. It also names the sibling that supplies `page_id` (meta_search_ad_library_advertisers) and contrasts itself with the user's own ad account data, so an agent can place it without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use ("competitor research on messaging, offers, formats and destinations") and explicit when-not ("cannot show budgets, spend, targeting, results or which ad performs best"). It also pre-empts two common misreadings — an empty result does not mean the advertiser is absent, and long run time does not imply profitability — plus a prerequisite note that no connected Meta account is needed.

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