Skip to main content
Glama
Meta Ads MCP

Meta Ads MCP

Get ad sets

get_adsets

List Meta ad sets with budget, bidding, targeting, timestamps, and learning phase status; filter by campaign, account, or status.

Instructions

Lists ad sets, with a summary of budget, bidding, targeting, timestamps and learning phase (learning_phase.status: LEARNING/SUCCESS/FAIL, only populated while the ad set is actively delivering). Scope to a single campaign with campaign_id, or list all ad sets in an ad account.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax ad sets to return (default 25).
statusNoFilter to only these ad set statuses.
client_idNoClient identifier from accounts.config.json. Resolves the ad account and token automatically. Omit to use account_id + the default META_ACCESS_TOKEN instead.
account_idNoAd account id, e.g. "act_1234567890". Required if client_id is omitted or its config entry has no ad_account_id.
campaign_idNoRestrict results to ad sets under this campaign.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose a non-obvious trait: learning_phase.status is "only populated while the ad set is actively delivering." That prevents the agent from misreading an absent field as an error. It does not discuss read-only semantics, pagination behavior, or auth/token resolution beyond what the schema states.

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?

Two sentences, front-loaded with the return payload before the scoping options. Every clause carries information; the parenthetical on learning phase is dense but earns its space.

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?

All five parameters are optional, there is no output schema, and the description compensates by naming the summary fields returned. The only residual gap is pagination and ordering behavior, which the limit parameter implies but never clarifies.

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 only a marginal nuance — that omitting campaign_id yields every ad set in the account — while limit, status, client_id and account_id semantics are already fully explained in the schema.

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?

Opens with a specific verb and resource ("Lists ad sets") and immediately enumerates what each entry contains: budget, bidding, targeting, timestamps and learning phase. That is far more than a restatement of the name, though it never names a sibling tool it should be preferred over.

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?

It gives scoping guidance — "Scope to a single campaign with campaign_id, or list all ad sets in an ad account" — which tells the agent how to choose between campaign-level and account-level listing. It stops short of any when-not guidance or explicit routing to related tools such as get_ads or get_campaigns.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.