Skip to main content
Glama

tikdataapi: TikTok data

Sound search

search_music
Read-onlyIdempotent

Sounds (music) that the sound search of TikTok (the "Sounds" tab) finds for a query, in the order of TikTok. Each entry is a short sound: id, title, author, album, duration, cover, whether it is an original sound, and the number of videos that use it when TikTok gives it. For the full sound use get_music, for its videos get_music_videos. 1 credit per sound; a query with no result 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": {
      "query": "<query>"
    },
    "name": "search_music"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoResults on this page, 1 to 50. Default 12. 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.
queryYesWords to search for, as typed in the search box of TikTok: 1 to 100 characters after runs of spaces are made one. Example: lofi
cursorNonext_cursor from the previous page

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare this a read-only, idempotent, non-destructive, open-world call, and the description adds real behavior on top: result ordering follows TikTok, each entry's fields are enumerated, and the credit model including the free empty-result case is disclosed. That is meaningful context an agent could not derive from the annotations alone.

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 sentences, front-loaded with what is returned and followed by sibling routing and cost. The field enumeration is not padding because there is no output schema, and no sentence restates the tool name or annotations.

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 supplies the return shape and ordering, and it covers the pricing model that governs repeated or empty calls. Pagination semantics are handled in the schema, so nothing an agent needs to invoke this correctly 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 count, fresh, query, and cursor are already documented, setting the baseline at 3. The description still adds value by tying credit cost to result presence and by explaining that fresh re-reads TikTok at double cost for cached items, which clarifies the tradeoff behind that parameter.

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 a specific verb and resource: sounds found by TikTok's Sounds-tab search for a query, returned in TikTok's order. It explicitly distinguishes itself from get_music (full sound) and get_music_videos (the sound's videos), so an agent can separate it from siblings without opening a 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?

It routes the agent to the right alternatives with conditions attached: get_music for the full sound and get_music_videos for its videos. It also gives a cost rule (1 credit per sound, empty result is free), but it never states a when-not case or contrasts itself with search_videos/search_hashtags.

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.