Skip to main content
Glama
pralayasimha23

meta-ads-mcp

get_adsets

Retrieve ad sets from a Meta Ads account, with optional campaign filtering and pagination control.

Instructions

Get ad sets for a Meta Ads account with optional filtering by campaign.

Args:
    account_id: Meta Ads account ID (format: act_XXXXXXXXX)
    access_token: Meta API access token (optional - will use cached token if not provided)
    limit: Maximum number of ad sets to return per page (default: 10)
    campaign_id: Optional campaign ID to filter by
    fetch_all: Whether to follow pagination cursors to fetch all ad sets (default: False)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
fetch_allNo
account_idYes
campaign_idNo
access_tokenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the transparency burden. It discloses meaningful behaviors: access_token caching fallback, pagination with per-page limit, and fetch_all for following cursors. This goes beyond the basic 'Get' verb and provides useful operational details.

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 extremely concise: one clear purpose sentence followed by a focused parameter list. Every line adds value, no fluff, and the structure is easy to scan.

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?

Given the tool's moderate complexity (5 params, output schema present, no annotations), the description covers purpose, all parameters, pagination, and auth fallback. It lacks explicit error conditions or rate-limit notes, but those are not critical for a listing tool with an output schema.

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?

The schema has 0% description coverage, so the description's Args section fully compensates by explaining each parameter: account_id format (act_XXXXXXXXX), access_token optionality/caching, limit default, campaign_id filter, and fetch_all pagination behavior. This adds substantial meaning beyond the schema's bare titles and defaults.

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 specifies the action ('Get'), the resource ('ad sets'), and the scope ('for a Meta Ads account with optional filtering by campaign'). It is clear and distinct from siblings like get_ads or get_adset_details, though it does not explicitly name alternatives.

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 conveys when to use the tool (to retrieve ad sets, optionally filtered by campaign) via the main sentence and parameter details. It does not explicitly contrast with sibling tools or state exclusions, but the usage context is clear.

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/pralayasimha23/meta-ads-mcp'

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