Skip to main content
Glama

SocialDataX TikTok MCP

tiktok_search_posts

Read-only

搜索 TikTok 作品,可返回视频和图片作品。用户需要按搜索词查找作品时使用; 已有作品链接时直接使用详情或评论工具;已有 post_id 且需要评论时直接使用按 ID 评论工具,均无需先调用搜索; 从搜索结果继续时,可复用其中的 share_url 或 post_id; 支持 content_type 筛选、过滤用户卡片等非作品结果,并支持 page_token 翻页。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordYes搜索词,可传关键词或短语,例如品牌名、话题、人物名或产品名;不要传作品链接、用户主页链接、post_id、tiktok_id 或 page_token。
page_tokenNo分页令牌。首页传空字符串;next_page_token 为空字符串表示没有更多结果。继续翻页时必须将上一页返回的完整 next_page_token 原样作为 page_token 传回;它是不透明令牌,不能修改、截断、脱敏、格式化、重组,也不能跨关键词、筛选条件或不同请求链路复用。
content_typeNo作品类型筛选:all 不限作品类型,可返回视频和图片作品;video 只返回视频作品;image 只返回图片作品。继续翻页时必须保持同一 content_type。all

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes当前页 TikTok 作品搜索结果,已过滤用户卡片等非作品结果;当前页可能为空,是否继续翻页以 next_page_token 是否为空为准
pointsYes本次成功调用的积分消耗与调用完成时的账户积分余额。
next_page_tokenYes分页令牌。首页传空字符串;next_page_token 为空字符串表示没有更多结果。继续翻页时必须将上一页返回的完整 next_page_token 原样作为 page_token 传回;它是不透明令牌,不能修改、截断、脱敏、格式化、重组,也不能跨关键词、筛选条件或不同请求链路复用。

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the readOnlyHint=true annotation, the description discloses meaningful behavior: it returns video and image posts, filters out non-post results like user cards, and supports page_token pagination. It also warns that page tokens are opaque and must be passed back unchanged, which goes beyond the schema. Minor operational details like rate limits are absent, but the key behavioral profile is well covered.

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?

The description is compact and front-loaded with purpose, then moves to routing rules and capabilities. The long second sentence covers several distinct points without redundancy, though it could be split for readability. Every clause serves a purpose; no filler is present.

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 an output schema present, return-value details are already handled. The description covers when to use, when not to use, pagination rules, content_type filtering, and post-search reuse of share_url/post_id. It is fully sufficient for an agent to select and invoke this tool correctly in context.

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%, so the schema fully documents keyword, page_token, and content_type semantics. The description adds some contextual reinforcement (e.g., content_type filtering and page_token pagination), but most parameter meaning is already present in the schema. Baseline 3 is appropriate because the description does not significantly extend 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?

The description opens with a specific verb-resource pair, '搜索 TikTok 作品' (search TikTok posts), and states that it returns both video and image posts. It also differentiates itself from sibling tools by explicitly naming detail/comment tools for when a link or post_id is already available.

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?

Usage is explicitly conditioned: use when the user needs to find posts by a search term. It gives clear exclusions — if a post link exists, use detail or comment tools; if a post_id exists and comments are needed, use the comment-by-ID tool — and notes that no search is needed in those cases. This leaves no ambiguity about selection.

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.

TDQS

A4/5.0
Disambiguation4/5

Most tools have clearly distinct purposes, though several are pairs differentiated only by input type (URL vs ID) such as get_post_comments_by_url/by_post_id and get_user_info_by_profile_url/by_tiktok_id. These pairs are described clearly so an agent can tell them apart, but the similarity could cause occasional misselection.

Naming Consistency4/5

The naming generally follows a consistent pattern of tiktok_ + verb + resource + explicit by_* suffix, with clear verbs like get, search, and submit. However, the socialdatax_get_points_balance tool breaks the 'tiktok_' prefix convention, and the speech text tools mix 'job' and 'by_' in less uniform ways, creating minor inconsistencies.

Tool Count5/5

With 13 tools, the server covers a comprehensive set of TikTok data operations (user info, posts, comments, replies, search, speech transcription, and account balance) without becoming unwieldy. Each tool serves a distinct need, and the count is well within the ideal range for a focused API integration.

Completeness4/5

The tool surface covers major workflows like fetching user info, posts, comments, replies, searching, and handling speech-to-text jobs. The primary gap is the lack of a get_post_detail_by_post_id tool when post_id is available, which would complement the existing comment and search tools and could be needed for direct post lookups.

Resources