Skip to main content
Glama

Upload media

import_media
Read-onlyIdempotent

Open an upload card so the user can choose images, videos, audio, fonts or ZIP archives from their device. After they upload, the asset IDs and URLs arrive in their next message and can be used with the generation tools. For a voice-cloning sample pass purpose "voice_clone": the card takes one audio recording, stores it privately and returns audio_asset_id for clone_voice, not a public URL. In ChatGPT, use import_chatgpt_media instead when the file is already attached to the conversation.

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

Input Schema

NameRequiredDescriptionDefault
contextNoWhat the files are for; shown on the card.
purposeNovoice_clone: one private voice sample; the card returns audio_asset_id for clone_voice instead of a public URL.
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Adds behavior the annotations do not cover: the call is asynchronous and the resulting asset IDs/URLs arrive in the user's next message, and voice_clone samples are stored privately and yield audio_asset_id instead of a public URL. Annotations only declare readOnly/idempotent/non-destructive, which is consistent with a card-opening operation. Minor gaps remain (no file size or format limits, no explicit statement that nothing is uploaded until the user acts).

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 sentences, front-loaded with the primary action, then the async result, then the special-case mode, then the alternative tool. No filler sentences and no repetition of the schema.

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?

There is no output schema, and the description compensates by explaining how results reach the agent (next message) and what differs in the voice_clone path. For a zero-required-parameter, three-parameter tool with full annotation coverage, nothing essential to correct invocation is missing.

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 baseline is 3, but the description goes beyond the schema by explaining what purpose="voice_clone" actually produces (a single private recording, audio_asset_id for clone_voice) and by framing context as what appears on the card. That adds practical meaning, though skills_used receives only schema-level documentation.

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 ("Open an upload card") plus the accepted media types and the special voice_clone mode. It also names the sibling it is not (import_chatgpt_media) with the exact condition that selects that sibling, so an agent can distinguish them without opening a 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 routing: default to this card, use purpose "voice_clone" for a voice sample destined for clone_voice, and switch to import_chatgpt_media in ChatGPT when the file is already attached to the conversation. When-not-to-use is stated, not implied.

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.