Skip to main content
Glama

上传文件获取可用 URL

upload_file

Upload local files, remote URLs, or base64 data to AihubMax and receive a direct URL for use in image-to-video and other generation tasks.

Instructions

把本地文件或远程 URL 转存为 AihubMax 可直接引用的 URL(用于 image-to-video 等需要 image_urls/audio_url 的场景)。三选一:path(本地文件)、url(远程转存)、base64。返回的 url 可填入生成参数。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo远程文件 URL(转存到 AihubMax)
pathNo本地文件绝对路径
base64NoBase64 或 data URL 文件内容
file_nameNo文件名(含扩展名),影响 MIME 推断
Behavior2/5

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

No annotations provided. Description does not disclose behavioral traits such as file size limits, authentication requirements, rate limits, or what happens with invalid files. It only states the input options and output, leaving significant gaps.

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?

Extremely concise: two sentences that immediately convey purpose, usage context, and input options. Every sentence is meaningful and front-loaded.

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?

For a simple file upload tool with no required parameters, the description covers key aspects: purpose, input methods, and target usage. Lacks return structure details but still sufficient given low complexity.

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 100%. Description adds value by explaining the mutual exclusivity of path, url, base64 and that file_name influences MIME inference, which goes beyond schema descriptions.

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?

Description clearly states the tool's verb (upload/转存), resource (local file or remote URL), and output (AihubMax URL). It distinguishes from sibling tools like download_asset by specifying the direction and use in image/video generation.

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?

Description specifies when to use: for scenarios needing image_urls/audio_url in AihubMax. It lists three input methods (path, url, base64) but does not explicitly state when not to use or mention alternatives. Still clear context.

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