Skip to main content
Glama

Social media studio

Request Media Upload

request_media_upload

Create a link the user opens to upload image/video files from their own browser into the media library. Use it when you cannot send file bytes yourself: your environment cannot reach the presign_media_upload host, or the file is only in the user's chat or device. Show the user the options from the result in order, easiest first, each with its howTo: open uploadPageUrl (no sign-in, valid 1 hour, up to 20 files) or upload in the Social media studio media library; when your app has a one-time setting that lets presign_media_upload work, the result lists it first. After a link upload, call get_media_upload with the requestId.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "request_media_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderIdNoOptional destination media folder UUID

Output Schema

NameRequiredDescriptionDefault
optionsYesWays to add the files, easiest first.
maxFilesNo
nextStepNo
expiresAtYesThe link accepts uploads until this time (ISO 8601).
requestIdYes
storageHostNoThe host uploads go to; allowing it in Claude settings lets Claude upload by itself.
uploadPageUrlYesPage where the user uploads the files from any browser, without signing in.
mediaLibraryUrlYesThe media library in the Social media studio app.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare it is non-read-only and non-destructive; the description goes well beyond that by disclosing the 1-hour link validity, the 20-file cap, no sign-in requirement, that the result may list a one-time app setting that enables presign_media_upload, and the required post-upload step. These are operational details an agent could not derive from structured fields.

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?

Purpose and the use-condition are front-loaded, and every clause carries actionable detail. The middle instruction about ordering options and their howTo is dense and slightly run-on, but nothing is redundant padding.

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, yet the description still usefully explains how to present the returned options and what follow-up call to make, which is the key behavior for a hand-off tool. Nothing an agent needs to invoke it correctly is missing.

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?

The single optional folderId parameter is already fully documented in the schema (100% coverage), and the description adds no further meaning such as default destination behavior. Baseline 3 applies since the schema does the work here.

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 — creating a link the user opens to upload image/video files into the media library — and immediately distinguishes itself from presign_media_upload by explaining the link is for cases where the agent cannot send bytes itself. An agent can tell which upload path to take 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 Guidelines5/5

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

Gives explicit when-to-use conditions (environment cannot reach the presign_media_upload host, or the file exists only in the user's chat/device) and names the alternative tool. It also prescribes the follow-up call (get_media_upload with requestId) and the presentation order of the returned options, leaving little to inference.

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