Skip to main content
Glama

tikdataapi: TikTok data

Videos, batch

get_videos
Read-onlyIdempotent

Up to 100 TikTok videos by id in one call. Prefer this over repeated get_video calls. 1 credit per video found; deleted, private or removed videos are listed in errors with a reason and cost 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": {
      "ids": "<ids>"
    },
    "name": "get_videos"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes1 to 100 numeric video ids, as strings
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.

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?

The annotations already cover read-only, idempotent, open-world, and non-destructive behavior. The description adds useful behavioral context beyond annotations: billing is 1 credit per video found, and deleted, private, or removed videos appear in errors with a reason and cost nothing. It does not discuss auth or rate limits, so it falls short of a 5.

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?

Two tight sentences with zero waste. The batch limit is front-loaded, followed by routing advice and then cost/error behavior, so the most important selection information comes first.

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?

For a two-parameter batch read tool with annotations covering safety, the description is complete: it covers purpose, the preferred alternative, billing cost, and error behavior for unavailable videos. No output schema exists, but the error-listing behavior is described enough for correct invocation.

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%, with both ids and fresh fully documented in the input schema. The description only implies that ids are numeric strings and that up to 100 are accepted, which largely repeats the schema's pattern and maxItems constraints. Baseline 3 is appropriate when the schema does the heavy lifting.

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 states the specific resource (TikTok videos), the scope (up to 100 by id in one call), and explicitly distinguishes this from the sibling get_video by recommending batch use over repeated calls. An agent can identify the tool's role 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?

It explicitly says to prefer this over repeated get_video calls, naming the alternative and the condition that selects this tool. The batch limit and sibling reference make the trade-off clear, even without a separate when-not sentence.

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.