Skip to main content
Glama

Google Ads & Meta Ads

TikTok Ads: Update Ad Group Targeting

tiktok_update_adgroup_targeting
DestructiveIdempotent

Change who one TikTok ad group reaches in the user's own ad account: locations, age groups, gender, languages, custom audiences to include or exclude, interest categories and operating systems. Each list you pass REPLACES the ad group's current list for that criterion, so read the ad group with tiktok_get_adgroups first and pass the full list you want; criteria you omit are left as they are. An empty list clears a criterion (all ages, all languages, no audience), except location_ids, which must keep at least one location. A targeting change alters who sees the ads and what they cost, and can restart the learning phase, so get the user's explicit approval first. Works for manual, Smart+ and Upgraded Smart+ ad groups; TikTok refuses criteria an automated campaign controls itself. It cannot change placements, the optimisation goal or the budget. Supports dry_run.

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": {
      "adgroup_id": "<adgroup_id>"
    },
    "name": "tiktok_update_adgroup_targeting"
  }
}

Input Schema

NameRequiredDescriptionDefault
genderNoGender to target.
dry_runNotrue: read the object and report the field-level changes this call would make, changing nothing. Default false. Show the user the proposal and get their approval before calling without dry_run.
languagesNoLanguage codes to target, e.g. en, es, pt; replaces the current ones. Empty: all languages.
adgroup_idYesId of the ad group, from tiktok_get_adgroups.
age_groupsNoAge groups to target, replacing the current ones. Empty: all ages.
audience_idsNoCustom or lookalike audiences to include (ids from tiktok_list_custom_audiences); replaces the current ones. Empty: none.
location_idsNoTikTok location ids to target, replacing the current ones; at least one. Use ids already on the account's ad groups (locationIds in tiktok_get_adgroups).
advertiser_idNoTikTok ad account to change: advertiser id or exact account name. Required when you have several ad accounts — the stored default is never used for a change then.
operating_systemsNoOperating systems to target, replacing the current ones. Empty: all.
excluded_audience_idsNoCustom or lookalike audiences to exclude; replaces the current ones. Empty: none.
interest_category_idsNoTikTok interest category ids to target; replaces the current ones. Empty: none.

Output Schema

NameRequiredDescriptionDefault
dryRunYesTrue when the call only previewed the change.
changedYesTrue only when this call changed TikTok Ads.
changesYesField-level changes: made, or proposed on a dry run.
currencyNoISO currency code that every money field in this result is denominated in, e.g. UAH or USD. Null when it could not be resolved — do not assume a currency then.
entityIdYesId of the object, as passed.
verifiedNoWhether TikTok's read-back holds every requested value; null when nothing was written or the read-back failed.
warningsYesSide effects and limits the user should hear about.
operationYesWhat happened: updated, no_change, or dry_run.
entityNameNoThe object's name, when it has one.
entityTypeYesKind of object addressed.
advertiserIdYesTikTok ad account the object is in.
campaignTypeYesWhich TikTok management surface the object belongs to: STANDARD for manual and legacy Smart+ campaigns, UPGRADED_SMART_PLUS for Upgraded Smart+.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

The annotations already declare destructiveHint=true and openWorldHint=true; the description goes well beyond them by explaining the replace-not-merge semantics, that an empty list clears a criterion except for location_ids (which needs at least one entry), and that the change can restart the learning phase and alter delivery and cost. That is exactly the risk context an agent needs before invoking a destructive write.

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?

The description is front-loaded with purpose and criteria, then moves to semantics, then risk and approval — a logical order with no filler sentences. It is dense but long, and the read-first/approve instruction is partly duplicated by the dry_run parameter description.

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?

An output schema exists, so return-value detail is unnecessary, and the description covers everything else an agent needs for an 11-parameter destructive mutation: replacement semantics, prerequisites, approval workflow, dry_run, campaign-type applicability, and refusal conditions.

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?

Schema coverage is 100%, so the baseline is 3, and the description adds real meaning: that every list is a full replacement rather than an increment, that omitted criteria stay unchanged, and the location_ids minimum-one exception that the schema states only tersely. It adds less about the individual enum values, which the schema already covers.

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 and resource ("Change who one TikTok ad group reaches") and then enumerates the exact criteria it can alter, so it is clearly distinct from siblings such as tiktok_update_adgroup_schedule, tiktok_update_bidding and tiktok_update_budget. It also scopes the tool by naming what it cannot change (placements, optimisation goal, budget).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit operational guidance: read the ad group with tiktok_get_adgroups first, pass the full list because each list replaces the current one, obtain the user's explicit approval before calling, and use dry_run to preview. It also states the per-campaign-type conditions (manual, Smart+, Upgraded Smart+) and when TikTok will refuse a criterion.

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