Skip to main content
Glama

Analyze a video

analyze_video
Read-only

Ask Gemini about a video's visuals and audio from a local path, YouTube link, or Instagram post to get answers, summaries, or timestamped chapters.

Instructions

Ask Gemini about the pictures and audio in a video. Supply an absolute local video path, a public YouTube link, or a public Instagram video post. Omit the prompt for timestamped chapters and visual observations. The reply includes token usage when supplied by the provider. Set fps for fixed sampling or start/end for a time range. Instagram links require yt-dlp. Use gemini_chat to compare several clips in context. Local files are included inline in each generateContent request to the configured provider.

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": "analyze_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoClip end, using the same formats as start.
fpsNoFrames per second, greater than 0 and at most 24. Use 0.5 for one frame every two seconds. Can be combined with start, end, and detail.
urlYesPublic YouTube video URL, Instagram reel or video post URL, or an absolute local video path, e.g. /media/talk.mp4.
modeNogenerateContent uses static sampling for every mode.
modelNoProvider model ID for this call. An explicit selection is pinned for the request. Otherwise the configured model applies.
startNoClip start. Use a timecode (12:30 or 1:02:30), seconds (750s), or numeric milliseconds.
detailNoNormal or high detail. High detail uses static sampling at high resolution for small text, code, or other fine details.
promptNoQuestion about the video. Defaults to a summary with timestamped chapters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered, but the description still adds real behavior: token usage may appear in the reply, Instagram sources depend on yt-dlp being installed, and local files are sent inline with every generateContent request (a meaningful payload/privacy implication). The one gap is that it never states what happens on failure or how large a local file can be before inline inclusion becomes a problem.

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 front-loaded with the core action and source types, then descends into options, dependencies, and alternatives in roughly the order an agent would need them. The telegraphic sentence fragments are dense and slightly clipped, but no sentence is filler and nothing important is buried at the end.

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?

With no output schema, the description carries the burden of return-value disclosure and does so at a high level (chapters, visual observations, token usage). Combined with full schema coverage for eight params and read-only annotations, an agent has enough to invoke correctly; only error behavior and local-file size limits are unaddressed.

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%, so all eight parameters are already documented in the schema, and the description mostly echoes that (fps for fixed sampling, start/end for a range, prompt omission default). It adds little semantic detail the schema lacks, such as interaction between mode and detail, so the baseline 3 applies.

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 states a specific verb and resource ('Ask Gemini about the pictures and audio in a video') and enumerates the accepted source types: absolute local path, public YouTube link, public Instagram post. It also distinguishes itself from the sibling gemini_chat, which is reserved for comparing several clips, so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

It explicitly covers the default path ('Omit the prompt for timestamped chapters'), the sampling alternatives ('Set fps for fixed sampling or start/end for a time range'), and the sibling alternative ('Use gemini_chat to compare several clips in context'). It also names a prerequisite for one source type (Instagram links require yt-dlp), which is exactly the kind of conditional guidance an agent needs before calling.

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