Skip to main content
Glama

AdsAgent — TikTok Ads MCP

templates_create

Create a new saved template for the authenticated user. Mirrors Meta templates_create. adset_params is accepted as the Meta wire alias for adgroup_params (TikTok native); pass either — adset is the MCP wire name for what TikTok calls adgroup. Same shape on both products. Image templates may store ad_params.music_info={music_id:} with one nonempty ID of at most 256 characters. Select it with assets_list_music for the intended advertiser; omit music_info to select music during create preparation. Store media selections on the create request, not in the template.

REQUIRED: name (str, <= 200 chars). OPTIONAL: tags (list[str]), campaign_params (dict), adset_params / adgroup_params (dict), ad_params (dict), source_advertiser_id (str), source_adset_id / source_adgroup_id (str), source_receipt (str; required for reverse-engineered source fields), source_campaign_name (str), source_adset_name / source_adgroup_name (str), campaign_naming (str), adset_naming / adgroup_naming (str). EXAMPLE: templates_create({"name": "WebConv VN", "tags": ["vn", "prospecting"], "campaign_params": {"objective_type": "WEB_CONVERSIONS"}, "adset_params": {"bid_type": "BID_TYPE_NO_BID"}})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
tagsNo
ad_paramsNo
adset_namingNo
adset_paramsNo
adgroup_namingNo
adgroup_paramsNo
source_receiptNo
campaign_namingNo
campaign_paramsNo
source_adset_idNo
source_adgroup_idNo
source_adset_nameNo
source_adgroup_nameNo
source_advertiser_idNo
source_campaign_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

There are no annotations, so the description carries the full burden. It explains the alias relationship between adset and adgroup parameters, which is useful behavioral context. However, it does not disclose behavior like idempotency, permission requirements, or whether the operation is reversible. It doesn't contradict annotations because none exist.

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 well-structured with a clear introduction, parameter breakdown, and example. It fronts the key purpose and alias explanation, and every sentence adds value. It is detailed but not bloated.

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 16-parameter tool with no output schema and no annotations, the description provides strong parameter guidance and an example, which is critical. It covers most important aspects, though it could maybe mention error conditions or response format, but given constraints, it's quite complete.

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 compensate, and it does exceptionally well. It clearly lists required and optional parameters, explains the alias relationship, provides constraints (name <= 200 chars), and gives an example. This goes far beyond the bare schema.

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 clearly states it creates a new saved template for the authenticated user, distinguishes it from templates_get/list/update/delete, and uses a specific verb, resource, and scope. It also mentions it mirrors Meta's templates_create, which adds clarity.

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?

It provides a clear example and explains when to use it (create new template) and includes context like selecting music with assets_list_music and storing media selections on the create request. However, it does not explicitly state when not to use it or mention alternatives like templates_update, though the sibling context makes this clear.

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