Skip to main content
Glama
Captapi MCP Server

Captapi MCP Server

Official

TikTok Top Search

tiktok_top_search

Search TikTok for videos and photo carousels by keywords, returning paginated results with content types and image links. Optionally use a 24-hour cache to avoid charges on repeat queries.

Instructions

TikTok Top/General search — videos and photo carousels when TikTok includes them, with contentType + images[]. Costs 2 credits. 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_top_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesSearch query or keywords (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). Flat 2 credits per call.
cursorNoPagination cursor. Leave 0 for the first page; then pass nextCursor from the previous response. TikTok may return duplicates across pages.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.7/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 burden and does well: it discloses the exact price (2 credits), a flat per-call cost regardless of limit, a no-charge policy for empty results and failures, and the cache freshness tradeoff. It omits anything about rate limits, authentication, or result ordering, which keeps it short of 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?

Three tight sentences, front-loaded with what the tool is, then cost, then cache. The clause "with contentType + images[]" is slightly cryptic shorthand for response fields, but nothing is padded or redundant.

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?

For a four-parameter search with no output schema, the description covers result shape at a high level, cost, billing exceptions, and caching, which is what an agent needs to call it safely. Pagination and duplicate-across-pages behavior live only in the schema, which is acceptable given full schema coverage.

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 coverage is 100%, so all four parameters are already documented, including cache, limit, and cursor semantics. The description restates the cache default and the 2-credit flat cost, which reinforces but does not meaningfully extend the schema, so the baseline 3 applies.

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?

The description names a specific verb and resource ("TikTok Top/General search") and states what comes back ("videos and photo carousels ... with contentType + images[]"). It implicitly distinguishes itself from hashtag/user/ad-library searches by calling itself the general search, but it never names a sibling, so differentiation is left to inference.

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

Usage Guidelines3/5

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

It gives one concrete usage rule: pass cache=true for a free 24h cache hit, default is always fresh. It offers no guidance on when to choose this tool over tiktok_search_by_hashtag, tiktok_search_users, or tiktok_search_suggestions, nor any exclusions or prerequisites.

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