Skip to main content
Glama
Meta Ads MCP

Meta Ads MCP

Update targeting exclusions

update_targeting_exclusions

Excludes custom audiences, geo locations, and interests or behaviors from an ad set by merging into its existing targeting. Previews changes first; confirm to execute.

Instructions

Manages exclusion audiences on an ad set: excluded custom/lookalike audiences, excluded geo locations, and excluded interests/behaviors. Merges into the ad set's existing targeting. Always previews the change first — call again with confirm: true to execute.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "adset_id": "<adset_id>"
    },
    "name": "update_targeting_exclusions"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoMust be true to actually execute this action. Omit or pass false to get a preview (current state, proposed change, computed deltas) without making any changes.
adset_idYesAd set id to update.
client_idNoClient identifier from accounts.config.json. Omit to use the default META_ACCESS_TOKEN.
exclusionsNoRaw targeting.exclusions object for interest/behavior exclusions, e.g. { "interests": [{ "id": "...", "name": "..." }] } (replaces the current value).
excluded_geo_locationsNoRaw excluded_geo_locations object, e.g. { "countries": ["CI"] } (replaces the current value).
excluded_custom_audience_idsNoCustom/lookalike audience ids to exclude (replaces the current list).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the whole burden, and it does deliver the most important trait: a mandatory preview/confirm gate before mutation. However it says the change 'merges into the ad set's existing targeting' while the schema says each field 'replaces the current value' — an agent cannot tell which fields are additive versus destructive, and there is no note on permissions, clearing behavior, or failure modes.

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?

Three short sentences: scope first, merge behavior second, the confirm gate last. Every sentence carries operational weight and nothing is padded.

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 mutation tool with no annotations, no output schema, and nested object parameters, the description covers the critical workflow — preview, then execute — which is the main way an agent could go wrong here. Gaps remain on how to remove exclusions entirely (empty array?), auth scope for the client_id path, and what the preview actually contains, keeping it below a 5.

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 the confirm/adset_id semantics are fully documented there, so a 3 baseline applies. The description adds only the category mapping (which parameter corresponds to which exclusion type), and its 'merges' language sits uneasily against the schema's 'replaces' wording, adding ambiguity rather than clarity about mutation semantics.

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 (exclusion audiences on an ad set) and enumerates exactly the three exclusion families it touches: custom/lookalike audiences, geo locations, and interests/behaviors. That distinguishes it from sibling mutators like update_adset_bid and update_adset_budget by scope alone. The verb 'Manages' is generic where 'sets' or 'replaces' would have been sharper, so it stops short of a 5.

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?

Gives an explicit two-step operating procedure: always preview, then call again with confirm: true to execute. That is real when-to-use guidance an agent would otherwise get wrong. It does not point at any inspection alternative (e.g. get_adsets) for reading current exclusions, so it is not fully routing-aware.

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