Skip to main content
Glama

Get a media upload URL

content_media_upload

[writes flayr data · write scope] Step 1 of attaching a LOCAL file (video, image or audio) to a draft. Returns a single-use, short-lived uploadUrl. Step 2: POST the raw file bytes to it with the file's Content-Type, e.g. curl -X POST -H "Content-Type: video/mp4" --data-binary @clip.mp4 "<uploadUrl>" — the JSON response has a storageId. Step 3: pass it as videoStorageId or imageStorageId, or collect 2-20 ids into imageStorageIds for a carousel on content_create or content_update. content_media_get returns the public URL without a draft. For music-library audio, pass storageId to video_music_track_create instead. For media already on the web, skip this and pass videoUrl / imageUrl instead. Returns 413 when the account's storage is full. Was upload_media (still callable for one release). (Wraps POST /api/v2/media/upload-url.)

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": "content_media_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only mark it as a non-read-only, non-destructive, non-idempotent write. The description goes well beyond that: write scope, single-use short-lived URL, the raw-bytes POST requirement with Content-Type, the 413 storage-full failure, and the storageId handoff into content_create/content_update. That is exactly the behavioral context 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but well ordered: purpose and return value first, then the three-step workflow, then the alternatives and the error case. The scope prefix and the legacy-alias note are slight overhead, but nearly every sentence carries operational information.

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 no output schema and no parameters, the description compensates fully — it explains the returned uploadUrl, the storageId produced by the follow-up POST, the failure mode (413), and how the result feeds sibling tools. An agent has everything needed to execute the full flow.

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?

The tool takes zero parameters, so the baseline is 4. The description spends its detail on the downstream identifiers (videoStorageId, imageStorageId, imageStorageIds 2-20 for carousels) rather than on inputs, which is the correct place to spend it for a parameterless tool.

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 ('Step 1 of attaching a LOCAL file ... to a draft') and immediately clarifies what is returned ('a single-use, short-lived uploadUrl'). It also explicitly distinguishes itself from content_media_get (public URL without a draft) and from the URL-based path for already-hosted media.

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 (local file needing attachment to a draft), when-not-to-use (media already on the web → pass videoUrl/imageUrl; music-library audio → video_music_track_create), and names the sibling to use for the read-only case. It even documents the fallback alias upload_media.

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