Skip to main content
Glama
xtawa

mcp_file_manager

by xtawa

上传文件

upload_file

Upload a file from local path, URL, text, or base64 content, receive a shareable download link and identifier code. Files are kept for 24 hours by default.

Instructions

上传一个文件并获得标识码与下载链接。 content / text / path / url 四个来源参数只能传其中一个:

  • content:base64 内容(二进制文件用这个)

  • text:纯文本内容

  • path:服务器本地文件路径

  • url:远程文件地址,由服务端抓取 默认保留 24 小时,到期自动删除;如需其他时长用 ttlHours。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNohttp/https 远程文件地址
nameNo文件名(建议带扩展名,例如 report.pdf)
pathNo服务器可读的本地文件绝对路径
tagsNo标签,方便分类检索
textNo直接上传的纯文本内容
contentNo文件内容的 base64 编码,允许带 data URL 前缀
mimeTypeNo内容类型,缺省根据扩展名推断
ttlHoursNo保留时长(小时),默认 24,上限 720
uploadedByNo上传者标识,例如用户名或 agent 名称
descriptionNo备注,方便后续用 list_files 搜索
Behavior4/5

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

The annotations already signal readOnly=false and destructive=false, and the description adds non-obvious behaviors: default 24-hour retention with auto-deletion, base64 for binary content, server-side URL fetching, and source mutual exclusivity. No contradiction with annotations.

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?

The description is compact and front-loaded with the main purpose, followed by a practical bulleted list. Every sentence earns its place by conveying non-obvious constraints or defaults.

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 10-parameter upload tool with no output schema, the description covers core behavior, source alternatives, and retention policy. It could mention response format or size limits, but the provided guidance is sufficient for selecting and invoking the tool correctly.

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%, so the baseline is 3, but the description adds critical semantics beyond the schema: mutual exclusivity among source parameters, binary vs. text handling, and the default/range of ttlHours. Other params like tags and uploadedBy rely on the schema.

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 a file and returns an identification code and download link, with a specific verb and resource. It is distinct from sibling tools like download_file, delete_file, and list_files.

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 explicitly explains that only one of content/text/path/url may be used and describes the appropriate scenario for each. It also gives the default retention and how to override via ttlHours, though it does not explicitly contrast with sibling upload link creation.

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/xtawa/mcp_file_manager'

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