Skip to main content
Glama

tikdataapi: TikTok data

Comments

get_comments
Read-onlyIdempotent

Comments of one TikTok video, in the order of TikTok: pinned first, then the most relevant. Only the comments of the video; read the replies to one comment with get_comment_replies. 1 credit per comment; a video with comments turned off 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": {
      "video_id": "<video_id>"
    },
    "name": "get_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoResults on this page, 1 to 50. Default 20. 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.
cursorNonext_cursor from the previous page
video_idYesNumeric video id, as a string: the number at the end of the address of the video

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/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, open-world), but the description adds value with the ordering contract, a per-comment credit cost, and the zero-cost empty result when comments are off. It does not restate pagination behavior, which the schema covers, so this is strong but not exhaustive.

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?

Three short sentences pack nothing extra. The result shape and ordering come first, the sibling routing second, and the cost/edge case last, so the most decision-relevant information is front-loaded.

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?

This is a read-only list tool with no output schema, and the description still conveys the ordering and shape of the return (a list of comments), the empty-result behavior, and the cost model. Combined with a fully documented input schema, an agent has everything it needs to call the tool 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 description coverage is 100%, so count, cursor, fresh, and video_id are already fully documented. The description's credit note indirectly informs how the agent sizes count and when to use fresh, but it does not add format or syntax detail beyond the schema; the baseline of 3 applies.

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 resource and scope: the comments of one TikTok video. It also states the ordering semantics (pinned first, then most relevant) and explicitly separates the tool from the sibling get_comment_replies, so an agent can choose 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 Guidelines5/5

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

The description says exactly when to use this tool and when not to: it returns only top-level comments, and replies to a comment belong to get_comment_replies. It also covers the degenerate case where comments are disabled: the result is an empty list and costs nothing.

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.