Skip to main content
Glama

Start media upload

create_media_upload

Get a presigned URL to upload large media files directly to R2 from a browser. Use for advanced uploads; for standard files, use upload_media instead.

Instructions

Reserve a presigned R2 upload URL for a direct browser upload (used by the composer UI). For scripted uploads use upload_media instead. Use this when you need a presigned URL for a large direct upload (advanced; prefer upload_media for normal files).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeBytesYesFile size in bytes.
contentTypeYesFile MIME type, e.g. image/png or video/mp4.
Install Server

TDQS

A3.8/5.0
Behavior3/5

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

Annotations only carry readOnlyHint=false and destructiveHint=false, so the description does most of the work. It adds genuinely useful behavior context—this tool reserves a URL rather than transferring the file itself. But it omits consequential traits: presigned URL expiration, whether finalize_media_upload must follow, and what happens to an unused reservation.

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?

Two sentences with the core purpose front-loaded. The second sentence is redundant—'Use this when you need a presigned URL for a large direct upload' restates the reservation concept, and 'prefer upload_media for normal files' duplicates 'For scripted uploads use upload_media instead'—so it could be tightened without losing information.

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

Completeness3/5

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

With no output schema, the description leaves the return value undescribed, even though the presigned URL (and any reservation ID or expiration) is the entire point of the call. The multi-step flow is also incomplete: the finalize_media_upload sibling suggests a follow-up step that the agent is never told about. For a 2-param tool this is adequate but not complete.

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 100%: both sizeBytes and contentType have descriptive text in the input schema. The description adds no parameter-level meaning (no size limits, no allowed MIME types, no constraints), so the baseline 3 applies with the schema doing the heavy lifting.

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?

States a specific verb and resource: 'Reserve a presigned R2 upload URL' for a 'direct browser upload,' and anchors it to the composer UI. It explicitly distinguishes from the nearest sibling by adding 'For scripted uploads use upload_media instead,' so an agent can tell this tool apart without opening either 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?

Gives an explicit when-to-use ('Use this when you need a presigned URL for a large direct upload') and an explicit exclusion ('prefer upload_media for normal files'). However, it never addresses the multipart upload siblings (create_multipart_upload, finalize_media_upload), so an agent has no guidance on when the multipart flow should be chosen instead.

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

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/azeemkafridi/bulkpublish-api'

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