Skip to main content
Glama

Search advertisers

ads_pages_search
Read-onlyIdempotent

Meta Ad Library API: Search advertisers. Advertiser pages whose ads match a keyword. Price: 5 credits per call; failed calls are free. Paginated: pass pagination.next_cursor as cursor for the next page (each page is a new call).

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": {
      "q": "<q>"
    },
    "name": "ads_pages_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesKeyword
limitNoPages (max 10, one page of the source)
countryNoTwo-letter country code or `ALL`ALL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, open-world behavior, so the description's job is to add cost and paging context — and it does: 5 credits per call, failed calls free, and each page counts as a new billable call. That is genuinely useful information an agent cannot get from the annotations or schema.

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-loaded with the verb and resource, then cost, then paging — a sensible priority order with no filler sentences. The only bloat is the redundant restatement in the second sentence.

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

Completeness3/5

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

Cost and pagination intent are covered, and the three parameters are documented in the schema. But the pagination story is broken: the described cursor parameter does not exist, and the description never says where a caller obtains the cursor value, so a multi-page workflow cannot actually be executed from this definition.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description actively misleads: it instructs the caller to pass `pagination.next_cursor` as `cursor`, yet the input schema has no `cursor` property. An agent following this instruction would attempt an invalid argument or be unable to paginate at all, which is worse than adding nothing.

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 ("Search advertisers") plus a clarifying scope sentence: "Advertiser pages whose ads match a keyword." That is enough to separate it from ad-level or page-detail siblings in spirit, but no sibling is named explicitly, so the differentiation is left to inference.

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?

The phrase "Advertiser pages whose ads match a keyword" implies when this tool fits, and the required `q` keyword is obvious from the schema. There is no explicit statement of when to prefer it over ad search or page lookup, and no prerequisites or exclusions are given.

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.