Skip to main content
Glama

capture_frame

Extract a single keyframe image from a local video file or ingested video key at a specified timestamp, with an optional JPG or PNG output path.

Instructions

Extract a single keyframe image from a local video file or ingested local video key at seconds.

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": {
      "path_or_key": "<path_or_key>",
      "seconds": "<seconds>"
    },
    "name": "capture_frame"
  }
}

Input Schema

NameRequiredDescriptionDefault
secondsYes
out_pathNooptional output image path (.jpg/.png)
path_or_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.2/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it leaves out key facts: whether an omitted out_path writes to a temp location or returns image bytes, what is returned at all, and what happens when seconds exceeds the video duration. For a no-annotation, no-output-schema tool this is a substantial gap.

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?

A single front-loaded sentence with no filler; the source types and the timestamp parameter come in the order an agent needs them.

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

Completeness2/5

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

With no annotations, no output schema, and only one of three parameters documented in the schema, the description should say what the call produces and where the image lands when out_path is omitted. Those omissions matter for a tool whose entire purpose is producing an artifact.

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 33%, so the description must compensate, and it partly does by clarifying that path_or_key accepts either a local video file path or an ingested local video key, and that seconds is a timestamp. It adds nothing about out_path behavior beyond the schema's own '.jpg/.png' note and nothing about defaults or validation.

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?

Uses a specific verb ('Extract') with a concrete resource ('single keyframe image') and names both accepted source types, so the operation is unambiguous. It does not differentiate itself from any sibling such as ask_video or summarize_video, which keeps it below a 5.

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 is only implied: the agent can infer this is the tool for pulling one frame at a timestamp rather than analyzing the whole video. There is no explicit when-to-use statement, no exclusions, and no named alternative for video-level tasks.

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