Skip to main content
Glama

Upload files

upload

Create a prepared version of a project. The live publication stays unchanged. Takes file content only: no local paths and no ZIP archives. Send a large site across several calls with complete set to false.

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": {
      "project": "<project>"
    },
    "name": "upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoRequired on the completing call if the project has a version. replace makes the sent files the whole site; patch adds or replaces the sent files and keeps the others of the online version.
filesNoUse text for text files and base64 for binary files.
projectYesThe project key, such as client-report.
completeNoSet false to keep the upload open for more files in later calls.
entrypointNoThe file served at the site's root, set on the completing call. Defaults to the root index.html or the only file; patch keeps the current one.
deletePathsNoPaths to remove. Only with patch, on the completing call.
uploadContinuationIdNoFrom an earlier call with complete false. Continues that upload.

Output Schema

NameRequiredDescriptionDefault
stateYes
versionYesnull while the upload is open.
studioLinkYesOpens the project in Studio.
previewLinkYesWhere the user can check and publish the version. null while the upload is open.
uploadContinuationIdNoPresent while the upload is open.

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?

Annotations declare the safety profile (not read-only, non-destructive, non-idempotent), and the description adds real behavioral context beyond them: the live publication is untouched, only inline content is accepted (no local paths, no ZIPs), and large uploads are resumable across calls. It does not state what happens to files from a previous prepared version when a new upload starts, which is the main remaining gap.

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, each carrying distinct information: purpose, non-effect on live site, content constraints, and batching workflow. Purpose is front-loaded and nothing is repeated from the schema verbatim.

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 an output schema, full parameter coverage, and annotations present, the definition covers the non-obvious parts an agent needs: staging semantics, inline-content constraint, and multi-call continuation. It could still note that mode is required on the completing call for versioned projects, though the schema documents that.

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; the description exceeds it by clarifying the files parameter (inline text/base64 content only, no paths or archives) and by explaining the complete=false / continuation workflow that ties complete and uploadContinuationId together. It leaves mode and deletePaths to the schema.

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 concrete verb+resource and, crucially, clarifies that the result is a prepared/staged version rather than a live publication — which is what separates it from the publish sibling. The wording 'Create a prepared version of a project' is slightly indirect for a tool named 'upload', but the following sentence removes the ambiguity.

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?

Gives clear usage context: use this to stage content without affecting the live site, and split large sites across multiple calls with complete=false. It does not explicitly name publish as the follow-up step, but 'the live publication stays unchanged' strongly implies the routing decision.

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.