Skip to main content
Glama

媒体理解(图/视频/音频 → 文本)

analyze_media

Analyze images, videos, or audio using multimodal LLMs to generate text descriptions, transcriptions, or insights. Overcomes limitations of text-only models for media understanding.

Instructions

用多模态 LLM 分析媒体内容并输出文本(宿主模型自身无法看视频/听音频,此为能力补充)。三选一提供 image_urls / video_urls / audio_url(协议自动判别)。异步提交:默认等待 60s,短任务直接返回 text;长任务(视频/思考模型)超时返回 task_id,用 get_task / wait_for_task 取回。模型来自 llm-router 注册表(与生成类不同),用支持对应能力的模型(如 gemini-3.1-pro-preview 支持 vision/video/audio);model 无效时错误会列出可用模型。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesllm-router 模型 id,如 gemini-3.1-pro-preview、claude-sonnet-4-6
promptYes对媒体的分析指令,如“描述这段视频”“转写这段音频”
audio_urlNo单个音频 URL
image_urlsNo图片 URL 数组(1–10 张)
max_tokensNo
video_urlsNo视频 URL 数组(1–10 个)
temperatureNo
wait_secondsNo最长等待秒数,默认 60,设 0 立即返回 task_id
system_promptNo系统指令
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses asynchronous submission, default 60s wait, direct return vs task_id for long tasks, media type auto-detection, and model routing. However, it does not mention rate limits or detailed error conditions beyond invalid model.

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?

The description is a single paragraph that front-loads the core purpose and then provides key details. It is concise and logically ordered, though could benefit from slight structuring for readability.

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?

Given the complexity (9 params, no output schema), the description covers purpose, input types, async behavior, model source, and error handling. It compensates for missing output schema by describing return types. Minor gaps like rate limits and full error scenarios are absent.

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 78%, so baseline is 3. The description adds value by explaining the async logic (wait_seconds, task_id return) and the model registry distinction, which goes beyond what the schema provides. It does not repeat parameter constraints but contextualizes their use.

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?

The description clearly states the tool's purpose: analyzing media (image/video/audio) using multimodal LLMs to output text, and explicitly distinguishes it from the host model's limitations. It differentiates from sibling tools like ask_model (text-only) and generate_* tools.

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?

The description explains when to use the tool (for media analysis), describes the asynchronous behavior and timeout handling, and notes that models come from a separate registry from generation tools. While it doesn't explicitly mention when not to use, it provides clear contextual guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cookaihq/aihub-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server