Skip to main content
Glama

SocialDataX YouTube MCP

youtube_get_video_detail_by_url

Read-only

根据 YouTube 视频链接获取公开视频详情。

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": {
      "video_url": "<video_url>"
    },
    "name": "youtube_get_video_detail_by_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
video_urlYesYouTube 视频页面链接;支持 watch、youtu.be 短链和 Shorts 链接。从搜索结果读取详情时,直接传搜索结果里的 share_url(items[*].share_url);不要传频道链接、播放列表链接、搜索页链接或裸 video_id。

Output Schema

NameRequiredDescriptionDefault
titleYes视频标题;不可用时为空字符串。
authorYes作者或频道信息。
pointsYes本次成功调用的积分消耗与账户积分余额。
video_idYesYouTube 视频 ID;用于识别和去重。
share_urlYes可打开或分享的 YouTube 视频页面链接;不是视频播放资源链接。
like_countYes点赞数;不可用时为 null。
topic_tagsYes视频关键词或话题标签;无数据时为空数组。
view_countYes观看次数;不可用时为 null。
descriptionYes视频详情页完整描述文本;不是摘要或视频转写;不可用时为空字符串。
duration_msYes视频时长,单位毫秒;不可用时为 null。
publish_timeYes发布时间,ISO 8601 时间字符串;不可用时为空字符串。
comment_countYes评论数;不可用时为 null。
cover_image_urlYes视频封面或缩略图链接;不可用时为 null。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / points / description
      Previous value: -"本次成功调用的积分消耗与调用完成时的账户积分余额。"New value: +"本次成功调用的积分消耗与账户积分余额。"
    • changedOutput schema / properties / points / properties / balance / description
      Previous value: -"本次接口完成时看到的当前积分余额,可为负数。"New value: +"优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
  2. 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
  3. Changed16 schema fields changed
    • addedOutput schema / properties / author / properties / channel_id / title
      Added value: +"Channel Id"
    • 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 / title
      Added value: +"YoutubeAuthorSummaryData"
    • addedOutput schema / properties / comment_count / title
      Added value: +"Comment Count"
    • addedOutput schema / properties / cover_image_url / title
      Added value: +"Cover Image Url"
    • addedOutput schema / properties / description / title
      Added value: +"Description"
    • addedOutput schema / properties / duration_ms / title
      Added value: +"Duration Ms"
    • addedOutput schema / properties / like_count / title
      Added value: +"Like Count"
    • addedOutput schema / properties / publish_time / title
      Added value: +"Publish Time"
    • addedOutput schema / properties / share_url / title
      Added value: +"Share Url"
    • addedOutput schema / properties / title / title
      Added value: +"Title"
    • addedOutput schema / properties / topic_tags / title
      Added value: +"Topic Tags"
    • addedOutput schema / properties / video_id / title
      Added value: +"Video Id"
    • addedOutput schema / properties / view_count / title
      Added value: +"View Count"
    • addedOutput schema / title
      Added value: +"YoutubeVideoDetailData"
  4. First observed

TDQS

B3.2/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 one genuinely useful behavioral fact — it only works on public videos — but says nothing about which detail fields are returned, quota/rate limits, or failure behavior for private/deleted videos. With an output schema present, the omission of return values is acceptable, leaving a modest addition over annotations.

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 short sentence with no filler, purpose front-loaded. It is efficient rather than padded, though it is arguably so terse that it omits anything an agent could act on beyond the schema.

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?

The tool is simple (one fully documented parameter, an output schema, and read-only/open-world annotations), so little prose is strictly required. Still, the description offers no indication of what 'details' means or when to prefer this over the sibling URL-based tools, leaving a gap an agent must bridge by inference.

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% and the parameter's own description already specifies supported URL forms (watch, youtu.be, Shorts) and explicitly excludes channel/playlist/search links and bare video_id. The description only restates 'based on the video link', adding no meaning beyond the schema — baseline 3 is correct when the schema does the work.

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-resource pair: retrieve public video details from a YouTube URL. The 'by URL' input modality and the 'detail' (as opposed to comments, channel info, or search) scope let an agent distinguish it from most siblings, though it never names those siblings explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of the alternative youtube_submit_video_speech_text_by_url or the video-id variants, and no prerequisites. The only implicit constraint is '公开' (public videos only), which narrows scope but does not explain tool selection.

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