Skip to main content
Glama

List an advertiser's ads

ads_page_ads
Read-onlyIdempotent

Meta Ad Library API: List an advertiser's ads. The ads of one advertiser page, with the same filters as search. Every ad carries days_active and winning_score (see Search ads for the formula); min_days_active and sort=longevity work as in search. 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": {
      "page_id": "<page_id>"
    },
    "name": "ads_page_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoOrder. `longevity` puts the longest-running ads of the page first.relevance
limitNoAds per page (max 30, one page of the source)
cursorNo`pagination.next_cursor` of the previous page
statusNoAd statusactive
countryNoTwo-letter country code or `ALL`ALL
page_idYesAdvertiser page ID
media_typeNoCreative typeall
min_days_activeNoKeep only ads running for at least this many days (applied to the returned page, same price)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations (which already declare read-only, idempotent, open-world), the description adds genuinely non-obvious operational facts: cost is 5 credits per call and failed calls are free, pagination requires a new call per page, and min_days_active is applied to the returned page at the same price. These are exactly the cost/rate-limit/pagination disclosures annotations 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?

Front-loaded with API name and purpose, then layered details, with no filler sentences. The dense 'Price:'/'Paginated:' shorthand is efficient, though the sentence about days_active/winning_score/min_days_active is somewhat compressed and takes a re-read.

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?

With 8 parameters, no output schema, and rich annotations, the description covers the essentials: what is listed, cost, pagination, and filter-scope caveats, and it even gestures at returned fields to compensate for the missing output schema. The winning_score formula is deferred to the sibling tool rather than described, leaving one small gap.

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 baseline is 3. The description adds some meaning by cross-referencing filter behavior to the search tool and naming returned fields (days_active, winning_score), but it does not explain parameter interactions or formats beyond what the schema already documents.

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 ('List an advertiser's ads' / 'The ads of one advertiser page') and scopes it to a single page_id, which separates it from the broader search tool. It references 'Search ads' as the sibling carrying the shared filter semantics, but never contrasts the two explicitly enough to be a textbook 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: 'The ads of one advertiser page, with the same filters as search' tells the agent this is the per-advertiser listing counterpart to search, and pagination instructions are concrete. However there is no explicit when-to-use/when-not statement telling the agent to pick this over ads_ads_search or ads_page.

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.