Skip to main content
Glama

Sell Ltd Marketplace

create_media_upload

Idempotent

Get a signed upload URL. Upload bytes directly to that URL, then call complete_media_upload. Files remain private until permitted by listing visibility. Requires connected account authorization with media:write.

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": {
      "listingId": "<listingId>",
      "kind": "<kind>",
      "name": "<name>",
      "mime": "<mime>",
      "size": "<size>",
      "visibility": "<visibility>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "create_media_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
mimeYes
nameYes
sizeYes
listingIdYes
visibilityYes
idempotencyKeyYesUnique operation key. Reuse this value when retrying the identical request.

Output Schema

NameRequiredDescriptionDefault
idYes
pathYes
tokenYes
signedUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true, openWorldHint=true), it adds the meaningful facts that bytes go to an external signed URL and that files stay private until listing visibility permits them. The auth requirement is also disclosed. It does not mention URL expiry or retry behavior, but the important behavioral traits are covered.

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?

Four short sentences, front-loaded with the core action, then the sequence, then the privacy behavior, then the auth prerequisite. No redundant restatement of the name or filler.

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

Completeness4/5

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

Return values need not be described because an output schema exists, and the end-to-end flow plus auth requirement are covered. The remaining gap is the thin explanation of the seven required parameters, which the low-coverage schema does not fill in.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 14% — just idempotencyKey — so the description carries most of the burden for six undocumented parameters. It gives indirect meaning to 'visibility' via the privacy statement but says nothing about listingId, kind, mime, name, or size constraints, leaving required inputs unexplained.

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 concrete verb and resource ('Get a signed upload URL') and immediately situates it in the two-step upload flow, naming complete_media_upload as the follow-up. An agent can distinguish this from the sibling without inspecting 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?

The description spells out the operating sequence (get URL → upload bytes to it → call complete_media_upload) and the prerequisite of a connected account with media:write. It stops short of stating when-not to use it or what happens if the direct upload fails, but the sequencing guidance is explicit.

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