Skip to main content
Glama

Upload file

upload_file

import a user-provided file into OTOY Studio storage server-side. in ChatGPT, pass the attached/pasted file as the "file" parameter. other MCP clients pass a public https url as "url". returns a download_url usable in generation tools (and a permanent file_id for authenticated sessions). no manual PUT needed - prefer this over request_upload_url when the file is already reachable by 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": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNodirect https url of the file (for non-chatgpt hosts)
fileNochatgpt file object (populated automatically when a user attaches a file)
filenameNooverride filename (used for type inference)
content_typeNooverride mime type (e.g. image/png)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare non-read-only, open-world, non-destructive, so the description correctly focuses on consequences: the import happens server-side, no manual PUT is required, and returns include a download_url usable in generation tools plus a permanent file_id for authenticated sessions. It stops short of size limits, auth requirements, or failure behavior, keeping it at 4 rather than 5.

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?

Front-loads the action, then the per-host parameter routing, then the return value and the sibling comparison. Dense but every clause carries information; the final sentence packs two ideas (no manual PUT, prefer over request_upload_url) that could be split for readability.

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?

With no output schema, the description correctly explains the return values (download_url, file_id and their scoping to authenticated sessions), and covers both parent parameters and the nested ChatGPT file object context. Missing only operational bounds such as file size or supported mime types for a tool with 100% schema coverage.

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 real routing meaning the schema does not: which parameter to use depends on the host (ChatGPT file object vs. public https url for other clients). The filename/content_type overrides are left entirely to the schema.

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 ('import a user-provided file into OTOY Studio storage server-side') and explicitly distinguishes itself from a sibling by saying to prefer it over request_upload_url when the file is already reachable by url. An agent can pick between the two upload paths without opening the 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 concrete per-client guidance: ChatGPT hosts pass the attached/pasted file as "file", other MCP clients pass a public https url as "url". It also names the alternative (request_upload_url) and the condition that selects this tool over it.

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