Skip to main content
Glama

Analyse a video

analyze_video

Start a scene-by-scene analysis of a video. Provide url: a video link, or the url of a video the user has uploaded via upload_media/confirm_upload. Returns immediately with status='queued'; poll get_analysis until status='succeeded'. Processing typically takes 3-5 minutes on average. IMPORTANT: warn the user up front that the longer the video, the less accurate the scene-by-scene analysis becomes — short clips give the most reliable results.

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
urlYesThe video's link, or the url of a video uploaded with upload_media.
end_secondsNoWhere to stop, in seconds.
start_secondsNoWhere to start analysing, in seconds.
idempotency_keyNoRetry key (IDEMPOTENCY).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / end_seconds / description
      Previous value: -"Where to stop, in seconds: at most 128 seconds after `start_seconds`, which is also the default, so a longer video is analysed in a window and a wider span is rejected rather than trimmed. Cover a long video with successive windows."New value: +"Where to stop, in seconds."
    • changedInput schema / properties / start_seconds / description
      Previous value: -"Where to start analysing, in seconds (default: the beginning). Use it when the user pointed at a moment."New value: +"Where to start analysing, in seconds."
    • changedInput schema / properties / url / description
      Previous value: -"The video to analyse: a public YouTube, TikTok or Instagram video url, or the url of a video this account uploaded to aicut. Pass the url the user gave you, unchanged: do not rewrite it, strip it to an id or substitute another."New value: +"The video's link, or the url of a video uploaded with upload_media."
  2. Changed1 schema field changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Retry-safety key (IDEMPOTENCY)."New value: +"Retry key (IDEMPOTENCY)."
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the call is asynchronous and returns immediately with status='queued', requires polling via get_analysis, and typically takes 3-5 minutes. It also discloses a quality caveat (longer videos degrade scene-by-scene accuracy) and directs the agent to warn the user up front, none of which is derivable from readOnlyHint=false/openWorldHint=true.

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?

Front-loads the action, then the input, then the async contract, then the caveat, in four tight sentences with no filler. The IMPORTANT warning is long but carries information the agent must act on.

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

Completeness5/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 compensates by describing the immediate return (status='queued') and the completion signal to poll for, plus latency expectations. Nothing an agent needs to invoke and follow up on this tool is missing.

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 four parameters are already documented, and the description largely restates the url semantics (link or uploaded-media url). It adds nothing about start_seconds/end_seconds or idempotency_key, so 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?

States a specific verb and resource ("Start a scene-by-scene analysis of a video") and immediately contrasts the action with its sibling get_analysis, which handles polling. An agent can distinguish the two 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 Guidelines4/5

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

Gives clear routing: supply a link or the url from upload_media/confirm_upload, then poll get_analysis until status='succeeded'. There is no explicit when-not guidance (e.g., what to do if the video already has an analysis, or when to prefer edit_video/upscale_video instead), which keeps it from a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.