Skip to main content
Glama

SocialDataX YouTube MCP

youtube_get_video_detail_by_url

Read-only

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

Input Schema

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

Output Schema

TableJSON 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. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already provide readOnlyHint and openWorldHint, so the safety profile is covered. The description adds the '公开' (public) scope, implying non-public videos may not be retrievable, but it does not mention failure modes, rate limits, or any other behavioral caveats. This is acceptable but not rich.

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?

The description is a single compact sentence that conveys the core purpose immediately. There is no filler or redundant repetition of the tool name, and it is appropriately sized for a simple, single-parameter tool.

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?

Given the rich parameter schema, read-only annotations, and presence of an output schema, the description covers the essential invocation context. It could be more explicit about edge cases such as private videos or invalid URL behavior, but it is sufficiently complete for straightforward usage.

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 schema itself documents supported URL formats, share_url usage from search results, and forbidden link types. The description adds no additional parameter meaning beyond restating that the input is a YouTube URL, so the baseline of 3 is 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?

The description states a specific action ('获取公开视频详情') on a specific resource, using a URL as the input, which clearly identifies this as a video-detail fetch. It is distinguishable from sibling tools like comments or channel info by name and phrasing, but it does not explicitly name or differentiate from those siblings.

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?

The description offers no guidance on when to choose this tool over alternatives such as youtube_get_video_comments_by_url or youtube_search_videos. The parameter schema advises on valid URL types and what not to pass, but that addresses input formatting, not tool selection context.

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