Skip to main content
Glama

video_analyze

Idempotent

Analyze YouTube videos or local files to extract specific information using customizable instructions and structured JSON output.

Instructions

Analyze a video (YouTube URL or local file) with any instruction.

Provide exactly one of url or file_path. Uses Gemini's structured output for reliable JSON responses. Pass a custom output_schema to control the response shape, or use the default VideoResult schema.

When strict_contract=True, runs the full contract pipeline: analysis with strict Pydantic models, parallel strategy/concept-map generation, artifact rendering, and quality gates. Returns richer output but takes longer.

Args: url: YouTube video URL. file_path: Path to a local video file. instruction: What to analyze or extract from the video. output_schema: Optional JSON Schema dict for custom output shape. thinking_level: Gemini thinking depth. use_cache: Whether to use cached results. strict_contract: Run strict contract pipeline with quality gates.

Returns: Dict matching VideoResult schema (default), custom output_schema, or strict contract output with analysis, strategy, concept_map, artifacts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
file_pathNo
instructionNoWhat to analyze — e.g. 'summarize key points', 'extract all CLI commands shown', 'list all recipes and ingredients'Provide a comprehensive analysis of this video.
output_schemaNoOptional JSON Schema for the response. If omitted, uses default VideoResult schema.
thinking_levelNohigh
use_cacheNoUse cached results
strict_contractNoEnable strict contract pipeline with quality gates, artifact rendering, and semantic validation. Produces richer output with strategy report, concept map, and HTML/Markdown artifacts.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Beyond the annotations (which indicate idempotent, non-destructive, open-world behavior), the description adds valuable implementation context: it discloses the Gemini backend, 'structured output for reliable JSON responses,' and details the strict_contract pipeline including 'parallel strategy/concept-map generation, artifact rendering, and quality gates.' It also warns about performance implications ('takes longer').

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 description is well-structured with clear Purpose → Constraints → Behavioral Details → Args → Returns sections. While the Args section partially duplicates the schema, this repetition is justified by the incomplete schema coverage. The strict_contract explanation is appropriately detailed. Minor redundancy exists between schema descriptions and Args descriptions.

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 complex tool with 7 parameters, multiple operational modes (default vs strict_contract), and custom output schema support, the description provides comprehensive coverage. It explains input constraints, backend technology, return value shapes (VideoResult vs custom vs strict contract output), and caching behavior. It appropriately relies on the existing output schema without redundant explanation.

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

Parameters4/5

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

With 57% schema description coverage, the Args section compensates effectively by documenting all 7 parameters, including thinking_level ('Gemini thinking depth') which lacks schema description. The description adds clarifying examples for the instruction parameter ('e.g. summarize key points') and explains the strict_contract behavior beyond the schema's basic description.

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 clearly states the tool 'Analyze[s] a video (YouTube URL or local file) with any instruction,' specifying the exact resource (video), supported sources (YouTube or local), and flexible analysis capability. While it implies single-video scope through the parameter structure, it does not explicitly differentiate from siblings like video_batch_analyze or video_metadata.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides internal usage constraints ('Provide exactly one of url or file_path') and explains the strict_contract tradeoff ('Returns richer output but takes longer'). However, it lacks explicit guidance on when to use this tool versus siblings like video_batch_analyze (batch processing) or content_analyze (non-video content).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Galbaz1/video-research-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server