Skip to main content
Glama

AdsAgent — TikTok Ads MCP

List saved templates

templates_list
Read-only

List saved ad templates for the authenticated user as a bounded summary page (id, name, tags, objective, optimization goal, CBO/ABO, Smart+, ad format, source advertiser, timestamps). Use templates_get for one template's params, naming and defaults. Mirrors the Meta sister product's templates_list so the same agent code works on either MCP server.

REQUIRED: none. Optional: limit (1..50; default 50, or 5 with detail=full), cursor (next_cursor from the previous page; keep detail/limit identical), detail (summary | full — full returns the complete rows, keep limit small), product_ref (one product card; ignored unless product cards are enabled). A template is an ad-creation template, not an insights breakdown. When product cards are enabled, each row includes product_link. EXAMPLE: templates_list({})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
cursorNo
detailNosummary
product_refNo
connection_contextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / product_ref
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Product Ref"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / cursor
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Cursor"
      +}
    • addedInput schema / properties / detail
      Added value: +{
      +  "default": "summary",
      +  "enum": [
      +    "summary",
      +    "full"
      +  ],
      +  "title": "Detail",
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 50,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Limit"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / connection_context
      Added value: +{
      +  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered. The description still adds real behavior: page-bounding, the limit default shifting to 5 under detail=full, cursor stability requirements, and conditional inclusion of product_link. It stops short of auth/rate-limit or error behavior, so not a 5.

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?

Front-loaded purpose followed by clear REQUIRED/Optional/EXAMPLE sections, so it scans well. It is dense and the 'Mirrors the Meta sister product's templates_list' sentence adds little for tool selection, keeping it out of 5 territory.

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?

With no output schema, the description enumerates the returned fields, documents every user-facing parameter, and covers pagination, so an agent has everything needed to call it correctly. The one undocumented field, connection_context, is an injected context token rather than a caller decision.

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 carries the full burden and does so thoroughly: limit range and dual default, cursor semantics, detail enum with the effect on row completeness, and product_ref's conditional applicability. This is strong compensation for an undocumented 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 names a specific verb and resource ('List saved ad templates for the authenticated user') and immediately scopes it ('bounded summary page') with the exact fields returned. It explicitly distinguishes itself from the sibling templates_get, so an agent can route between the two without opening either schema.

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 routing ('Use templates_get for one template's params, naming and defaults') and states conditions for the tricky parameters (product_ref ignored unless product cards are enabled; cursor requires keeping detail/limit identical). It also disambiguates the resource ('A template is an ad-creation template, not an insights breakdown').

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