Skip to main content
Glama

TikTok video search

tiktok_search
Read-only

TikTok Video Search: search public TikTok videos by keyword or hashtag. Per video the caption, creator handle, name, verification and followers, plays, likes, comments, shares, cover image link, time and URL in the shared social schema; next_cursor gives the next page. Trend and hashtag research. Bad input is free; not found or no match is not charged. Price: $0.02 per successful call, paid over x402 (USDC on Base); pass the payment in _meta["x402/payment"].

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_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesSearch text (1-200 characters).
cursorNonext_cursor of the previous page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, openWorld, non-idempotent), and the description adds genuinely new behavioral facts: the exact fields returned per video, cursor-based pagination via next_cursor, and the commercial model ($0.02 per successful call, USDC on Base over x402, passed in _meta["x402/payment"]). Payment and billing semantics are things no annotation or schema carries, and they materially change how an agent should call this.

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 purpose, then return shape, then billing, which is a sensible order for an agent. The sentences are dense and slightly telegraphic ("Per video the caption, creator handle..."), but no sentence is filler.

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 compensates by enumerating the returned fields and the pagination cursor. Combined with the payment mechanics, an agent has everything needed to call it, page it, and anticipate the charge.

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 q and cursor are already fully documented with lengths and meaning. The description adds only a small amount of meaning by tying next_cursor to "the next page," which is already in the schema description. Baseline 3 applies when the schema does the heavy lifting.

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 opens with a specific verb and resource ("search public TikTok videos by keyword or hashtag"), which cleanly separates it from the profile/relationship siblings like tiktok_followers and tiktok_videos. It never explicitly names a sibling to defer to, so the differentiation is implied by the verb rather than stated.

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

Usage Guidelines4/5

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

"Trend and hashtag research" gives an explicit intended use case, and the pricing/charging note ("Bad input is free; not found or no match is not charged") tells the agent when the call is cost-free. There is no statement of when not to use it or which sibling to prefer for non-search TikTok data.

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.