Skip to main content
Glama

Search videos

search_videos
Read-only

Search for videos matching a query on YouTube (default), TikTok, or Instagram. Returns titles, ids, durations, and URLs that get_transcript accepts directly. On YouTube, upload_date, duration, sort and captions narrow the results; search_channels finds channels or playlists instead. To read what the videos say rather than only their titles, set transcripts to N: the caption transcripts of the first N rows (at most 5) come back in the same call.

Input Schema

NameRequiredDescriptionDefault
sortNoYouTube only. relevance (default) or views (most viewed first). YouTube search no longer sorts by date; for recent videos use upload_date.relevance
limitNoMax results to return (1–50). Defaults to 5.
queryYesSearch keywords.
captionsNoYouTube only. true keeps only videos with subtitles or closed captions.
durationNoYouTube only. short is under 4 minutes, medium 4 to 20 minutes, long over 20 minutes.
platformNoWhere to search. Defaults to youtube.youtube
transcriptsNoAlso return the caption transcripts of the first N videos (1-5), each cut at 12,000 characters. Captions only: a video without captions (most Instagram reels) comes back with outcome no_transcript, and get_transcript transcribes its audio. 1 credit per transcript delivered, on top of the listing's; failures are free.
upload_dateNoYouTube only. Uploaded within the last hour, today, this week, this month, or this year.

Output Schema

NameRequiredDescriptionDefault
countNoNumber of videos returned.
noticeNoWhy a list is empty or may be incomplete, when the source says: e.g. "This channel has no Live tab."
videosNoMatching videos with ids, titles, and URLs.
balanceNoRemaining credit balance after this call, when known.
creditsSpentNoCredits charged for this call (0 on failure or for admins).
creditsNoticeNoCredits words for the user, with the link that acts on them: why the call was refused for credits, or a note once the balance runs low. Pass it on to the user.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare read-only, open-world, non-idempotent, non-destructive, so the description is free to add the traits that matter operationally: the transcript cap of 5 and 12,000-character truncation, the 'no_transcript' outcome for caption-less videos (most Instagram reels), and the 1-credit-per-transcript cost with failures free. That is real cost and failure-mode disclosure not present in structured fields.

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?

Three sentences, front-loaded with purpose and platform scope, then alternatives, then the opt-in transcript behavior. Every sentence carries distinct information; nothing is padding.

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

Completeness5/5

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

For an 8-parameter, multi-platform search tool with an output schema, the description covers the platform default, the YouTube-only filter cluster, the sibling alternative, the cost model and the failure mode. Return shape is handled by the output schema, so nothing an agent needs before calling is missing.

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 enum semantics (duration buckets, upload_date windows, sort, captions) are already fully documented there, so baseline is 3. The description adds only light framing — that these filters are YouTube-only and that 'transcripts' returns content 'in the same call' — which is useful but largely restates the schema.

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 and resource ('Search for videos matching a query') and immediately scopes it across YouTube (default), TikTok and Instagram. It also names the sibling that does something adjacent ('search_channels finds channels or playlists instead'), so the agent can route without opening either schema.

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?

Explicit routing is given: use search_channels for channels/playlists, use this when you want video rows, and set 'transcripts' when you need what the videos say rather than only titles. The follow-on relationship to get_transcript ('URLs that get_transcript accepts directly') is spelled out, which is the key when-to-use chain.

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.