Skip to main content
Glama

HandleHaul

Search TikTok

tiktok_search
Read-onlyIdempotent

Search TikTok by keyword. type: top (default: TikTok's blended video results), users (accounts), videos, photo, live or music (sounds). region is an optional 2-letter country code (default US). Paginate by passing pagination.next_cursor back as cursor while pagination.has_more is true. Costs 1 credit per page (nothing from cache, on errors or with a kd_test_ sandbox key).

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
qYesWhat to search for.
rawNotrue returns TikTok's raw JSON in data instead of our fields (same price). Default false.
typeNoResult type (default top).
freshNotrue skips the cache and fetches live data (full price). Default false.
cursorNopagination.next_cursor from the previous page. Leave out for the first page.
regionNoOptional 2-letter country code (default US).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld, idempotent, non-destructive, so safety is covered. The description adds genuinely non-obvious behavior beyond them: 1 credit per page, no charge on cache hits, errors, or kd_test_ sandbox keys, plus the cache-vs-live distinction tied to fresh. Rate limits and result-per-page counts are not disclosed.

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 dense sentences, front-loaded with the core action, then parameters, then pagination, then cost. No filler or repetition of the title.

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?

With six parameters, no output schema, and full schema coverage, the description covers action, type semantics, region, pagination, and pricing. It omits any hint of response shape or page size, which would help an agent plan loops, but nothing required for a correct call is missing.

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 the baseline is 3, but the description adds meaning: it interprets type values (blended video results, sounds), restates region default, and explains the cursor handoff. It also clarifies the pricing consequence of the fresh and raw flags, which the schema does not.

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 TikTok by keyword") and enumerates what the search can target. It does not distinguish itself from close siblings such as search_users, search_hashtags, or search_audio, even though the 'users' and 'music' type values overlap those tools' domains.

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?

Gives clear operational context: the six type values are spelled out with the default, region default is noted, and the pagination loop (pass next_cursor as cursor while has_more is true) is explicit. It stops short of naming when a dedicated sibling search tool is preferable to the equivalent type enum.

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.