Skip to main content
Glama

TikTok

tiktok
Read-only

Read public TikTok data with Desearch. Set action and that action's arguments. search (query; optional count, sort, cursor): videos that match a keyword. post (id): one video by its ID. profile (username): one profile. profile_posts (username; optional count, cursor): a user's videos. comments (video_id; optional count, cursor): a video's comments. hashtag (tag; optional count, cursor): videos with a hashtag. trending (optional region, count): trending videos for a region, one page. A video id from search can be passed to post or comments. post and profile return the item itself. List actions return { results, next_cursor, next }. For the next page, call again with the same action and target and cursor set to next_cursor, unchanged; next_cursor is null on the last page. A cursor lasts 24 hours.

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": {
      "action": "<action>"
    },
    "name": "tiktok"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNopost: the TikTok video ID, example: '7620891413932166433'.
tagNohashtag: the hashtag without #, example: 'ai'. A leading # is removed.
sortNosearch: sort option, when TikTok supports one.
countNoMost items to return (1-100). API default: 10 for search, 20 for the other list actions. One page may hold fewer.
queryNosearch: keyword or phrase, example: 'bittensor'.
actionYesWhat to read: 'search', 'post', 'profile', 'profile_posts', 'comments', 'hashtag', or 'trending'.
cursorNonext_cursor from the previous page of the same action and target, sent back unchanged. Omit it for the first page.
regionNotrending: two-letter region code, example: 'US' (API default).
usernameNoprofile, profile_posts: TikTok username, example: 'tiktok'. A leading @ is removed.
video_idNocomments: the TikTok video ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, non-destructive, open-world), and the description adds genuine context on top: the return envelope for list actions ({ results, next_cursor, next }) versus single-item returns for post and profile, the fact that a page may hold fewer items than count, and a 24-hour cursor lifetime. That last detail is a real operational constraint an agent could not infer from annotations or schema.

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?

Front-loaded with purpose, then per-action contracts, then pagination semantics and the cursor TTL — a logical order with no filler. Density is high but every clause carries operational information, and the tool's seven-action surface justifies the length.

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?

Given 10 parameters, 7 actions, no output schema, and no nested objects, this is the amount of description needed and it delivers. Return shapes are described even though no output schema exists, and pagination plus cursor expiry are fully covered. Nothing an agent needs to invoke this correctly appears to be 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 already 100%, so the baseline is 3; the description earns above that by binding each parameter to its action ('post (id)', 'comments (video_id; optional count, cursor)'), which the flat schema cannot express on its own. It also clarifies that cursor must be sent back 'unchanged' from the same action and target. It doesn't add formatting or validation detail beyond the schema, so not a 5.

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?

Opens with a specific verb+resource ('Read public TikTok data') and immediately explains the tool's routing model: one tool, an action discriminator, and per-action arguments. Each of the seven actions is then enumerated with its required and optional inputs, so an agent knows exactly what the tool covers without opening the schema. The platform scope also cleanly separates it from x-search, instagram and facebook siblings.

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 routing guidance among actions (use search for keyword videos, post for one video by ID, profile_posts for a user's videos, etc.) and an explicit chaining rule: 'A video id from search can be passed to post or comments.' Pagination usage is spelled out precisely. It stops short of naming when to prefer a sibling tool or platform, and there are no explicit exclusions, so it lands at 4 rather than 5.

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.