Skip to main content
Glama

upload_media

Upload a jpg/png/webp/gif/mp4/mov to X/Twitter and get a media ID for posting; chunked transfer and video processing polling prevent timeouts on large files.

Instructions

Upload an image, GIF or video and get the media id for post_tweet.

Cookie auth, no API keys. Chunked (4 MiB) with processing polling for video, so large files take a while but do not time out. jpg/png/webp/gif/mp4/mov.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file_path": "<file_path>"
    },
    "name": "upload_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.6
    • removedInput schema / properties / file_path / description
      Removed value: -"Absolute path to the media file."
  2. First observedv1.0.3

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does well: it discloses cookie auth with no API keys, 4 MiB chunking, processing polling for video, and that large files are slow but will not time out. Remaining gaps are limits on size, what happens on unsupported formats, and whether the call blocks until the id is ready.

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?

Four short, dense sentences with the purpose and downstream consumer front-loaded, then auth, then mechanics, then formats. The trailing format list is a bare fragment but it is efficient rather than padded.

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?

An output schema exists so return values need not be explained, and the description covers auth model, chunking, polling latency, and valid formats for a one-parameter tool. The only shortfall is the file_path interpretation, which is minor against the overall coverage.

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 coverage is 0% for the single parameter, so the description must explain file_path. It contributes real information in listing accepted formats (jpg/png/webp/gif/mp4/mov) but never states whether file_path is a local filesystem path, an absolute path, or a URL — the most decision-relevant detail for the caller.

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?

Specific verb and resource ('Upload an image, GIF or video') plus an explicit output ('get the media id') and the sibling that consumes it ('for post_tweet'). An agent can distinguish this from download_media or get_user_media without opening any schema.

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?

Implies a clear workflow position: call this before post_tweet to obtain the media id. It does not spell out an explicit when-not or failure escape route, but the ordering guidance is unambiguous and no competing sibling is named.

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

Deploy Server

Other Tools