Skip to main content
Glama
TikTok Ads Library MCP Server

TikTok Ads Library MCP Server

search_tiktok_ads

Read-only

Search TikTok's public Ad Library by exact advertiser name to retrieve running ads, ad IDs, spend/impression bands, media URLs, and recent ad changes.

Instructions

Search TikTok's public Ad Library for the ads an advertiser is running. Use the registered advertiser name (exact, case-sensitive — e.g. 'Anysphere', not 'Cursor'). Advertiser names only: topic or keyword queries return nothing. Returns ad ids, run dates, spend/impression bands and media URLs. The result's changes block lists ads first shown in the last 7 days and, when the same advertiser was fetched 24h+ ago, which ads are new since then and how many dropped out. For complete analysis of visual elements, colors, design, or creative content, you MUST also use analyze_ad_video (passing ad_id) or analyze_ad_image on the media returned by each ad.

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": {
      "query": "<query>"
    },
    "name": "search_tiktok_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
cursorNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "result": {
      +      "additionalProperties": true,
      +      "title": "Result",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "title": "search_tiktok_adsOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes well beyond by disclosing the returned fields (ad ids, run dates, spend/impression bands, media URLs) and the semantics of the changes block, including the 7-day first-shown window and the 24h+ refetch delta. The main remaining gap is pagination behavior for limit/cursor across a large result set.

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 with the core action and the query rule, then results, then the changes-block nuance, then the routing hint. Every sentence carries information, though the changes-block sentence is long and could be split for readability.

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?

The tool is moderately complex (open-world search, delta reporting, output schema present) and the description covers input constraints, return fields, and the required downstream analysis tools. Only pagination and result-set size behavior are left unaddressed, which is minor given the output schema.

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?

With 0% schema coverage, the description must carry parameter meaning, and it does the critical work on 'query' — exact case-sensitive advertiser name, not keywords. It says nothing about 'limit' (default 50, max?) or 'cursor' beyond implication, so two of three params remain undocumented, though those are conventional pagination fields.

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?

States a specific verb and resource: search TikTok's public Ad Library for ads a given advertiser is running. It also implicitly differentiates from siblings search_cached_media and get_tiktok_ad_details by scoping to a registered advertiser's live ad set.

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?

Explicitly says the query must be an exact, case-sensitive registered advertiser name (with a concrete 'Anysphere' vs 'Cursor' example) and that topic or keyword queries return nothing — a real exclusion. It also names the required follow-up tools, analyze_ad_video and analyze_ad_image, for visual/creative analysis.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.