Skip to main content
Glama

Meta ad sets

meta_get_ad_sets
Read-only

Ad sets in a Meta ad account (or one campaign): targeting summary (countries, ages, Advantage+ audience on/off), optimisation goal and the result it counts, budget or 'uses campaign budget', and schedule.

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

Input Schema

NameRequiredDescriptionDefault
campaignNoCampaign id, to list just its ad sets.
adAccountNoAd account name or id ('act_123' or '123'), from meta_list_ad_accounts. Only needed when more than one is shared.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds real value beyond that by enumerating the returned payload — targeting summary, optimisation goal and counted result, budget vs 'uses campaign budget', schedule — which is the main behavioral unknown given there is no output schema. It stops short of mentioning pagination, result caps, or auth/permission requirements.

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?

A single front-loaded sentence that leads with the resource and scope, with no filler or repetition. The parenthetical field list is dense but every element (countries, ages, Advantage+ on/off) is concrete information about the payload rather than padding.

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 read-only listing tool with two optional parameters, full schema coverage, and annotations, the definition covers what an agent needs: scope, both filter dimensions, and the fields returned. The remaining gap is minor — no mention of how results are ordered, paginated, or truncated when the account has many ad sets.

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 100% and both parameters are optional, so the schema already explains 'campaign id, to list just its ad sets' and the adAccount id format. The description restates the campaign-scoping idea but adds no syntax, default behavior, or fallback semantics (e.g. what happens when multiple accounts are shared and adAccount is omitted). Baseline 3 applies.

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?

Names the resource (Meta ad sets) and its scope precisely — an ad account, or a single campaign via the campaign parameter — which implicitly separates it from meta_get_campaigns and meta_get_ads. However, it is a noun phrase with no explicit verb (list/retrieve) and never names a sibling, so the reader infers read semantics from context rather than from the text.

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?

Usage is only implied: the parenthetical '(or one campaign)' and the adAccount note 'Only needed when more than one is shared' tell the agent how to narrow the call, but there is no explicit statement of when to choose this over meta_get_campaigns, meta_get_ads, or meta_performance_report. No exclusions or prerequisites are given.

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