Skip to main content
Glama

Google Ads & Meta Ads

TikTok Ads: Create Ad Group

tiktok_create_adgroup

Create one new ad group, switched off, under an existing Upgraded Smart+ Sales or Lead Generation campaign in the user's own TikTok ad account (campaign_id from tiktok_create_campaign or tiktok_get_campaigns). Set what it optimises for: CONVERT with a pixel_id and its optimization_event (both from tiktok_get_pixel_events), or CLICK. Set the locations it targets, and optionally ages, gender, languages and audiences; targeting is AUTOMATIC by default, where TikTok treats those as guidance, or MANUAL, where they are limits. Pass a budget only when the campaign holds none; a daily budget must be within the user's daily spend cap. It is always created paused and spends nothing until the user approves tiktok_set_status. It does not create app, catalog or instant-form ad groups. Get the user's explicit approval first. 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": {
      "campaign_id": "<campaign_id>",
      "adgroup_name": "<adgroup_name>",
      "optimization_goal": "<optimization_goal>",
      "location_ids": "<location_ids>"
    },
    "name": "tiktok_create_adgroup"
  }
}

Input Schema

NameRequiredDescriptionDefault
budgetNoBudget of the ad group in the account currency. Required when the campaign holds no budget; refused when the campaign holds one.
genderNoGender to target. Omitted: all.
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.
pixel_idNoPixel that tracks the website, from tiktok_get_pixel_events. Required with CONVERT.
bid_priceNoBid per click in the account currency, for CLICK. Omitted: Maximum Delivery, no bid.
languagesNoLanguage codes to target, e.g. en, es. Omitted: all.
age_groupsNoAge groups to target. Omitted: all ages.
budget_typeNoDAILY (default): an average daily budget; a day can spend up to 125% of it, a week no more than seven times it. LIFETIME: one total for the whole run. It cannot be changed later.
campaign_idYesId of the Upgraded Smart+ campaign to add the ad group to.
adgroup_nameYesName of the ad group, up to 512 characters.
audience_idsNoCustom or lookalike audiences to include (ids from tiktok_list_custom_audiences).
location_idsYesTikTok location ids to target, 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.
targeting_modeNoAUTOMATIC (default): TikTok finds the audience and treats ages, gender and audiences as suggestions. MANUAL: they are hard limits, which can restrict delivery.
optimization_goalYesCONVERT: optimise for a pixel event (needs pixel_id and optimization_event). CLICK: optimise for clicks to the website.
schedule_end_timeNoEnd, UTC, as YYYY-MM-DD HH:MM:SS. Omitted: no end. Required with a LIFETIME budget.
optimization_eventNoThe pixel event to optimise for, as TikTok names it: optimizationEvent of one of the pixel's definedEvents in tiktok_get_pixel_events, e.g. SHOPPING or FORM. Required with CONVERT.
schedule_start_timeNoStart, UTC, as YYYY-MM-DD HH:MM:SS. Default: now. It still delivers nothing while switched off.
conversion_bid_priceNoTarget cost per conversion in the account currency, for CONVERT. Omitted: Maximum Delivery, no target.
excluded_audience_idsNoCustom or lookalike audiences to exclude.

Output Schema

NameRequiredDescriptionDefault
dryRunYesTrue when the call only previewed the request.
statusYesAlways DISABLE: the object is created switched off and delivers nothing until the user approves tiktok_set_status ENABLED on it and on everything above it.
createdYesTrue only when this call created the object.
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.
entityIdNoId of the new object (for an ad, its smartPlusAdId); null on a dry run.
parentIdNoCampaign of a new ad group, or ad group of a new ad.
settingsYesThe settings sent to TikTok, or that would be sent on a dry run, under TikTok's field names; money in the account currency.
verifiedNoWhether TikTok's read-back shows the new object switched off; null on a dry run or when the read-back failed.
warningsYesLimits and next steps the user should hear about.
operationYesWhat happened: created or dry_run.
entityNameYesName given to the object.
entityTypeYesKind of object.
advertiserIdYesTikTok ad account the object is in.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true); the description goes much further. It discloses that the ad group is always created paused and spends nothing until approval, that a daily budget must fit the user's spend cap, that budget is refused when the campaign already holds one, and how AUTOMATIC vs MANUAL targeting changes delivery risk.

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?

It is a single dense paragraph, front-loaded with the action and scope, then dependency pointers, then behavioral caveats. Nearly every clause carries information, though the approval and paused-status points are each stated twice ('switched off' at the start and 'always created paused' later), which could be merged.

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?

For a 20-parameter mutation with an output schema and full annotation coverage, the description supplies everything an agent needs before calling: prerequisites, cross-tool dependencies, budget constraints, spend-cap limits, dry_run availability, and scope exclusions. Nothing material is missing.

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 description coverage is 100% across all 20 parameters, so the schema already documents enums, defaults and per-field requirements. The description's parameter statements (CONVERT needs pixel_id and optimization_event, budget conditional on the campaign, targeting modes) largely restate what the schema fields say, adding little meaning beyond it; baseline 3 applies.

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 ('Create one new ad group') and immediately narrows scope: switched off, under an existing Upgraded Smart+ Sales or Lead Generation campaign, in the user's own ad account. It also states explicit exclusions ('does not create app, catalog or instant-form ad groups'), which cleanly separates it from tiktok_create_campaign and tiktok_create_ad.

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?

Guidance is explicit and actionable: campaign_id comes from tiktok_create_campaign or tiktok_get_campaigns, pixel and event from tiktok_get_pixel_events, locations from tiktok_get_adgroups, and a budget is passed only when the campaign holds none. It also states a prerequisite workflow ('Get the user's explicit approval first') and names the follow-up tool (tiktok_set_status).

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