Skip to main content
Glama

media

media

List available image, video, and speech models; inspect files, extract frames, OCR, and transcribe; then compose MP4s or generate image, video, and speech assets.

Instructions

List image/video/speech models and local composition capabilities. For image-based videos use generateImage then composeVideo with the renderer and features reported by listModels. Composition returns an MP4 without a video generation model. generateVideo requires a configured generative video model. Generate speech only when listModels includes a speech model. Also inspect media, extract frames, OCR and transcription; unavailable providers return an explicit error.

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": {
      "action": "<action>",
      "reason": "<reason>"
    },
    "name": "media"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNo
countNo
voiceNo
actionYes
promptNo
reasonYes
scenesNo
maskRefNo
audioRefNo
durationNo
languageNo
modelRefNo
maxFramesNo
sourceRefNo
endSecondsNoextractFrames only: exclusive end of the source-video range, in seconds. Defaults to source duration.
sourceRefsNo
timestampsNo
aspectRatioNo
audioOffsetNo
audioVolumeNo
outputFormatNo
startSecondsNoextractFrames only: start of the source-video range, in seconds. Defaults to 0.
audioDurationNo
audioTrimStartNo
intervalSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.10

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose useful behavior: composition yields an MP4 without needing a video model, generation requires a configured model, and unavailable providers raise an explicit error. It says nothing about side effects (whether generated media is persisted, and where), cost, or limits, which matters for a tool that performs generation and composition.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four dense sentences with no filler, but the ordering is poor: it leads with the model-listing use case rather than the action taxonomy, and cramming nine actions plus routing rules into a semicolon chain gives the reader no per-action structure to scan.

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?

For a tool with nine actions, 25 parameters, no annotations and no output schema, the description is far too thin — it never maps parameters to actions, never describes what inspect/extractFrames/ocr/transcribe return, and never covers persistence of generated assets. The workflow hints are helpful but leave an agent guessing on most invocations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Twenty-five parameters at 8% schema coverage means the description must compensate, and it names no parameters at all — sourceRef, scenes and its sub-fields, maskRef, audioRef, aspectRatio, count, and voice are all unexplained. Only the two schema-documented range fields (startSeconds/endSeconds) carry any meaning, leaving most of the surface undocumented in both places.

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 description enumerates concrete operations (list models, inspect, extract frames, OCR, transcribe, compose, generate image/video/speech), so the media-processing domain and action breadth are clear. The opening sentence frames the tool primarily as a model/capability lister, which understates a nine-action multiplexer, but the body sentence recovers the full scope.

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 routing rules: image-based video must go generateImage then composeVideo using the renderer from listModels, generateVideo needs a configured generative model, and speech generation is conditional on listModels reporting a speech model. What's missing is any differentiation among the read-side actions (inspect vs extractFrames vs ocr vs transcribe) and any explicit when-not-to-use or sibling alternative.

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