Skip to main content
Glama

Search TikTok Videos

search_tiktok
Read-only

Search TikTok videos by keyword. Returns title, URL, engagement metrics (plays, likes, comments, shares, downloads), author metadata, music and publish date. Filter by publish time and region; sort by relevance, newest or most liked. Use tiktok_video_details for one video's full details. Billed $0.006 per page.

Input Schema

NameRequiredDescriptionDefault
pagesNoNumber of pages to fetch, 1-10 (default: 1)
queryYesSearch keyword (max 500 characters)
regionNoISO 3166-1 alpha-2 country code (e.g. us, gb, jp; use gb for the UK, not uk).
sort_byNoSort order: "relevance", "most_recent", or "most_liked"relevance
publish_timeNoTime filter: 0=ALL, 1=24h, 7=week, 30=month, 90=3months, 180=6months
get_sentimentNoAdd AI sentiment analysis (Plutchik emotions, dominant_emotion, intensity, and positive/negative/neutral polarity) to each result. Adds a small surcharge per page, or per request on single-request endpoints.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / region / description
      Previous value: -"2-letter region code, e.g. \"us\", \"gb\", \"jp\""New value: +"ISO 3166-1 alpha-2 country code (e.g. us, gb, jp; use gb for the UK, not uk)."
  2. Changed1 schema field changed
    • changedInput schema / properties / get_sentiment / description
      Previous value: -"Add AI sentiment analysis (Plutchik emotions, dominant_emotion, intensity, and positive/negative/neutral polarity) to each result. Adds a small per-page surcharge."New value: +"Add AI sentiment analysis (Plutchik emotions, dominant_emotion, intensity, and positive/negative/neutral polarity) to each result. Adds a small surcharge per page, or per request on single-request endpoints."
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only and open-world, so the description's job is to add operational context, which it does: it discloses the result payload and the per-page billing rate ($0.006). It stops short of noting pagination behavior for the pages parameter or latency/rate limits, but the safety and cost profile is covered.

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

Conciseness5/5

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

Four tight sentences with no filler: purpose and return payload first, then filters/sorts, then the sibling routing, then cost. Every sentence carries an operational fact.

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 for a six-parameter read-only search tool it covers purpose, capabilities, alternative tool, and price. Nothing an agent needs in order to call it correctly is missing.

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% and the enums spell out the meaning of publish_time and sort_by, so the schema carries nearly all parameter meaning. The description restates the filter/sort capabilities and adds pricing tied to the pages parameter, but contributes little interpretation beyond the schema, matching the baseline for fully documented schemas.

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 videos by keyword') and immediately enumerates what comes back: title, URL, engagement metrics, author metadata, music, publish date. An agent can distinguish it from search_tiktok_hashtags and search_tiktok_users without opening a schema.

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?

Explicitly routes the single-video case to tiktok_video_details and names the available filters/sorts for this tool. It does not, however, contrast itself with the other TikTok search siblings (hashtags, users) or with tiktok_hashtag_videos/tiktok_user_videos, leaving some selection ambiguity.

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