Skip to main content
Glama

Meta Ad Library Spend MCP Demo by AdSpendSpy

List advertiser ads

list_brand_ads
Read-onlyIdempotent

Public demo: Alex Hormozi only (page_id 116482854782233). Ad listings/details expose only approved public creatives; statistics describe this advertiser only. List creative summaries for one tracked advertiser, newest internal ID first, or with sort spend highest latest cumulative estimated spend first (use it for an advertiser's top ads). pagination.next_cursor returns the next page. Each ad carries internal_ad_id (AdSpendSpy ID) and meta_ad_id (the ad on Meta). creative_group is set when the same picture also runs under other Meta ad IDs (relaunch, other CTA or text): copies and spend_eur count every copy.

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

Input Schema

NameRequiredDescriptionDefault
sortNonewest = newest internal ID first; spend = highest estimated spend first.newest
limitNo
cursorNoOpaque pagination.next_cursor returned by the previous page with the same filters.
page_idYesMeta advertiser page ID, kept as a string.
media_typeNoall
active_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / sort
      Added value: +{
      +  "default": "newest",
      +  "description": "newest = newest internal ID first; spend = highest estimated spend first.",
      +  "enum": [
      +    "newest",
      +    "spend"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare the read-only, idempotent, non-destructive, closed-world profile, so the bar is low, yet the description still adds real behavioral context: only approved public creatives are exposed, statistics cover this advertiser only, results are ordered by internal ID, and pagination.next_cursor drives the next page. It also discloses non-obvious aggregation semantics — creative_group marks the same picture running under other Meta ad IDs, and copies/spend_eur count every copy — which materially affects how an agent should interpret the returned numbers.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The demo restriction is correctly front-loaded and most sentences carry information an agent needs. But the sort sentence is garbled — 'newest internal ID first, or with sort spend highest latest cumulative estimated spend first' — and duplicates schema content, while the opening sentence mixes two ideas (demo scope and data-exposure policy) in a way that slows parsing.

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?

For a six-parameter list tool with no output schema, the description covers most of what matters: the demo scope, what records are visible, ordering, pagination continuation, and the meaning of the returned ad identifiers and spend aggregation. It falls short on how media_type and active_only change the result set and on any error or empty-result behavior, which an agent would otherwise have to discover by calling.

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 coverage is 50%: sort and cursor are already documented in the schema, and the description largely restates the sort meanings rather than extending them. It does add value on page_id by tying the enum to the demo restriction, and on cursor by naming the next_cursor source, but limit, media_type and active_only receive no explanatory treatment anywhere.

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 opens with a specific verb+resource: 'List creative summaries for one tracked advertiser', and constrains it to a single demo advertiser (page_id 116482854782233). It implicitly separates itself from detail-oriented siblings by saying listings expose only 'approved public creatives', but it never names the sibling (e.g. get_ad_details) that an agent would use for full ad detail, so sibling differentiation is soft rather than explicit.

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?

There is usable guidance inside the sort explanation: 'use it for an advertiser's top ads' when sort=spend, which tells the agent the intended call for a common task. However, there are no when-not-to-use conditions and no named alternative for retrieving a single ad's full details or for aggregate top-ad statistics, so routing between list_brand_ads, get_ad_details and get_top_ads_stats is left to inference.

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