Skip to main content
Glama

Upload conversation file

upload_media_file

Imports an image or video attached to or generated in a ChatGPT conversation into the media library, using the file reference ChatGPT supplies. Returns a media ID for use in posts.

Input Schema

NameRequiredDescriptionDefault
fileYesThe conversation file. ChatGPT supplies a temporary download link.

Output Schema

NameRequiredDescriptionDefault
codeNoStable machine-readable error code. Present only for an error result.
dataNoA workspace media asset with temporary signed URLs.
errorsNoValidation messages keyed by input field.
issuesNoStructured validation issues.
messageNoSafe error summary. Present only for an error result.
retry_afterNoSeconds to wait before retrying a rate-limited request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare the write profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true), lowering the burden. The description adds useful context—it needs ChatGPT's file reference and it yields a media ID—but omits non-idempotence (re-importing the same reference likely duplicates the asset) and any note about the temporary nature of the download link or upload/polling latency.

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?

Two sentences, zero padding, front-loaded with what gets imported and constrained by scope. The return-value clause is compact and directly useful.

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?

Output schema exists, so the return value (media ID) needn't be elaborated further, and annotations carry the safety profile. The only real gap is behavioral nuance around repeated imports and the temporary-link lifetime, which matters given idempotentHint=false.

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, but the description adds genuine meaning by explaining that the file reference (file_id/download_url) originates from ChatGPT itself and points at a supplied temporary link. That provenance is actionable knowledge the schema alone does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (imports) and resource (image/video from a ChatGPT conversation into the media library), with the source constraint that distinguishes it from generic media uploads. It never names the close siblings upload_media or create_media_upload_ticket, so the distinction is implied by scope rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

"using the file reference ChatGPT supplies" implies the precondition for using this tool (you must have a ChatGPT conversation file reference), but there is no explicit when-to-use vs upload_media / open_media_uploader guidance or exclusion. Usage is inferable but not 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.

Resources