Skip to main content
Glama

gemini_analyze_media

Analyze audio, video, and image files to transcribe speech, separate speakers, describe visual content, and assess background-music fit.

Instructions

Have Gemini (via the agy CLI, subscription) watch / listen to / look at media files.

Transcription and speaker separation, what happens on screen, whether BGM suits a scene, rough positions in a frame. agy cannot run commands: cut long media first with media_clip / media_audio / media_frames (30-60 s, 720p). more_files: extra files for the same question (e.g. a few frames; keep it under ~10 images). For coordinates, use frames with a grid and model gemini-4-neon-high. The answer is summarised into the session. model: agy model id (default gemini-4-hydrogen-high).

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": {
      "file_path": "<file_path>",
      "prompt": "<prompt>"
    },
    "name": "gemini_analyze_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
promptYes
file_pathYes
more_filesNo
session_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With zero annotations the description carries the full burden, and it does disclose meaningful behavior: the prerequisite that agy cannot execute commands and media must be pre-cut, a practical limit on more_files (~10 images), and the fact that the answer is summarised into the session rather than returned verbatim. It omits latency, failure behavior, and what happens when session_id is missing.

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?

Purpose is front-loaded and most sentences carry distinct operational value (preprocessing rule, more_files limit, coordinate recipe, default model). The style is telegraphic and the trailing 'model:' line reads like a fragment rather than integrated guidance, but there is little outright waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter tool with no annotations and no output schema, the description covers prerequisites, limits, and session summarization well. The notable gap is the return value: it never says whether the tool returns the Gemini answer directly or only a pointer into the session, which an agent needs in order to chain calls.

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?

Schema coverage is 0% across five parameters, so the description must compensate, and it does for most: model is described as an agy model id with a concrete default, more_files gains purpose plus a size ceiling, file_path/prompt are covered indirectly by the 'same question' framing. session_id is only alluded to via 'summarised into the session' and its semantics (new vs existing session) are not explained.

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 first line states a specific verb and resource: have Gemini (via the agy CLI, subscription) watch/listen/look at media files. The following sentences enumerate concrete capabilities (transcription and speaker separation, on-screen activity, BGM suitability, rough frame positions), which makes the tool's output scope unambiguous. It does not explicitly contrast itself with gemini_consult, so a sibling-differentiation point is missing.

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?

It gives real preconditions and routing: agy cannot run commands, so long media must first be cut with media_clip / media_audio / media_frames at 30-60 s and 720p. It also states more_files usage (extra files for the same question, keep under ~10 images) and the specific recipe for coordinates (frames with a grid, model gemini-4-neon-high). No when-not-to-use or comparison against gemini_consult is offered.

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