Skip to main content
Glama

batch_process_videos

Process multiple YouTube videos at once by fetching transcripts and optionally generating summaries and key sections; credits are charged per video and failed videos are refunded.

Instructions

Process multiple YouTube videos at once.

Fetches transcripts and optionally generates summaries and highlights for each video. Credits are charged per video per feature (transcript 1, summary 5, sections 5); failed videos are refunded. Can take several minutes.

Args: video_urls: List of YouTube video URLs or IDs (1-20) include_transcript: Whether to fetch transcripts (default: True) include_summary: Whether to generate summaries (default: True) include_sections: Whether to identify key sections (default: True) num_sections: Number of sections per video (1-10, default: 5) max_transcript_chars: Maximum transcript characters per video in the result (default 20000; 0 = no limit)

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": {
      "video_urls": "<video_urls>"
    },
    "name": "batch_process_videos"
  }
}

Input Schema

NameRequiredDescriptionDefault
video_urlsYes
num_sectionsNo
include_summaryNo
include_sectionsNo
include_transcriptNo
max_transcript_charsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so well: it discloses per-feature credit charges, refunds for failed videos, possible multi-minute runtime, and defaults. These are exactly the operational traits an agent needs before invoking an expensive batch operation.

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 front-loaded with purpose and behavior, then lists parameters compactly in an Args block. Every sentence adds useful information about cost, runtime, defaults, or constraints.

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 six-parameter batch tool with no annotations but an output schema, the description covers purpose, usage context, cost/refund behavior, runtime expectations, and every parameter. The output schema handles return values, so the definition is complete for correct invocation.

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 supply parameter meaning, and it does: it documents all six parameters with types, defaults, and constraints such as 1-20 videos, 1-10 sections, and max_transcript_chars behavior. This adds substantial meaning beyond the bare input 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?

The description uses a specific verb and resource: processing multiple YouTube videos, fetching transcripts, and optionally generating summaries and sections. The batch scope is stated up front, which clearly distinguishes it from single-video siblings such as get_transcript or summarize_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 makes the batch use case clear and explains optional features, defaults, credit costs, and expected runtime. It does not explicitly name alternatives or state when not to use this tool, so it falls short of full when/when-not guidance.

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