Skip to main content
Glama
Captapi MCP Server

Captapi MCP Server

Official

TikTok Ad Library Search

tiktok_ad_library_search

Search TikTok's Commercial Content Library by keyword or advertiser to find ads in supported EU/EEA, UK, and Swiss markets.

Instructions

Search TikTok Commercial Content Library — relevance-filtered, uniform null schema (2 credits native, 5 via fallback). Costs 2 credits (5 via fallback path). Empty results and failures are never charged. Pass cache=true for a free 24h cache hit (default always fresh).

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": {
      "q": "<q>"
    },
    "name": "tiktok_ad_library_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesKeyword or advertiser to search TikTok Commercial Content Library (min 2 characters).
cacheNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.
limitNoMax items to return (default 20, max 200). Does not change the price: 2 credits native, 5 via the fallback path, 0 when empty.
matchNoKeyword token mode: "any" (default, OR whole-word) or "all" (AND). hair ≠ wheelchair. Literal hits lead; already-fetched SERP ads fill behind them up to limit (matchedFrom [] = ranked fill). Empty results are free.
countryNoTwo-letter ISO country code (e.g. GB, DE, FR). Default GB. TikTok's Commercial Content Library only covers the EU/EEA, the UK and Switzerland (32 countries) — other codes (US, SA, …) return 400 UNSUPPORTED_REGION with the supported list; TikTok has no ad-library data for them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does so well on the commercial dimension: 2 credits native, 5 on the fallback path, and empty results or failures are never charged. It also discloses the caching default (always fresh) and the fallback path's existence, though it says nothing about rate limits, auth, or result shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The pricing sentence is stated twice ('2 credits native, 5 via fallback' and then 'Costs 2 credits (5 via fallback path)'), which is pure redundancy in a four-sentence description. The core behavior is front-loaded, but the jargon phrase 'uniform null schema' is unexplained and reads as filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter search tool with no annotations and no output schema, the description covers cost and caching thoroughly but leaves the agent guessing about return shape ('uniform null schema' is opaque) and result ordering, and it omits the EU/UK/CH region restriction that only appears in the schema's country field.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all five parameters are already documented in the schema, including cache, limit, match, and country semantics. The description only echoes the cache behavior and pricing that the schema already states, adding no new parameter meaning beyond it — baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: search the TikTok Commercial Content Library, keyword/advertiser driven and relevance-filtered. That distinguishes it in spirit from tiktok_ad_library_ad_details and tiktok_ad_library_top_ads, though it never names those siblings to make the routing explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only usage guidance offered is about the cache flag ('pass cache=true for a free 24h cache hit'). There is nothing telling an agent when to choose this over tiktok_ad_library_top_ads or the ad_details tool, and no stated prerequisites beyond what the schema's country description covers.

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

Deploy Server

Other Tools