Skip to main content
Glama

AdsAgent — TikTok Ads MCP

templates_reverse_engineer

Reverse-engineer a template preview from one live TikTok adgroup. Fans out /campaign/get/ + /adgroup/get/ + /ad/get/ and returns an unsaved preview plus a signed source_receipt. Review the preview, then pass its extracted fields and source_receipt unchanged to templates_create before expiry. Mirrors Meta templates_reverse_engineer (Meta adset_id == TikTok adgroup_id — adset is the MCP wire name for what TikTok calls adgroup; either spelling is accepted). Image music is retained only when every actual image variant uses one unambiguous track. Video cover images and Spark post previews do not supply reusable image music. Conflicting or missing source tracks are omitted for target-specific selection.

REQUIRED: advertiser_id (str — TikTok advertiser_id this user owns), adgroup_id OR adset_id (str — TikTok adgroup_id; both names work). EXAMPLE: templates_reverse_engineer({"advertiser_id": "7390000000000000000", "adset_id": "1820000000000000000"})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
adset_idNo
adgroup_idNo
advertiser_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure and does so well. It states the operation is unsaved, describes the network fan-out, the signed source_receipt with expiry, the Meta-to-TikTok naming mapping, and nuanced image-music retention/omission behavior. An agent gets realistic expectations about side effects and limitations.

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 long but densely informative; every block earns its place: core behavior, workflow, naming mapping, music edge cases, required parameters, and example. It is front-loaded with the most important function and does not repeat schema content.

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 tool with no output schema and no annotations, the description covers the full operational lifecycle: inputs, outputs, next step, expiry, and edge cases. An agent can invoke it correctly and know exactly how to hand off to templates_create without ambiguity.

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 description coverage is 0%, so the prose must compensate. It does by naming the required advertiser_id, clarifying that adgroup_id and adset_id are interchangeable spellings for the same TikTok value, and providing a complete example. However, the prose says adgroup_id OR adset_id is required while the schema only marks advertiser_id as required, creating a minor prose/schema mismatch.

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 object: 'Reverse-engineer a template preview from one live TikTok adgroup.' It also names the internal fan-out endpoints, the return artifacts, and the downstream handoff, making it clearly distinct from template CRUD siblings like templates_create, templates_list, and templates_get.

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 gives a concrete usage workflow: review the preview, then pass extracted fields and source_receipt unchanged to templates_create before expiry. That is clear context, but it does not explicitly enumerate alternatives or exclusions, such as when to prefer fetching an existing template over reverse-engineering one.

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