Skip to main content
Glama

HandleHaul

Posts using a TikTok sound

tiktok_get_music_posts
Read-onlyIdempotent

Posts that use a given TikTok sound, up to 30 per page. Paginate by passing pagination.next_cursor back as cursor while pagination.has_more is true. Costs 1 credit per page (nothing from cache, on errors or with a kd_test_ sandbox key).

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": {
      "music": "<music>"
    },
    "name": "tiktok_get_music_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawNotrue returns TikTok's raw JSON in data instead of our fields (same price). Default false.
freshNotrue skips the cache and fetches live data (full price). Default false.
musicYesNumeric sound id (music.id on a post) or a tiktok.com/music URL.
cursorNopagination.next_cursor from the previous page. Leave out for the first page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, open-world behavior, and the description adds material context beyond them: a 30-post page cap, the exact pagination loop, a 1-credit-per-page cost model, and the fact that cache hits, errors, and kd_test_ sandbox keys are not billed. Those cost and pagination traits are not derivable from the annotations or schema.

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, led by what the tool returns, then pagination, then cost. Every sentence carries distinct operational information with no filler.

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?

For a paginated list tool with no output schema, the description discloses the page cap and the pagination response fields it depends on (next_cursor, has_more), plus the billing model. It does not describe the shape of the returned post fields or what happens when the sound id is invalid, leaving a small gap.

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 the schema already explains music, cursor, fresh, and raw, including the raw/fresh default and pricing implications. The description only restates the cursor round-trip and does not add syntax or format detail beyond the schema; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific resource ('Posts that use a given TikTok sound') and its page size, so an agent can tell it apart from tiktok_get_music, which presumably returns sound metadata rather than posts. It stops short of explicitly contrasting against the sibling listing tools, so it is clear but not fully differentiated.

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?

Gives concrete operating instructions: paginate by feeding pagination.next_cursor back as cursor while pagination.has_more is true, and how billing behaves. It does not state when to prefer this over tiktok_get_posts or tiktok_get_hashtag_posts, so the when-not guidance is missing.

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.