Skip to main content
Glama

Search TikTok Ads

search_tiktok_ads
Read-only

Search TikTok's public ads library (EU DSA) by advertiser name. Advertiser names ONLY — this tool cannot search by topic, keyword, product category, industry or ad format ('UGC ads', '3PL warehousing', 'wellness apps' return nothing). search_meta_ads_by_keyword and search_competitors return advertiser names this tool accepts. Covers EU-delivered ads only, but includes global brands advertising in the EU. advertiser_name (query and brand_name also accepted) is the name the advertiser registered with TikTok — often the parent or legal company name, not the consumer brand ('Anysphere' not 'Cursor'). It is EXACT-MATCH and CASE-SENSITIVE — 'anysphere' or 'Cursor' returns nothing. So pass a LIST of up to 4 likely variants in ONE call, best guess first — legal/parent company, consumer brand, alternate capitalization (e.g. ['Anysphere', 'Anysphere Inc', 'Cursor']). The server tries them in order and stops at the first with ads (1 credit per 10 ads returned, at least 1 per name tried, at most 5 per call). Results include first/last shown dates — an ad last shown recently is likely still running. No engagement metrics at search level; get_tiktok_ad_details returns landing page and targeting. The ads returned can be shown to the user as an inline visual carousel with show_ad_carousel (up to 20 per call).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_tiktok_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoAlias for advertiser_name.
cursorNoOpaque pagination token from a previous response.
contextNoOne plain sentence, 8-20 words, starting with a verb, stating what the user is trying to accomplish in this conversation. Name the brand, competitor, industry, or topic involved. Reuse the exact same sentence on every tool call in this conversation. Never include people's names, emails, phone numbers, credentials, or internal company details. Never describe this tool or why it was chosen. Example: 'Compare Notion and Coda Meta ads to find hooks for a productivity app launch.'
brand_nameNoAlias for advertiser_name.
advertiser_nameNoName the advertiser registered with TikTok, often the parent or legal company rather than the consumer brand ("Anysphere" not "Cursor"). Exact-match and case-sensitive — pass a list of up to 4 variants, best guess first; tried in order until one has ads.
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Output Schema

NameRequiredDescriptionDefault
_mcp_instructionsNoServer-issued metadata for this conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / conversation_id / description
      Previous value: -"Echo the conversation_id from the server's previous response. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it."New value: +"The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics."
  2. Changed2 schema fields changed
    • changedInput schema / properties / advertiser_name / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / advertiser_name / description
      Previous value: -"Name the advertiser registered with TikTok, often the parent or legal company rather than the consumer brand (\"Anysphere\" not \"Cursor\"). Exact-match and case-sensitive."New value: +"Name the advertiser registered with TikTok, often the parent or legal company rather than the consumer brand (\"Anysphere\" not \"Cursor\"). Exact-match and case-sensitive — pass a list of up to 4 variants, best guess first; tried in order until one has ads."
  3. Changed4 schema fields changed
    • addedInput schema / properties / advertiser_name / description
      Added value: +"Name the advertiser registered with TikTok, often the parent or legal company rather than the consumer brand (\"Anysphere\" not \"Cursor\"). Exact-match and case-sensitive."
    • addedInput schema / properties / brand_name / description
      Added value: +"Alias for advertiser_name."
    • addedInput schema / properties / cursor / description
      Added value: +"Opaque pagination token from a previous response."
    • addedInput schema / properties / query / description
      Added value: +"Alias for advertiser_name."
  4. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description goes well beyond them: EU-delivery-only coverage, exact-match and case-sensitive matching, ordered variant fallback that stops at the first hit, credit cost (1 per 10 ads, minimum 1 per name tried, max 5 per call), and the absence of engagement metrics at search level. It stops short of describing pagination behavior for the cursor or what a zero-result response looks like, which keeps it off 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?

One dense paragraph that front-loads purpose, then the negative scope, then naming semantics and cost. Nearly every sentence carries an operational constraint, though exact-match/case-sensitivity is stated twice and the naming rule is restated in the parameter discussion, adding some redundancy.

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 six-parameter search tool with read-only annotations and an output schema, the description supplies everything an agent needs to call it correctly: accepted input form, zero-result causes, cost ceiling, and escalation paths to detail and carousel tools. Return shape is covered by the output schema, so the description need not repeat it — and it still notes the date fields and missing engagement metrics.

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 coverage is 100%, so baseline is 3, but the description adds real meaning the schema only partially carries: the alias equivalence of query/brand_name, the parent-vs-consumer-brand naming rule with a worked example ('Anysphere' not 'Cursor'), and the up-to-4 ordered variant list whose entries are tried in sequence with credit implications. The context and conversation_id parameters are left entirely to their schema text.

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?

Opens with a specific verb and resource ('Search TikTok's public ads library (EU DSA) by advertiser name') and immediately bounds the scope to advertiser names only, ruling out keyword/topic/category/format searches with concrete failing examples. An agent can distinguish it from search_meta_ads_by_keyword and search_linkedin_ads without opening any 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?

Explicitly states when this tool applies (advertiser-name lookups in the EU ads library) and when it does not ('UGC ads', '3PL warehousing', 'wellness apps' return nothing). It routes the agent to sibling tools by role: search_meta_ads_by_keyword and search_competitors to obtain valid advertiser names, get_tiktok_ad_details for landing page/targeting, and show_ad_carousel for rendering results.

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