Skip to main content
Glama

Parse a YouTube URL

youtube_parse_url
Read-onlyIdempotent

Parse any YouTube URL or video ID offline to extract video ID, playlist ID, start offset, and link type. Validate links without network requests.

Instructions

Offline parse of a YouTube reference: video id, playlist id, start offset and how it was recognised. Makes no network requests. Useful for validating a link and explaining playlist, channel or clip links.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesAny YouTube URL, or a bare 11-character video id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, the description adds valuable behavioral detail: it is offline and 'Makes no network requests.' It also reveals what kind of recognition output the tool produces, which complements the safe-read/idempotent hints.

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 tight sentences with no filler. The core capability and offline guarantee are front-loaded, and the use-case sentence earns its place by clarifying when the tool is helpful.

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 a single-parameter, offline, read-only parser with full schema coverage and helpful annotations, the description is complete. It explains what the tool parses, how it behaves, and why an agent would choose it.

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%, so the schema already documents the single url parameter well. The description adds context about valid link forms (playlist, channel, clip) but does not substantially extend the parameter meaning beyond what the schema states.

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 begins with a specific verb and resource: 'Offline parse of a YouTube reference.' It clearly enumerates the outputs (video id, playlist id, start offset, recognition method) which distinguishes it from transcript, language, and video-info siblings.

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 states the intended use: 'validating a link and explaining playlist, channel or clip links.' This gives clear context for when to call the tool, though it does not explicitly say when not to use it or name alternative tools.

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