Skip to main content
Glama

Groundsocial

Search TikTok videos by keyword

tiktok_search_videos
Read-onlyIdempotent

TikTok videos for a keyword, 16 a page.

Videos for a keyword, from TikTok’s public keyword pages (tiktok.com/discover/, what a logged-out visitor and search engines see), 16 a page in TikTok’s relevance order, with full video objects. Pass cursor for the next page. TikTok’s in-app search filters (date posted, sort) need a logged-in session and are not offered.

Cost: 1 credit per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.

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

Input Schema

NameRequiredDescriptionDefault
qYesKeyword or phrase.
cursorNoThe previous page’s `cursor`, for the next page. Omit for the first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint), and the description adds genuinely new behavioral context: public/logged-out data only, 16 results per page in TikTok's relevance order, cursor-based pagination, and a credit cost that is refunded automatically on failure. It also states the response carries cost_credits and credits_remaining, none of which the annotations convey.

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 and scannable, with cost and refund terms clearly separated at the end. However, the opening line ('TikTok videos for a keyword, 16 a page') is near-verbatim repeated by the second sentence, which is wasted space.

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 carries the burden of describing returns and does so: full video objects, cost_credits and credits_remaining fields, and 16-per-page pagination. Combined with the data-source caveat and cost model, an agent has everything needed to call this correctly.

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 documented in the input schema, and the description largely restates that cursor is for paging. It adds modest meaning via the page size (16) and relevance ordering, but nothing about keyword matching behavior or limits beyond the schema's 200-character cap.

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?

The description names a specific verb and resource (TikTok videos for a keyword) and pins down the data source: TikTok's public keyword pages at tiktok.com/discover/<keyword>, i.e. what a logged-out visitor and search engines see. That source detail plus the explicit exclusion of in-app search filters separates it cleanly from siblings such as tiktok_search_hashtag or tiktok_search_suggestions.

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?

It gives clear operational guidance: pass `cursor` for the next page, omit it for the first, and note that date-posted/sort filters are unavailable because they require a logged-in session. It does not name a sibling to use instead when the agent wants hashtag or user-targeted search, so routing to alternatives is left to inference.

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.