Skip to main content
Glama

analyze_video_segment

Read-only

Answer a question about a specified YouTube video time range by combining timestamped transcript and sampled frames; optionally require visual evidence and report missing or reduced evidence.

Instructions

Answer a question about a specified video time range. Set require_vision=true for visual claims. Reports missing or reduced evidence; never switches AI providers after errors.

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>",
      "question": "<question>",
      "start": "<start>",
      "end": "<end>"
    },
    "name": "analyze_video_segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesEnd time in seconds; must be greater than start and within the video.
urlYesSingle YouTube video URL; not a playlist or local file.
startYesStart time in seconds from the original video.
questionYesQuestion grounded in the supplied video evidence.
require_visionNoRequire visual evidence; fail if vision is unavailable.

Output Schema

NameRequiredDescriptionDefault
endYes
startYes
sourceYes
analysisYes
durationYes
timelineYes
video_idYes
warningsYes
diagnosticsNo
frame_timestampsYes
submitted_frame_timestampsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, open-world), and the description goes beyond them by disclosing degraded-output behavior ('reports missing or reduced evidence') and failure handling ('never switches AI providers after errors'). These are traits an agent cannot derive from the annotations, though the practical consequence of a provider failure is still left implicit.

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?

Three short sentences with the purpose front-loaded and no filler. The final clause about provider switching is terse enough that it takes a moment to parse, but nothing is wasted.

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 an output schema, full parameter coverage, and explicit annotations, the definition carries what it needs to; it adds evidence-reliability and failure semantics on top. The only gap is that it does not clarify its division of labor with the near-identical sibling ask_video_question, which matters for a tool whose main risk is being called on the wrong scope.

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 every parameter is already documented including require_vision's fail-if-unavailable behavior. The description adds only a light framing ('for visual claims') that mostly restates the schema, so the baseline 3 applies.

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?

States a specific verb and resource: answer a question about a specified video time range. The time-range scoping implicitly separates it from the sibling ask_video_question, but neither that sibling nor watch_video_overview is named, so the agent must infer the boundary rather than read it.

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?

Usage context is only implied by the time-range framing, with no explicit when-to-use or when-not statement relative to the sibling question tools. The one concrete directive, set require_vision=true for visual claims, is useful but is parameter-level guidance rather than tool-selection guidance.

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