Skip to main content
Glama
thenavidm

ScrapeCreators MCP Server

by thenavidm

Search

facebook_ad_library_search

Search Meta Ad Library by keyword to find matching ads, with filters for language, country, and status. Returns ad details including page name, platforms, and creative snapshots.

Instructions

Searches the Meta Ad Library by keyword and returns matching ads. Supports filtering by language with a 2-letter code such as EN or ES. Each result includes ad_archive_id, page_name, is_active, publisher_platform, and a snapshot with body text, images, videos, and cta_text. Both GET and POST are supported. Use GET for normal requests. If the cursor becomes too large after extensive pagination, use POST and send the same parameters in the JSON body. Potentially consumes paid API credits; requires confirm=true. Read-like POST requests do not publish to social platforms.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
trimNoSet to true for a trimmed down version of the response
queryYesKeyword to search for
cursorNoCursor to paginate through results
statusNoStatus of the ad. Defaults to ACTIVE.
accountNoNamed private ScrapeCreators account; selects credentials, not a remote account ID.
ad_typeNoSearch for all ads or only political and issue ads
confirmNoMust be true for the specific approved credit-consuming research call.
countryNoThis can only be one country. It has to be the 2 letter code for the country. It defaults to ALL.
sort_byNoSort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions.
end_dateNoImpressions end date. Needs to be in YYYY-MM-DD format.
languageNoLanguage to filter ads on. Needs to be a 2 letter language code, such as EN, ES, or FR.
media_typeNoMedia type of the ad. Defaults to ALL. Meme just means the ad has text and an image. No clue why they call it meme.
start_dateNoImpressions start date. Needs to be in YYYY-MM-DD format.
search_typeNoIf you want to search by exact phrase or not

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Adds real value beyond the annotations: credit consumption, the confirm=true gate, GET-vs-POST transport behavior, and the reassurance that read-like POSTs do not publish to social platforms. It also enumerates the returned fields (ad_archive_id, page_name, is_active, publisher_platform, snapshot contents), which matters given there is no output schema. It does not cover pagination termination or rate limits.

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?

Front-loads purpose, then filters, then return shape, then transport and cost caveats. The return-field enumeration is a long run-on sentence, and the credit/confirm warning is buried at the end, but overall there is little waste.

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 14-parameter, 5-enum tool with no output schema, the description covers the essentials: what comes back, the credit gate, and the transport fallback. Remaining gaps (pagination limits, how trim changes results, exact cost) are minor relative to the schema's full parameter documentation.

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 the schema already documents all 14 parameters including enums and defaults. The description's only parameter-level addition is the 2-letter language code example, which the schema already states. Baseline 3 is appropriate.

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?

States a specific verb and resource with scope: 'Searches the Meta Ad Library by keyword and returns matching ads.' The keyword-based scope distinguishes it from the company-oriented siblings (facebook_ad_library_company_ads, facebook_ad_library_search_for_companies), but those siblings are never named, so the agent must infer the routing itself.

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?

Gives operational guidance (GET for normal requests, POST when the cursor grows too large) and a precondition (requires confirm=true, consumes credits), which is genuinely useful. However, it never says when to choose this tool over the other ad-library search tools or the company-ads variants, so routing guidance is only implied.

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

Deploy Server

Other Tools