Skip to main content
Glama

ShortVidAPI — TikTok, Reels & Shorts MCP. Zero-signup x402 USDC pay-per-ca

Search Meta / Facebook Ad Library

facebook_ads_search
Read-onlyIdempotent

Search active or historical commercial ads from the Meta (Facebook & Instagram) Ad Library by keyword or brand without Meta Graph API identity verification (2 credits per ad, min 10 credits).

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": "facebook_ads_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoAds to return (1-50)
queryYesBrand, product, or advertiser search query (aliases: q, keyword, advertiser)
cursorNoOptional pagination cursor from previous response
countryNoTwo-letter ISO country code or ALL (e.g. US, GB, DE, ALL)US
active_statusNoFilter by status: active, inactive, or allactive

Output Schema

NameRequiredDescriptionDefault
msgNoHuman-readable status message.
codeYesGateway status code (0 indicates success).
dataYesPaginated list of commercial ad creatives with performance telemetry and creative assets.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, idempotentHint=true, openWorldHint=true), so the bar is lower. The description goes beyond them with two pieces of operational context an agent cannot get elsewhere: no identity verification is required, and pricing is '2 credits per ad, min 10 credits' — a real cost constraint that should influence the limit parameter choice.

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?

A single front-loaded sentence with no filler. The core action comes first, then the differentiator (no identity verification), then the cost caveat — a sensible priority order with every clause earning its place.

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?

An output schema exists, so return values need not be explained, and the annotations carry the safety profile. The description covers scope, auth requirements and credit cost for a 5-parameter read tool. The only minor gap is that it does not say whether results are capped or how pagination interacts with credit minimums, though the cursor parameter covers the mechanics.

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 each of the five parameters (query, limit, cursor, country, active_status) is already documented with types, defaults and enums-in-prose. The description adds only the mapping of 'active or historical' to status filtering and 'keyword or brand' to the query — useful but marginal 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?

The description states a specific verb and resource ('Search active or historical commercial ads from the Meta (Facebook & Instagram) Ad Library') plus the retrieval axis ('by keyword or brand'). This is clearly distinguishable from the sibling TikTok/Instagram tools, none of which search an ad library.

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?

Usage is implied rather than prescribed: the mention of 'without Meta Graph API identity verification' tells an agent this is an alternative route for ad data, and 'active or historical' hints at the active_status filter. However, there is no explicit when-to-use/when-not framing, no named alternative tool, and no statement about what kind of ads are out of scope.

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