Skip to main content
Glama

AdsLibraryAPI — Meta, Google & TikTok Ad Library JSON MCP

Search Cross-Platform Commercial Ad Creatives (Meta & Google Ads)

search_commercial_ads
Read-onlyIdempotent

Search active commercial video, image, carousel, and search ads by keyword, niche, or brand across Meta Ad Library (Facebook/Instagram) and Google Ads Transparency. Returns hook copy, headlines, CTAs, HD video/image URLs, destination landing pages, active days running, and winner signals. Cost: 2 Credits / ad returned (0 Credits if empty).

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_commercial_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax ads to return (1–50).
queryYesKeyword, product niche, or competitor brand (e.g. "CRM software", "shopify", "AI email").
countryNo2-letter ISO country code (e.g. "US", "GB", "CA", "AU") or "ALL".US
platformNoTarget ad rail: all (Meta + Google), social (Meta Ad Library), or search (Google Ads Transparency).all

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?

Annotations already declare readOnly, idempotent, open-world and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral facts beyond that: results are limited to *active* ads, the returned payload includes hook copy, CTAs, landing pages and winner signals, and the cost model is disclosed with the empty-result exemption. It stops short of discussing pagination or rate limits, so a 4 rather than 5.

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?

Three front-loaded sentences with no filler: capability and scope first, return payload second, cost third. Every clause carries decision-relevant information, and the credit pricing is placed where an agent will see it before committing to a call.

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 the description need not enumerate return fields (it does so redundantly but harmlessly), and annotations cover the safety profile. The one meaningful omission is guidance on using the platform parameter to control credit spend, which matters for a metered, up-to-50-result call; otherwise an agent has everything needed to invoke it correctly.

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 including the platform enum and country format is already documented. The description's mention of "keyword, niche, or brand" lightly reinforces the query parameter's intent but adds no syntax, format, or defaulting detail beyond the schema, making the baseline 3 correct.

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 leads with a specific verb and resource: "Search active commercial video, image, carousel, and search ads" across named sources (Meta Ad Library, Google Ads Transparency). The scope is unambiguous enough to distinguish it as the cross-platform aggregator versus single-source siblings like search_google_ads_transparency, though it never names those siblings explicitly, which keeps it short of a 5.

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 stated: the platform enum (all/social/search) hints at routing, and the credit cost ("2 Credits / ad returned") gives an economic reason to narrow scope. However, there is no explicit when-to-use versus when-to-prefer-the-single-platform-tools guidance and no stated prerequisites, so an agent must infer the routing itself.

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