Skip to main content
Glama
Upload-Post

Upload-Post

Official

Create media upload

create_media_upload

Stages a media file for upload by returning a URL where the client can PUT file bytes. Use this only when the client can perform the HTTP PUT directly.

Instructions

Internal/app staging helper for clients that can directly PUT file bytes to the returned upload_url. Do NOT use this directly from the ChatGPT/claude.ai model for attached files: the model/server environment cannot read or upload ChatGPT attachment bytes. For ChatGPT attached video uploads, call open_upload_studio first; the Studio browser component will call this tool after the user selects the file. Use this directly only in MCP clients that truly hold the file bytes and can perform the HTTP PUT themselves. Staging media is deleted after 24 hours; scheduled posts are safe because upload_video copies the media into durable scheduler storage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceNoOptional source label, e.g. mcp_chatgpt or mcp_claude.
filenameYesOriginal filename, e.g. clip.mp4.
mediaTypeNoKind of media being uploaded.video
contentTypeYesMIME type, e.g. video/mp4.
contentLengthYesFile size in bytes.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultNo
Behavior5/5

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

Discloses that the tool is a staging helper, returns an upload URL, and that staging media is deleted after 24 hours unless copied into durable storage via upload_video. 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.

Conciseness4/5

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

Single paragraph, information-dense but could benefit from bullet points or clearer separation of usage guidance. Front-loads core purpose effectively.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers purpose, usage restrictions, alternatives, lifecycle (24-hour deletion, durable storage via upload_video), and return value (upload_url). Complete for a helper tool with output schema present.

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 has 100% coverage of parameters with descriptions. The description adds context about the upload URL and client responsibilities but does not significantly enhance parameter meanings beyond 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 it is an 'Internal/app staging helper' that returns an upload URL for direct PUT, differentiating it from siblings like open_upload_studio and upload_video.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly warns against using from ChatGPT/claude.ai model, provides alternative (open_upload_studio for attachments), and specifies appropriate use cases (MCP clients holding file bytes). Also notes 24-hour expiry and durable storage via upload_video.

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/Upload-Post/upload-post-mcp'

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