Skip to main content
Glama
tuyennn

Xiaozhi YouTube MCP

by tuyennn

Search YouTube songs

youtube_search_song

Find and play songs on YouTube by searching with song name, artist, or lyrics. Returns playable YouTube URLs.

Instructions

Search YouTube Music-category videos and return playable YouTube URLs. Use this when the user asks to find or play a song.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderNo
queryYesSong name, artist, lyrics, album, or search phrase
maxResultsNoNumber of results, from 1 to 10
regionCodeNoISO 3166-1 alpha-2 region, for example VN or US
safeSearchNo
officialOnlyNoBias the query toward official audio uploads
relevanceLanguageNoLanguage code such as vi or en
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions returning 'playable YouTube URLs' but does not disclose limitations like authentication requirements, rate limits, or behavior when no results are found. For a search tool, minimal behavioral context is given.

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 two sentences long, front-loaded with the core action, and every sentence adds value. No unnecessary words.

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?

Given 7 parameters, no output schema, and no annotations, the description is adequate but missing details such as result format, pagination, or location restrictions. It explains purpose but lacks completeness for an agent to fully understand usage nuances.

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 71%, so the schema already documents 5 of 7 parameters. The description adds little extra meaning beyond emphasizing 'playable YouTube URLs.' With moderate coverage, a baseline score of 3 is appropriate.

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?

The description clearly states 'Search YouTube Music-category videos and return playable YouTube URLs' with a specific verb and resource. It also distinguishes from siblings (youtube_play_song and youtube_get_video) by focusing on searching rather than playing or retrieving a single video.

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?

The description explicitly says 'Use this when the user asks to find or play a song,' providing clear context. However, it does not explicitly state when not to use it or mention alternatives, though siblings imply other use cases.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tuyennn/xiaozhi-youtube-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server