Skip to main content
Glama

ads_campaigns_list

Read-onlyIdempotent

List ad campaigns across ad accounts, including ones created outside Postproxy (source: platform). Returns { total, page, per_page, data } from the last background sync (hourly for accounts with live ads). Each row is an ad object with kind campaign. For campaigns with their ad sets and ads nested, use ads_tree.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ads_campaigns_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO 8601. Created on the network at or before this time. No effect on Google Ads.
fromNoISO 8601. Created on the network at or after this time. No effect on Google Ads.
pageNoPage number, 1-based (default 1)
sortNoDefault newest
searchNoName contains this text, or exact network id
sourceNoall (default) or postproxy (created through Postproxy only)
statusNoOnly objects in one of these statuses
post_idNoOnly ads boosting this Postproxy post (post hashid)
per_pageNoPage size (default 25, max 100)
platformNoAd network: meta_ads or google_ads
profile_idNoOnly objects of this ads profile (hashid)
platform_idNoThe object with this network id
ad_account_idNoOnly objects of this ad account (network id from ads_accounts_list)
profile_group_idNoProfile group hashid, to scope the call to one profile group. Usually not needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, but the description adds information that is nowhere in the structured fields: results come from the last background sync, refreshed hourly only for accounts with live ads, so data can be stale. It also discloses the response envelope { total, page, per_page, data } and that each row is an ad object with kind campaign, which lets an agent plan parsing and caching correctly.

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?

Four sentences, each doing real work, with the scope and the sibling redirect front-loaded. The only blemish is the 'source: platform' aside, which is both low-value and misleading and could be dropped or corrected.

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 14-parameter list tool with no output schema, the description covers the essentials: what is listed, where the data comes from, how fresh it is, and the exact response envelope. It is nearly complete, with the source value discrepancy as the only real gap an agent might trip over.

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% across all 14 parameters, so the schema already carries the semantics and the baseline is 3. The description adds only a passing note, and that note is inconsistent: it names 'source: platform' while the actual source enum accepts only 'all' or 'postproxy', which could mislead an agent about a legal parameter value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('List ad campaigns across ad accounts') plus the scope detail that it includes objects created outside Postproxy. It also names the sibling ads_tree and the condition that selects it, so an agent can distinguish the two without opening a schema.

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?

It explicitly routes the agent: use ads_tree when ad sets and ads need to be nested, use this tool for a flat campaign list. That covers the main decision point against the closest sibling, but it says nothing about when a caller should instead use a narrower lookup such as ads_ad_sets_list or ads_account_get.

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.