Skip to main content
Glama

Social media studio

Presign Media Upload

presign_media_upload

Reserve image/video library files and return presigned PUT URLs. Upload each file's bytes to its uploadUrl with HTTP PUT and a Content-Type header equal to its declared mimetype, within 1 hour. A presigned URL alone is not a completed upload; get_media_file with verifyUpload=true reports whether the bytes are stored. If a PUT fails (for example, your environment cannot reach the upload host), delete the reserved files with delete_media, then call request_media_upload and show the user the ways it returns to add the files, easiest first. Reserved files whose bytes never arrive are removed after 6 hours.

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": {
      "files": "<files>"
    },
    "name": "presign_media_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesImage or video files to upload
folderIdNoOptional destination media folder UUID

Output Schema

NameRequiredDescriptionDefault
uploadsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only say this is a non-read-only, non-destructive, non-open-world mutation. The description goes well beyond that: 1-hour URL expiry, 6-hour cleanup of un-uploaded reservations, the fact that a presigned URL is not a completed upload, and what to do if the upload host is unreachable. That is exactly the operational context an agent needs and that annotations cannot supply.

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?

Purpose is front-loaded in the first sentence, followed by mechanics, verification, failure recovery, and expiry in a logical order. Though longer than average, every sentence carries operational information with no filler or repetition.

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?

Given the tool reserves files and hands back URLs, the description covers the full lifecycle: what to do with the URL, how to confirm success, what to do on failure, and when reservations expire. With an output schema present, return-value details are rightly left to the schema.

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. The description adds real meaning by tying the declared mimetype to the required Content-Type header on the PUT, and by implying the uploadUrl return value's role, which is not evident from the input schema alone. It does not separately explain folderId, but the schema already does.

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 opens with a specific verb and resource ('Reserve image/video library files and return presigned PUT URLs') and immediately frames the two-step nature of the operation, which separates it from siblings like request_media_upload or get_media_file. An agent can tell exactly what this tool produces without inspecting the schema.

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?

It states the required follow-up action (HTTP PUT of bytes with matching Content-Type within 1 hour), the verification path (get_media_file with verifyUpload=true), and an explicit failure path (delete_media then request_media_upload, showing the user the returned options easiest first). Alternatives and conditions are named rather than inferred.

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