Skip to main content
Glama

List an advertiser's ads

get_page_ads
Read-onlyIdempotent

List the ads of one advertiser (competitor), newest and most relevant first.

    Cost: 1 credit per call, whatever the number of ads returned (an empty result too);
    an error costs 0. The next page is a new call (1 credit).

    Args:
        page_id: Numeric advertiser page ID (use search_pages to find it from a brand name).
        country: ISO-3166 alpha-2 country or 'ALL' (default).
        status: 'active' (default), 'inactive' or 'all'.
        media_type: 'all', 'image', 'video', 'meme' or 'none'.
        platforms: Subset of facebook, instagram, messenger, audience_network, threads.
        languages: ISO-639-1 language codes.
        active_from: YYYY-MM-DD.
        active_to: YYYY-MM-DD.
        sort: 'relevance' (default), 'impressions' (most impressions first) or 'longevity'
            (longest-running first: days_active, applied to the returned page).
        min_days_active: Keep only ads running for at least this many days (applied to the
            returned page, so fewer ads may come back; same cost). Long-running ads are
            the ones that work ("winning ads"): each ad has days_active and a 0-100
            winning_score (longevity, variants, EU reach).
        limit: Ads per page, 1-30 (default 10).
        cursor: next_cursor from a previous call, to get the next page (same filters).
    

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

Input Schema

NameRequiredDescriptionDefault
sortNorelevance
limitNo
cursorNo
statusNoactive
countryNoALL
page_idYes
active_toNo
languagesNo
platformsNo
media_typeNoall
active_fromNo
min_days_activeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent/non-destructive annotations by disclosing billing behavior (1 credit per call regardless of result count, empty results bill, errors are free, each next page is a new charged call). It also explains the non-obvious semantic that min_days_active filters against the returned page, so fewer ads may come back at the same cost, and that sort='longevity' is also page-scoped.

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 cost then args, which is the right reading order for an agent deciding whether to call. The min_days_active entry is longer than needed, restating days_active/winning_score in a way that pads the args block, but no sentence is truly wasted.

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

Completeness5/5

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

For a 12-param, paginated, credit-metered read tool it covers scope, cost, pagination via cursor, all filter semantics, and points to the helper for obtaining the required ID. Return values are covered by the existing output schema, so nothing structural is left unexplained.

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

Parameters5/5

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

With schema description coverage at 0% across 12 parameters, the description carries the full documentation burden and does so: every arg is explained with type-ish format hints (ISO-3166 alpha-2, ISO-639-1, YYYY-MM-DD), enum members are spelled out (status, media_type, platforms, sort), and non-obvious ones like longevity sort and min_days_active get semantic caveats the schema cannot express.

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 the ads of one advertiser') plus the ordering scope ('newest and most relevant first'), which distinguishes it from a broad ad search. It does not explicitly name the sibling search_ads as the alternative, so an agent must infer the boundary from the 'one advertiser' scoping.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete prerequisite routing hint: 'use search_pages to find it from a brand name' for page_id, which is the main entry barrier. Defaults are documented per filter, but there is no explicit statement of when to prefer search_ads or get_ad over this tool.

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.