Skip to main content
Glama

Resolve YouTube episode candidates

resolve_youtube_episode_link
Read-only

Read-only YouTube video candidates for the feed_url and guid (or catalogue episode_id) returned by find_podcast_episodes. Official links on the publisher page, show notes, and RSS item come first. A channel-first YouTube Data API lookup is the fallback when YOUTUBE_API_KEY is configured: the show channel is cached, uploads are listed before search.list, and a wrong channel is a hard reject. A missing key or exceeded quota is named and does not guess a link. Each candidate includes the video URL and id, title, channel, publish date, duration, and evidence. rank_hint is an ordering hint only. This tool does not choose a video. The caller decides. Pass the chosen video id to propose_listening_link_reply as youtube_video_id.

Input Schema

NameRequiredDescriptionDefault
guidNoEpisode guid from find_podcast_episodes
titleNoEpisode title from find_podcast_episodes
podcastNoShow name from find_podcast_episodes
feed_urlNoRSS feed URL from find_podcast_episodes
episode_idNoStable id or canonical_episode_key from find_podcast_episodes
enclosure_urlNoEnclosure URL when the finder returned one

Output Schema

NameRequiredDescriptionDefault
guidYes
showYes
titleYes
data_apiNo
feed_urlYes
rejectedYes
candidatesYes
episode_idYes
empty_reasonYes
content_originNo
search_fallbackYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedOutput schema / properties / candidates / items / properties / match
      Added value: +{
      +  "enum": [
      +    "exact",
      +    "fuzzy"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / candidates / items / properties / source / enum
      Previous value: -[
      -  "rss_item",
      -  "episode_page",
      -  "publisher_page",
      -  "youtube_search"
      -]New value: +[
      +  "rss_item",
      +  "episode_page",
      +  "publisher_page",
      +  "youtube_search",
      +  "youtube_data_api",
      +  "cached_selection"
      +]
    • addedOutput schema / properties / data_api
      Added value: +{
      +  "enum": [
      +    "not_needed",
      +    "used",
      +    "key_missing",
      +    "quota_exceeded",
      +    "failed"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / rejected / items / properties / source / enum
      Previous value: -[
      -  "rss_item",
      -  "episode_page",
      -  "publisher_page",
      -  "youtube_search"
      -]New value: +[
      +  "rss_item",
      +  "episode_page",
      +  "publisher_page",
      +  "youtube_search",
      +  "youtube_data_api",
      +  "cached_selection"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly/openWorld/non-destructive), and the description adds substantial behavior: source priority (publisher page, show notes, RSS item first), a channel-first API fallback with channel caching, uploads before search.list, and a hard reject on the wrong channel. It also states failure behavior: a missing key or exceeded quota is named rather than guessed.

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?

The definition is front-loaded with purpose and identity requirements before the fallback mechanics, and every clause carries information. It is dense and slightly overpacked: the API fallback sentence crams caching, ordering, and rejection rules into one long construction.

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 read-only candidate-resolution tool with an output schema present, the description supplies the input identity requirements, source priority, API fallback and failure semantics, and the downstream handoff. Return values are covered by the output schema, so nothing an agent needs 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 schema's anyOf already encodes 'feed_url plus guid' or 'episode_id alone'. The description restates that disjunction and names the source of the finder inputs, but adds no format, precedence, or fallback detail for title, podcast, or enclosure_url beyond what the schema already provides.

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 opens with a specific verb and resource: 'Read-only YouTube video candidates for the feed_url and guid (or catalogue episode_id)'. It also explicitly limits scope with 'This tool does not choose a video. The caller decides.', which cleanly separates it from any tool that would pick or post a link.

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?

It gives clear context (consume identity from find_podcast_episodes, hand the chosen video id to propose_listening_link_reply as youtube_video_id) and sets a ranking expectation with 'rank_hint is an ordering hint only'. It does not explicitly say when to prefer it over any other resolve tool, so it stops short of a 5.

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