Skip to main content
Glama

TokConnect: TikTok Research

pick_comment_winners

Comment giveaway draw (one video_detail request plus one request per 50 comments) — fetches up to max_comments top-level comments for a TikTok video, applies the stated filters and draws winners uniformly at random. Without a seed the draw uses crypto/rand; with a seed it uses a ChaCha8 generator keyed by sha256(seed) over comments sorted by id, so the same seed and the same fetched comments reproduce the same winners. Returns winners, eligible, fetched, totalReported, coverage and the rules applied. Fairness limits: only fetched comments are eligible, TikTok returns comments in its own order, replies are not included, and deleted or hidden comments cannot be seen.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNoOptional seed for a reproducible draw; publish it so anyone can re-run the draw.
videoYesFull https://www.tiktok.com/@creator/video/<id> URL or the numeric video id.
winnersNoHow many winners to draw, 1-20. Defaults to 1.
max_commentsNoComments to fetch, 50-500 in pages of 50. Defaults to 300.
must_includeNoOptional text a comment must contain (case-insensitive), e.g. a hashtag or keyword.
unique_usersNoCount each commenter once (their earliest fetched comment). Defaults to true.
exclude_creatorNoExclude comments by the video's creator. Defaults to true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations present, the description carries the full burden and does so thoroughly: it discloses the request cost model (one video_detail request plus one per 50 comments), the RNG behavior (crypto/rand unseeded vs ChaCha8 keyed by sha256(seed) over id-sorted comments), reproducibility guarantees, and concrete fairness limits (only fetched comments eligible, TikTok's own ordering, replies excluded, deleted/hidden comments invisible). This is well beyond what structured fields provide.

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 paragraph is front-loaded with the purpose and cost model, and every sentence carries information (RNG semantics, return fields, fairness limits). It is dense and somewhat run-on with heavy parenthetical asides, which costs a point against perfect conciseness, but there is no filler.

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 annotations and no output schema, the description compensates fully: it enumerates the return fields (winners, eligible, fetched, totalReported, coverage, rules applied) and documents the fairness caveats an agent or caller needs to interpret results honestly. Nothing material for correct invocation 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 genuine meaning beyond the schema: it explains that seed enables reproducibility and should be published, and ties max_comments to a request-cost model ('one request per 50 comments'). It does not, however, elaborate on filters like must_include or unique_users beyond what the schema already says.

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 verb+resource+scope: 'Comment giveaway draw ... fetches up to max_comments top-level comments for a TikTok video, applies the stated filters and draws winners uniformly at random.' This is unmistakably distinct from siblings like video_comments or comment_replies, which merely list comments, and the agent can differentiate without opening the schema.

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?

The opening 'Comment giveaway draw' gives clear context for when this tool applies, and the fairness-limits sentence implies the boundary conditions (only fetched comments eligible, no replies). However, it never names an alternative such as video_comments for plain comment retrieval, nor states an explicit when-not-to-use condition, so it falls short of the 5-level routing guidance.

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.

Resources