Skip to main content
Glama

Get a link to upload a file

media_upload_link

A one-time link that takes one picture or video (PNG, JPEG, WebP or MP4), for a file you made or hold where sending it whole in media_upload is not practical, such as a picture drawn in your own sandbox. Send the bytes to url with PUT and its Content-Type, no sign-in needed; the answer is its media id. Where you cannot reach the web, give the user the file and the link: they open it, pick the file and press Upload; then media_list has it under the name you gave the link. One file per link; it ends after an hour. Nothing is posted. Make a picture a JPEG: every network that takes pictures accepts JPEG, while Instagram refuses PNG and WebP (capabilities lists each network’s mediaTypes).

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

Input Schema

NameRequiredDescriptionDefault
altNoWhat the picture shows, for people who cannot see it. Kept with the file.
nameNoA file name for the user’s own list. Taken from the file when left out.
brandIdNoThe brand this is for, by its id from brands_list. Needed when the login has more than one brand; with one brand it can be left out.

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?

Beyond the annotations (which only mark it non-read-only, closed-world, non-destructive), the description discloses the mechanics that actually matter: the link is single-use, expires after an hour, needs no sign-in, expects a PUT with a matching Content-Type, returns a media id, and posts nothing. That 'nothing is posted' line reinforces the non-destructive hint rather than contradicting it.

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?

The core action, transport, and expiry are front-loaded and every sentence carries information. It is dense to the point of being a run-on chain of clauses, and the closing Instagram/PNG aside is a tangent, though a genuinely useful one.

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?

For a three-optional-parameter tool with no output schema, the description covers everything an agent needs: auth requirements, transport and content type, return value, expiry, file-count limit, format guidance, and the human handoff path. There is no gap that would cause a failed or malformed call.

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 earns above that by explaining the lifecycle consequence of 'name' — the file later appears in media_list under the name given to the link — and by tying the accepted formats to the upload payload. The 'alt' and 'brandId' parameters are not elaborated beyond the schema, so it stops short of a 5.

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 gives a specific verb and resource — a one-time link that accepts exactly one picture or video — and immediately distinguishes it from the sibling media_upload by scoping it to cases where sending the file whole is impractical. An agent can tell the two tools 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 Guidelines5/5

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

It states the selection condition against the named alternative ('where sending it whole in media_upload is not practical') and adds an explicit fallback path for when the agent cannot reach the web: hand the user the file plus the link and have them press Upload. Both the when and the when-not are spelled out.

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.