Skip to main content
Glama

tikdataapi: TikTok data

Video search

search_videos
Read-onlyIdempotent

Videos that the general search of TikTok (the "Top" tab) finds for a query, in the order of TikTok. Videos only: for accounts use search_users, for sounds search_music, for live rooms search_live, for hashtags search_hashtags. No filters or sorting. 1 credit per video; a query with no result gives an empty list and costs nothing.

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": {
      "query": "<query>"
    },
    "name": "search_videos"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoResults on this page, 1 to 50. Default 12. A page can come back shorter; next_cursor then continues with no gap.
freshNoRead TikTok again and skip the cache. Costs 2x credits for an item that has a cached copy, the normal price for one that has none.
queryYesWords to search for, as typed in the search box of TikTok: 1 to 100 characters after runs of spaces are made one. Example: street food
cursorNonext_cursor from the previous page

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive) and open-world access, so the description's added value is the pricing model: 1 credit per video and zero cost on an empty result. That cost/empty-result behavior is real operational context not derivable from the annotations, though it says nothing about rate limits or result-shape beyond ordering.

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?

Dense but front-loaded: the resource definition comes first, then the sibling disambiguation list, then constraints and cost. Every clause carries information; nothing is repeated from the title or schema.

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 read-only search with no output schema, the description covers what is returned (videos, in TikTok order), empty-result behavior, and cost, while pagination lives in the schema. It stops short of describing the shape of a returned video object, which an agent inspecting results may still need to infer.

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; the description earns a bump by declaring that query text is the only lever ('No filters or sorting'), which tells the agent how to compose a request rather than searching for filter params. It does not, however, discuss count, cursor or fresh semantics itself, leaving those entirely to the schema.

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 resource and the exact search surface it reads ('Videos that the general search of TikTok (the "Top" tab) finds for a query, in the order of TikTok'), plus the ordering guarantee. It then explicitly names the sibling tools for accounts, sounds, live rooms and hashtags, so an agent can route without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit routing rules: use search_users for accounts, search_music for sounds, search_live for live rooms, search_hashtags for hashtags. It also states a negative constraint ('No filters or sorting'), which prevents the agent from hunting for filter parameters that do not exist.

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.