Skip to main content
Glama

fetch_video_bundle

Download a lightweight MP4 or timestamped keyframes, storyboard, and subtitles from Bilibili or YouTube links, plus top comments and danmaku highlights.

Instructions

Download a lightweight video bundle (<=max_height, <=max_size_mb MP4) or keyframes + storyboard + subtitles, along with hot comments / danmaku summary.

Args: url: Web video URL (e.g., Bilibili, YouTube). mode: 'auto' (uses AGY_VIDEO_DEFAULT_MODE env var or configured default_mode), 'video' (lightweight MP4 for video-capable agents like Antigravity via read_file), or 'frames_and_text' (evenly spaced JPEG keyframes + single timestamped storyboard + subtitles, ideal for DSH / DeepSeek Harness and other non-video agents). start_time: Optional slice start time (seconds or MM:SS / HH:MM:SS). Required when video duration exceeds max_duration_seconds. end_time: Optional slice end time (seconds or MM:SS / HH:MM:SS). Single slice must be <= max_duration_seconds. inline_storyboard: When True (or AGY_VIDEO_INLINE_STORYBOARD=1) in frames_and_text mode, returns the timestamped storyboard JPEG inline as MCP ImageContent.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "fetch_video_bundle"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
modeNoauto
end_timeNo
start_timeNo
inline_storyboardNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does disclose the important behavior: output composition differs by mode, MP4 is height- and size-capped, frames mode yields evenly spaced JPEGs plus one timestamped storyboard, duration is bounded by max_duration_seconds, and inline_storyboard returns MCP ImageContent. Gaps remain around failure modes, whether results are cached (a cleanup_cache sibling exists), and permission/auth requirements.

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?

Front-loaded summary sentence followed by a compact Args block keyed to the actual parameter names. Every clause carries information — constraints, enums, formats, or env-var fallbacks. No filler or restatement of the tool name.

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?

For a five-parameter, no-annotation, no-output-schema tool, the description is nearly sufficient: inputs, modes, constraints, and the shape of returned content are all covered. It stops short of describing the concrete return artifacts (file paths, URLs, or structured envelope) and any caching or cleanup behavior an agent would need to manage result lifecycle.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate and it does: it documents all five parameters, including all three mode values with their semantics and env-var fallback, accepted time formats (seconds or MM:SS / HH:MM:SS) with the max_duration_seconds constraint in each direction, and the inline_storyboard env-var override. This is meaning well beyond the bare schema titles.

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 opens with a specific verb and resource: "Download a lightweight video bundle (<=max_height, <=max_size_mb MP4) or keyframes + storyboard + subtitles, along with hot comments / danmaku summary." That is concrete enough to distinguish it from a plain link inspector. It never names or contrasts with siblings such as fetch_comments or inspect_video_link, even though the 'hot comments / danmaku summary' overlap creates a real routing question.

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 mode parameter is documented with explicit when-to-use guidance: 'video' for video-capable agents like Antigravity via read_file, 'frames_and_text' for DSH / DeepSeek Harness and other non-video agents. That is strong mode-level routing. What is absent is tool-level routing — nothing says when to call this versus fetch_comments or inspect_video_link, or whether this tool supersedes them.

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