Skip to main content
Glama

SocialDataX TikTok MCP

tiktok_get_post_detail_by_url

Read-only

根据 TikTok 作品页面链接获取视频或图片作品详情。

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": "tiktok_get_post_detail_by_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesTikTok 作品页面链接,例如 https://www.tiktok.com/@user/video/123 或 https://www.tiktok.com/@user/photo/123;视频和图片作品均可返回详情,不要用 post_id 代替 url

Output Schema

NameRequiredDescriptionDefault
musicYes作品音乐;当前不可用时为 null
titleYes作品标题;图片作品可能有标题,视频作品或当前不可用时为 null
videoYes视频播放资源;图片作品或当前不可用时为 null
authorYes作品作者信息
imagesYes图片作品的图片资源列表;视频作品为空数组
pointsYes本次成功调用的积分消耗与账户积分余额。
post_idYesTikTok 作品 ID;长数字字符串,原样保留,不要转为数字;content_type=video 时标识视频作品;content_type=image 的 post_id 标识图片作品,不能作为视频作品 ID 使用
share_urlYesTikTok 作品页面链接;视频作品为视频页面链接,图片作品为图片作品页面链接;不要把 content_type=image 的 share_url 当作视频页面链接;当前不可用时为 null
like_countYes点赞数;当前不可用时为 0
play_countYes播放/浏览数;当前不可用时为 0
topic_tagsYes作品话题标签列表;name 不含 #;topic_id 当前仅作为结果标识返回,不要用 topic_id 代替话题名称
descriptionYes作品文案;没有文案或当前不可用时为空字符串
share_countYes分享数;当前不可用时为 0
content_typeYes作品类型:video 表示视频作品,image 表示图片作品
publish_timeYes发布时间,秒级 Unix 时间戳;当前不可用时为 0
collect_countYes收藏数;当前不可用时为 0
comment_countYes评论数;当前不可用时为 0
cover_image_urlYes作品封面图片资源链接;可能随时间失效;不是作品页面链接或播放资源链接;当前不可用时为 null
content_statementNo作品的主要内容声明或提示;未取得有效声明原文时为 null,不表示非 AI 内容

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / content_statement
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "ai_label": {
      +          "description": "平台标识类别:ai_generated 明确标注含 AI 生成内容(含部分使用 AI),suspected_ai_generated 疑似或可能含 AI 生成内容,ai_assisted 明确标注 AI 参与创作或编辑但未明确生成,none 当前声明未识别到 AI 标识,不表示内容没有 AI 参与;仅描述标识含义,不表示独立鉴定结果",
      +          "enum": [
      +            "ai_generated",
      +            "suspected_ai_generated",
      +            "ai_assisted",
      +            "none"
      +          ],
      +          "title": "Ai Label",
      +          "type": "string"
      +        },
      +        "source": {
      +          "description": "声明或识别主体:author 作者自主声明,platform 平台识别或提示,unknown 来源不明;不表示接口供应商",
      +          "enum": [
      +            "author",
      +            "platform",
      +            "unknown"
      +          ],
      +          "title": "Source",
      +          "type": "string"
      +        },
      +        "text": {
      +          "description": "平台展示的内容声明或提示原文",
      +          "minLength": 1,
      +          "pattern": "\\S",
      +          "title": "Text",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "text",
      +        "source",
      +        "ai_label"
      +      ],
      +      "title": "ContentStatement",
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "作品的主要内容声明或提示;未取得有效声明原文时为 null,不表示非 AI 内容"
      +}
  2. Changed2 schema fields changed
    • changedOutput schema / properties / points / description
      Previous value: -"本次成功调用的积分消耗与调用完成时的账户积分余额。"New value: +"本次成功调用的积分消耗与账户积分余额。"
    • changedOutput schema / properties / points / properties / balance / description
      Previous value: -"本次接口完成时看到的当前积分余额,可为负数。"New value: +"优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
  3. Changed2 schema fields changed
    • changedOutput schema / properties / points / properties / balance / description
      Previous value: -"本次接口完成时看到的当前积分余额。"New value: +"本次接口完成时看到的当前积分余额,可为负数。"
    • removedOutput schema / properties / points / properties / balance / minimum
      Removed value: -0
  4. Changed32 schema fields changed
    • addedOutput schema / properties / author / properties / avatar_url / title
      Added value: +"Avatar Url"
    • addedOutput schema / properties / author / properties / bio / title
      Added value: +"Bio"
    • addedOutput schema / properties / author / properties / name / title
      Added value: +"Name"
    • addedOutput schema / properties / author / properties / profile_url / title
      Added value: +"Profile Url"
    • addedOutput schema / properties / author / properties / tiktok_id / title
      Added value: +"Tiktok Id"
    • addedOutput schema / properties / author / properties / user_id / title
      Added value: +"User Id"
    • addedOutput schema / properties / author / properties / verified / title
      Added value: +"Verified"
    • addedOutput schema / properties / author / title
      Added value: +"TikTokPostSearchAuthorData"
    • addedOutput schema / properties / collect_count / title
      Added value: +"Collect Count"
    • addedOutput schema / properties / comment_count / title
      Added value: +"Comment Count"
    • addedOutput schema / properties / content_type / title
      Added value: +"Content Type"
    • addedOutput schema / properties / cover_image_url / title
      Added value: +"Cover Image Url"
    • addedOutput schema / properties / description / title
      Added value: +"Description"
    • addedOutput schema / properties / images / items / properties / height / title
      Added value: +"Height"
    • addedOutput schema / properties / images / items / properties / url / title
      Added value: +"Url"
    • addedOutput schema / properties / images / items / properties / width / title
      Added value: +"Width"
    • addedOutput schema / properties / images / items / title
      Added value: +"TikTokPostSearchImageData"
    • addedOutput schema / properties / images / title
      Added value: +"Images"
    • addedOutput schema / properties / like_count / title
      Added value: +"Like Count"
    • changedOutput schema / properties / music / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "author": {
      -        "description": "音乐作者;当前不可用时为空字符串",
      -        "type": "string"
      -      },
      -      "duration_ms": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "音乐时长,毫秒;当前不可用时为 null"
      -      },
      -      "music_id": {
      -        "description": "音乐 ID;长数字字符串,原样保留,不要转为数字;当前仅作为作品音乐标识返回",
      -        "type": "string"
      -      },
      -      "play_url": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "音乐播放资源链接;可能随时间失效;当前不可用时为 null;不要把 play_url 当作音乐 ID 使用"
      -      },
      -      "title": {
      -        "description": "音乐标题;当前不可用时为空字符串",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "music_id",
      -      "title",
      -      "author",
      -      "play_url",
      -      "duration_ms"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "author": {
      +        "description": "音乐作者;当前不可用时为空字符串",
      +        "title": "Author",
      +        "type": "string"
      +      },
      +      "duration_ms": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "音乐时长,毫秒;当前不可用时为 null",
      +        "title": "Duration Ms"
      +      },
      +      "music_id": {
      +        "description": "音乐 ID;长数字字符串,原样保留,不要转为数字;当前仅作为作品音乐标识返回",
      +        "title": "Music Id",
      +        "type": "string"
      +      },
      +      "play_url": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "音乐播放资源链接;可能随时间失效;当前不可用时为 null;不要把 play_url 当作音乐 ID 使用",
      +        "title": "Play Url"
      +      },
      +      "title": {
      +        "description": "音乐标题;当前不可用时为空字符串",
      +        "title": "Title",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "music_id",
      +      "title",
      +      "author",
      +      "play_url",
      +      "duration_ms"
      +    ],
      +    "title": "TikTokPostSearchMusicData",
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / play_count / title
      Added value: +"Play Count"
    • addedOutput schema / properties / post_id / title
      Added value: +"Post Id"
    • addedOutput schema / properties / publish_time / title
      Added value: +"Publish Time"
    • addedOutput schema / properties / share_count / title
      Added value: +"Share Count"
    • addedOutput schema / properties / share_url / title
      Added value: +"Share Url"
    • addedOutput schema / properties / title / title
      Added value: +"Title"
    • addedOutput schema / properties / topic_tags / items / properties / name / title
      Added value: +"Name"
    • addedOutput schema / properties / topic_tags / items / properties / topic_id / title
      Added value: +"Topic Id"
    • addedOutput schema / properties / topic_tags / items / title
      Added value: +"TikTokTopicTagData"
    • addedOutput schema / properties / topic_tags / title
      Added value: +"Topic Tags"
    • changedOutput schema / properties / video / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "duration_ms": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "视频时长,毫秒;当前不可用时为 null"
      -      },
      -      "height": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "视频高度,像素;当前不可用时为 null"
      -      },
      -      "play_url": {
      -        "description": "视频播放资源链接;不是作品页面链接;可能随时间失效;如果不可用,外层 video 为 null",
      -        "type": "string"
      -      },
      -      "width": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "视频宽度,像素;当前不可用时为 null"
      -      }
      -    },
      -    "required": [
      -      "play_url",
      -      "duration_ms",
      -      "width",
      -      "height"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "duration_ms": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "视频时长,毫秒;当前不可用时为 null",
      +        "title": "Duration Ms"
      +      },
      +      "height": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "视频高度,像素;当前不可用时为 null",
      +        "title": "Height"
      +      },
      +      "play_url": {
      +        "description": "视频播放资源链接;不是作品页面链接;可能随时间失效;如果不可用,外层 video 为 null",
      +        "title": "Play Url",
      +        "type": "string"
      +      },
      +      "width": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "视频宽度,像素;当前不可用时为 null",
      +        "title": "Width"
      +      }
      +    },
      +    "required": [
      +      "play_url",
      +      "duration_ms",
      +      "width",
      +      "height"
      +    ],
      +    "title": "TikTokPostSearchVideoData",
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / title
      Added value: +"TikTokPostDetailData"
  5. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds a useful behavior note that both video and photo posts return details, and an output schema exists to cover returns. It does not mention rate limits or error behavior, which is acceptable given the annotation coverage.

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?

A single front-loaded sentence with no wasted words that states the input type and returned resource. It is efficient, though it could have spent one clause on when to prefer this over the by_post_id siblings.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-param tool with an output schema and read-only annotations, the description is adequate but thin. It omits any routing guidance among the many sibling variants, which is the main thing an agent would need beyond structured fields.

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 parameter carries examples, formats, and a post_id-vs-url warning, so the schema does the heavy lifting. The description adds no parameter meaning beyond the schema, making baseline 3 appropriate.

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?

States a specific verb (获取详情) and resource (视频或图片作品) scoped to the URL-based variant, which clearly differentiates it from the by_post_id family. The distinction is partly carried by the name and schema rather than the description sentence itself, but the purpose reads unambiguously.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: '根据 TikTok 作品页面链接' tells an agent to call it when holding a post URL, but the description names no alternative and states no when-not condition. The routing hint ('不要用 post_id 代替 url') lives only in the schema, not the description.

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.

Resources