Skip to main content
Glama

Start a media upload

media_upload

Reserve an id and get a short-lived URL to PUT the file to. The bytes go straight to storage, not through this API. Call media_confirm with the same id once the PUT succeeds — nothing is recorded until then.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYesWhat the file is.
mime_typeYesThe exact Content-Type the PUT will send, e.g. video/mp4.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
urlYes
expires_in_secondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations indicate a non-read-only, non-idempotent operation, and the description enriches this by explaining that bytes go directly to storage, the URL is short-lived, and nothing is recorded until confirmation. This adds meaningful behavioral context beyond the 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?

Three concise sentences: purpose, storage behavior, and next step. No filler, information is front-loaded, and every sentence earns its place.

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?

With an output schema present, the description need not explain return values. It covers the essential flow, the need for confirmation, and the direct-to-storage detail, making it complete for this simple two-parameter tool.

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 description coverage is 100%, so parameters are fully documented in the schema (kind and mime_type with examples). The description itself does not add parameter-specific details, but the baseline of 3 is appropriate given high schema coverage.

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 specific action: reserve an id and get a short-lived URL for a PUT. It distinguishes the tool from siblings by describing the two-step flow and explicitly mentioning media_confirm, making its role in the upload pipeline unambiguous.

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 provides clear context: this is the initiation step, and it instructs the agent to call media_confirm after the PUT succeeds. It does not explicitly list when not to use it or compare to media_update, but the workflow guidance is sufficient for a typical upload scenario.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources