Skip to main content
Glama
LamaTok — TikTok MCP

LamaTok — TikTok MCP

get_v1_media_music_download_by_url

Read-only

Retrieve the audio download link for a TikTok video from its URL, returning the file URL and required HTTP headers without downloading the file.

Instructions

Get a download link for the audio track of a TikTok video, by the video's URL. Returns the file URL and the HTTP headers to send with it; the file itself is not downloaded. Use get_v1_media_music_download_by_id when you have the video id and get_v1_media_video_download_by_url for the video file. Live request to TikTok, billed per call. (GET /v1/media/music/download/by/url)

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": {
      "url": "<url>"
    },
    "name": "get_v1_media_music_download_by_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesA TikTok media link. Accepted forms: 'https://www.tiktok.com/@username/video/7329151448644734213', 'https://www.tiktok.com/@username/photo/7563287743757962503', '/@username/video/7329151448644734213', 'https://vm.tiktok.com/ABCDEfghK/' (also vt.tiktok.com and /t/<code>). A profile, hashtag or non-TikTok link is answered 400.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.1
    • changedInput schema / properties / url / description
      Previous value: -"examples: 'https://www.tiktok.com/@username/video/7329151448644734213' or '/@username/video/7329151448644734213'or 'https://vt.tiktok.com/ABCDEfghK/'"New value: +"A TikTok media link. Accepted forms: 'https://www.tiktok.com/@username/video/7329151448644734213', 'https://www.tiktok.com/@username/photo/7563287743757962503', '/@username/video/7329151448644734213', 'https://vm.tiktok.com/ABCDEfghK/' (also vt.tiktok.com and /t/<code>). A profile, hashtag or non-TikTok link is answered 400."
  2. First observedv1.0.2

TDQS

A4.4/5.0
Behavior4/5

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

Annotations cover safety (readOnlyHint, openWorldHint, destructiveHint). The description adds that it returns a file URL and HTTP headers (not the file itself) and that it's a live billed request. It doesn't mention rate limits, auth needs, or error behavior, but these are minor gaps given the annotations.

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 efficient sentences: first states purpose and return format, second gives alternatives and billing context. No wasted words.

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?

Covers purpose, return value, alternatives, and billing. No output schema exists, so the description's explanation of what is returned (file URL and headers, not the file) is valuable. Could mention pagination or rate limits, but overall complete for a simple GET tool.

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%, and the schema itself details accepted URL forms and rejection cases. The description only says 'by the video's URL', adding no syntax or format detail beyond what the schema provides.

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 (Get) and resource (download link for the audio track of a TikTok video) with clear scope. It names sibling tools get_v1_media_music_download_by_id and get_v1_media_video_download_by_url, so the agent can distinguish it without opening schemas.

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 says to use this tool when you have the video's URL and points to the alternative for video id and video file downloads. It also notes billing: live request to TikTok, billed per call.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.