Skip to main content
Glama
AbnerZx

Meta Ads MCP

by AbnerZx

audiences_apply_to_adset

Apply saved audience targeting to an adset. Replace or merge with existing targeting, and add overrides for per-adset tweaks. Requires confirmation to rewrite adset targeting.

Instructions

Copy targeting from a saved audience to a live adset.

This is the verified workaround for the saved_audiences write capability gate: the adset endpoint accepts the same targeting object under standard ads_management scope, so we just pull the targeting from the saved audience and POST it on the adset.

Args: saved_audience_id: e.g. 120241644369970701 adset_id: target adset to update merge: how to combine the saved audience's targeting with the adset's existing targeting: - "replace" (default): overwrite the adset's targeting entirely - "merge": shallow-merge — saved-audience keys override adset keys, anything else on the adset is preserved overrides: extra targeting keys to apply on top of the resulting object (e.g. {"age_min": 25}). Useful for per-adset tweaks without editing the saved audience. confirm: must be True (the adset targeting WILL be rewritten).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mergeNoreplace
confirmNo
adset_idYes
overridesNo
saved_audience_idYes
Behavior5/5

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

With no annotations, the description carries the full disclosure burden. It is transparent about the destructive nature: 'adset targeting WILL be rewritten' and the confirm parameter 'must be True' as a safety gate. It also explains merge semantics ('replace' overwrites entirely, 'merge' preserves adset keys not overridden) and the effect of overrides. This goes well beyond the schema, which has no descriptions.

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 front-loaded with a clear one-sentence purpose, followed by a brief rationale and a well-structured Args section with bullet points. Every sentence adds value; there is no redundancy or fluff. The length is justified by the complexity of the merge and override semantics.

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

Completeness5/5

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

Given the tool's complexity (5 params, merge logic, overrides, safety confirm), the description covers all aspects: purpose, the workaround context, complete parameter semantics, and behavioral warnings. It lacks an output schema and annotations, but the description provides everything an agent needs to invoke the tool correctly and understand its effects.

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?

Schema description coverage is 0%, so the description must fully compensate, and it does. Each of the 5 parameters is explained with examples, defaults, and behavior: saved_audience_id with example, adset_id as target, merge with two modes and their effects, overrides with a usage example, and confirm with a warning. This is exemplary parameter documentation.

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 opens with a specific verb+resource: 'Copy targeting from a saved audience to a live adset.' This clearly distinguishes it from sibling tools like audiences_update_saved (which updates the saved audience itself) or ads_update_adset (which directly edits adset settings). The workaround context further clarifies its unique role.

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 explicitly states when to use the tool: it is the workaround for the saved_audiences write capability gate, and explains the mechanism (pull targeting from saved audience, POST on adset). It doesn't explicitly name alternative tools, but the context implies that direct saved-audience writes are not available, making this the intended alternative. This meets the 'explicit when' criterion, though it could more directly name excluded 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/AbnerZx/meta-ads-mcp'

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