Skip to main content
Glama

Analyze Video

analyze_video
Read-only

Extract sampled frames from a video and analyze them using vision AI to gain insights, answer questions, or extract specific details.

Instructions

Analyze a local or remote video by extracting sampled frames with ffmpeg and sending them to Codex vision analysis.

Requires ffmpeg on PATH. For precise video work, extract important frames manually and use analyze_image or ui_diff_check.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesDetailed prompt describing what to analyze, extract, or understand from the video.
frame_countNoOptional number of frames to extract with ffmpeg before sending to Codex. Defaults to 4.
image_detailNoOptional Codex Responses input_image detail. Defaults to CODEX_VISION_IMAGE_DETAIL or high.
video_sourceYesLocal file path or remote URL to the video.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
errorNo
successYes
metadataNo
Behavior4/5

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

Annotations already mark it as read-only and non-destructive. The description adds that it requires ffmpeg and samples frames, which are behavioral traits not in annotations. No contradictions.

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?

Two sentences are efficient and provide essential information without redundancy. The purpose is stated first, and the guidance is front-loaded.

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?

Given the tool's complexity and the presence of an output schema, the description covers the key aspects: purpose, external dependency, and usage alternatives. It is complete enough for an agent to understand when and how to use the tool.

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 coverage is 100%, so the schema already documents all parameters. The description does not add any additional parameter semantics beyond what is in the schema, so it merits a baseline score of 3.

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 clearly states the tool analyzes video by extracting sampled frames with ffmpeg and sending them to Codex vision analysis. It distinguishes itself from siblings like analyze_image by noting that for precise work, one should use those alternatives.

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 explicitly mentions the requirement of ffmpeg on PATH, and provides guidance: for precise video work, extract frames manually and use other tools. This helps the agent decide when not to use this tool, though it could be more explicit about when to use it.

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/darkamenosa/codex-vision-mcp'

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