Skip to main content
Glama

upload_material

Upload images or videos to OSS. Returns signed URL, duration, and timeline hints; videos are transcoded to H.264 MP4 for playback.

Instructions

上传图片或视频到 OSS,返回 ossKey、signedUrl(默认可为公网直链,字段名不变)、时长与「时间轴/原声」提示。视频在后端会转码为 H.264 MP4(便于录屏解码),写入 HTML 时 src 用返回的 URL;不写入 FFmpeg overlay。视频建议 5–15 秒;时长硬上限 10 分钟,单文件上限见 get_material_guidelines。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes项目 ID
media_fileYes本地素材文件绝对或相对路径
Behavior4/5

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

Discloses video transcoding to H.264 MP4, return fields, and a specific instruction (do not write FFmpeg overlay). With no annotations, it covers key behavioral traits adequately.

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?

Single paragraph that front-loads purpose and returns, then provides behavioral details. Concise but could be better structured with bullet points.

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 no output schema, the description lists return fields and usage tips. It references a sibling tool for additional constraints. Moderately complete, missing error handling but sufficient for common use.

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 already describes both parameters (100% coverage). The description does not add significant meaning beyond the schema; it only provides general context about the upload process.

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 uploads images or videos to OSS and lists the return values. It distinguishes from sibling 'upload_html' by specifying different resource types.

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?

Provides recommendations (video length 5-15s, hard cap 10min) and directs to get_material_guidelines for size limits. Does not explicitly specify when not to use this tool, but context is clear.

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/trtian/flash-cast-mcp'

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