Skip to main content
Glama

Upload or download a file

CreateTransfer
Destructive

A one-request URL moving one file straight between you and the machine: run command in a shell, or send http_method to url yourself, before expire_time.

  • upload_archive: the project's directory, packed, for CreateProject's or DeployProject's upload_id once the PUT answered 200 with what it holds.

  • upload_file: one file into a container or volume, replacing any file there (replaces), creating parents.

  • download: a file, or a directory as a .tar (file_name).

  • download_database: a database project's dump, made as it downloads: Postgres's for pg_restore (roles are not in it), MariaDB's SQL of one database for its console, mariadb <database> < file (users are not in it), Valkey's .rdb. One at a time per database. Plain-text answers: 404 used or expired URL, 409 FAILED_PRECONDITION, 413 archive over 2 GiB, 422 unsafe archive (a reason per line), 503 UNAVAILABLE, 507 disk full. A failed transfer keeps nothing: get a new URL. Errors as ReadPath; FAILED_PRECONDITION also = downloading neither a file nor a directory, uploading onto a non-file, a mount point, /proc or /sys, the hostname not yet certified, or a dump of a project that is no database or is not running, or of a MariaDB that refuses the machine's sign-in (the message says how to let it in again). NOT_FOUND also = a Postgres or MariaDB database the server lacks (the message lists its databases). RESOURCE_EXHAUSTED = disk full, or too many transfers. UNAVAILABLE = Postgres or MariaDB runs but does not answer yet: try again shortly.

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

Input Schema

NameRequiredDescriptionDefault
downloadNoA directory comes as a .tar of what ReadPath shows; symlinks kept. At most one of service, volume. Where the path is. Neither = the project's deployed files.
workspaceNoThe workspace: its id or name (ListWorkspaces). Omit when the account has one.
upload_fileNoAt most one of service, volume.
upload_archiveNoThe project's directory as a zip, tar or tar.gz (told by content), for CreateProject's or DeployProject's upload_id: {} is enough. A single top folder is unwrapped; .git, __MACOSX, .DS_Store, ._* are dropped. Leave out what the build makes again (node_modules, .venv, target).
download_databaseNoA database project's dump: Postgres's in its custom format, MariaDB's as SQL, Valkey's .rdb.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / workspace
      Added value: +{
      +  "description": "The workspace: its id or name (ListWorkspaces). Omit when the account has one.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / download_database / description
      Previous value: -"A database project's dump: Postgres's in its custom format, Valkey's .rdb."New value: +"A database project's dump: Postgres's in its custom format, MariaDB's as SQL, Valkey's .rdb."
    • changedInput schema / properties / download_database / properties / database / description
      Previous value: -"Postgres: the database to dump. Empty = \"app\", the apps'."New value: +"Postgres, MariaDB: the database to dump. Empty = \"app\", the apps'."
  3. Changed2 schema fields changed
    • changedInput schema / description
      Previous value: -"At most one of upload_archive, upload_file, download."New value: +"At most one of upload_archive, upload_file, download, download_database."
    • addedInput schema / properties / download_database
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "A database project's dump: Postgres's in its custom format, Valkey's .rdb.",
      +  "properties": {
      +    "database": {
      +      "description": "Postgres: the database to dump. Empty = \"app\", the apps'.",
      +      "type": "string"
      +    },
      +    "project_id": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructive/openWorld/non-idempotent, but the description goes well beyond them: upload_file replaces existing files and creates parents, a failed transfer keeps nothing and requires a fresh URL, download_database is one-at-a-time per database, and dumps omit Postgres roles and MariaDB users. It also spells out the HTTP error taxonomy (404/409/413/422/503/507) and what each failure implies, which is exactly the kind of behavior annotations cannot convey.

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?

The core concept and mode list are front-loaded and every clause carries real content; the error-handling paragraph is dense but earns its space for a multi-mode tool. Slight deductions for the wall-of-text error paragraph and a stray trailing quote mark that muddies the end.

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?

For a four-mode, nested-object tool with no output schema, the description covers mode selection, failure semantics, replacement behavior and error codes thoroughly. It never states the shape of a successful response — evidently a URL plus expire_time — leaving the caller to infer how to use the result, which is the main completeness gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents every nested field, and the description largely restates the same mode fields. It does add a few constraints, such as '{}' being sufficient for upload_archive and download_database's serialization limit, but it also references a download 'file_name' that does not exist in the download object, creating minor ambiguity. Baseline 3 is appropriate.

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 ('a one-request URL moving one file straight between you and the machine') and then enumerates the four operational modes — upload_archive, upload_file, download, download_database — each with a specific effect. An agent can tell which mode to pick without opening the schema, and the upload_archive hand-off to CreateProject/DeployProject is named explicitly.

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 per-mode conditions and ties upload_archive to CreateProject's or DeployProject's upload_id, and upload_file/download to containers, volumes and projects. It stops short of explicit exclusions or 'use X instead when…' rules against siblings like ReadPath, so it is strong context rather than full routing guidance.

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