Skip to main content
Glama

Upload files

upload_files

Atomically upload up to 10 files as base64 data (at most 8 MiB in total), public HTTPS URLs, or files the user attached in ChatGPT (up to 95 MiB each), or create single-use upload links. Returns stable /files/FILE_ID URLs and Markdown for Page bodies or file properties; uploading alone does not change any Page. An upload link takes one file of up to 95 MiB within 30 minutes, sent as the multipart field file (curl -F file=@PATH UPLOAD_URL) or from a browser at its uploadPageUrl. That size limit is fixed. A link reserves its file ID, and the file exists once it is sent.

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": {
      "workspaceId": "<workspaceId>"
    },
    "name": "upload_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNo
workspaceIdYes
attachedFilesNoFiles the user attached in ChatGPT, which ChatGPT fills in; each up to 95 MiB. Results list them after files.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare non-readonly, non-destructive, non-idempotent and open-world; the description adds substantial behavior beyond that: atomicity, per-call file count and total size caps, single-use vs. fixed size limits, a 30-minute link window, that a link reserves a file ID and the file only exists once sent, and that nothing is mutated until used. That is exactly the operational context an agent needs before calling a write-ish upload.

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?

It is dense but front-loaded, leading with the action and input modes, then limits, then return values, then link mechanics. A couple of sentences are padded ('That size limit is fixed.') but nothing is off-topic for a tool with this many modes and limits.

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 an upload tool with an output schema, this is complete: modes, size/count limits, link lifecycle, and what is returned are all covered, and the 'uploading alone does not change any Page' note removes the main risk of misuse. No critical calling detail 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?

With only 33% schema description coverage, the description carries the load: it explains the three file variants (base64, URL, uploadLink) with their per-item limits, notes attachedFiles as user-attached ChatGPT files, and states result ordering ('Results list them after files'). The workspaceId parameter is left unexplained in both description and schema, which is the only gap.

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 (upload) plus every supported input mode: base64 data, public HTTPS URLs, ChatGPT-attached files, or single-use upload links. It also states the concrete caps (10 files, 8 MiB total, 95 MiB each), which makes it unmistakably distinct from read_files and the page-mutation siblings.

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 sentence 'uploading alone does not change any Page' plus 'Returns stable /files/FILE_ID URLs and Markdown for Page bodies or file properties' tells the agent when this tool is the right step (staging file content before composing a Page). It does not explicitly name an alternative or exclusion, so a 4 rather than a 5.

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