Skip to main content
Glama

List Ad Sets

meta_list_adsets
Read-only

List ad sets filtered by campaign ID, ad account ID, or status to retrieve active, paused, archived, or deleted ad sets for campaign management.

Instructions

Lists ad sets for a campaign or ad account.

Args:

  • campaign_id (string, optional): Filter by campaign ID

  • ad_account_id (string, optional): Ad account ID (use if not filtering by campaign)

  • status_filter (string[], optional): ACTIVE, PAUSED, ARCHIVED, DELETED

  • limit (number): Max results (default 20)

  • after (string, optional): Pagination cursor

Provide either campaign_id or ad_account_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
campaign_idNoFilter by campaign ID
ad_account_idNoAd account ID (if no campaign filter)
status_filterNo
limitNo
afterNo
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown
Behavior3/5

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

Annotations already indicate readOnlyHint=true and destructiveHint=false, so the description does not need to repeat that. The description adds some context like pagination via 'after' cursor, but does not explain behavior like rate limits or confirmation of results. It adds marginal value beyond annotations.

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

Conciseness5/5

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

The description is concise with bullet-like arg listing, front-loads the purpose, and every sentence adds value. No unnecessary words.

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

Completeness3/5

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

The description lacks information about return format (despite response_format parameter in schema) and pagination details beyond the cursor. For a list tool without output schema, these are gaps. The description is adequate but incomplete.

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

Parameters4/5

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

The description adds meaning by clarifying the relationship between campaign_id and ad_account_id ('Provide either'), and lists status_filter enum values. However, it misses the response_format parameter which is in the schema. With 50% schema coverage, the description compensates well but not completely.

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 clearly states it lists ad sets, with the specific context of filtering by campaign or ad account. This distinguishes it from sibling tools like meta_list_ads or meta_get_adset.

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?

The description explains the key usage rule: provide either campaign_id or ad_account_id. It also lists optional filters. However, it does not explicitly state when not to use this tool (e.g., for a single ad set use meta_get_adset) or mention alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/oliverames/meta-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server