Skip to main content
Glama

tiktok_trending_music

Read-only

List up to 100 trending tracks from TikTok's Commercial Music Library (not paginated; TikTok's field names). To attach one when publishing, pass a song_clip_id — from trending_song_clip (the short popular part) or full_duration_song_clip (whole track) — as platforms.tiktok.audio_id in post_publish. Durations are in seconds. Only for TikTok profiles connected on or after 2026-09-30 (Business API); older connections get 422 until reconnected.

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": {
      "profile_id": "<profile_id>"
    },
    "name": "tiktok_trending_music"
  }
}

Input Schema

NameRequiredDescriptionDefault
genreNoGenre filter, e.g. POP, ROCK, HIP_HOP/RAP, ELECTRONIC, JAZZ. Omit to rank all genres together
date_rangeNoRanking window (default 7DAY)
profile_idYesProfile hashid of a TikTok profile
country_codeNoISO 3166-1 alpha-2 country whose chart to return (default US)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/non-destructive/closed-world, and the description adds real context beyond them: a 100-item cap with no pagination, TikTok's own field naming, second-based durations, and a concrete 422 failure mode for legacy connections. That last point is the kind of error behavior an agent could not infer from the schema.

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?

Purpose and cap are front-loaded, then the integration path, then the connection caveat — a sensible order with no filler sentences. It is parenthesis-dense and the "Durations are in seconds" remark sits slightly awkwardly, but every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 must carry return-shape burden, and it partially does by naming the two clip ID fields, noting TikTok field names and second-based durations. The broader record shape (rank, title, artist, etc.) is still undocumented, though the key identifier needed for follow-up calls is covered.

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%, so genre, date_range, country_code and profile_id are already fully documented, including enum values and defaults. The description adds no parameter-level detail (e.g. genre token format or country fallback behavior) beyond restating that durations are in seconds, so the baseline 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?

States a specific verb and resource ("List up to 100 trending tracks from TikTok's Commercial Music Library") plus the hard scope limits (not paginated, TikTok field names). An agent immediately knows this is a bounded read of chart data, not a search or lookup.

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?

Explicitly routes downstream usage: take a song_clip_id from trending_song_clip or full_duration_song_clip and pass it as platforms.tiktok.audio_id in post_publish. It also states a hard prerequisite — only Business API connections on or after 2026-09-30, older ones get 422 until reconnect — which prevents mis-invocation.

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.