Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Create file upload link

tzcloud_mint_upload_grant

Create a single-use upload grant for one file or deploy ZIP in an application's storage area, without a long-lived token. It expires after five minutes by default. Declare the area bound to this application first. For a ZIP, upload then call tzcloud_deploy with artifact: { area, name, hash }. The file counts as stored data. Over quota, upload refuses usage_over_quota.

The grant appears once. Run command_npx (command_npx_windows on Windows), or installed command or command_windows, once as returned. If a command cannot run, including missing or refused npx or an incompatible file name, use commands.curl or commands.powershell. They are always returned for POSIX shells and Windows PowerShell respectively. Each sends the grant as bearer with no other header.

With no shell, get the page's address from tzcloud_read_status's dashboard, passing brief: false. Ask your user to open it after signing in and use Upload a file. Do not call this tool for that upload.

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": {
      "application": "<application>",
      "area": "<area>",
      "name": "<name>"
    },
    "name": "tzcloud_mint_upload_grant"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaYesTarget area declared for this application with `tzcloud_declare_storage_area`; `undeclared_area` if absent, `area_scope_refused` if bound elsewhere or the platform's export area.
nameYesThe file's name within the area, verbatim, slashes included, and the one file the grant reaches; a name a write refuses, one holding a backslash or a segment that ends with a dot, is refused. A write replaces that stored file irreversibly.
identityNoThe acting identity the write records, fixed by the grant, so the upload sends no identity header.
local_pathNoThe file on your machine to upload, absolute or relative to the folder the line runs in; absent, the file named by the last segment of `name`, in that folder. A path the pattern refuses, `~`, or one opening with `~/` or `~\` is refused `invalid_request`.
applicationYesThe id of the application the upload is for, from `tzcloud_list_applications`. The area must be bound to it.
environmentNoThe environment whose partition of the area receives the file; absent, the application's deploy target, the partition its deploy reads an artifact from. A stored entry in `tzcloud_deploy_files` reads its deploy target's partition.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false); the description adds the operational facts that actually matter: the grant is single-use, expires in five minutes by default, is returned exactly once, is sent as a bearer token with no other header, and refuses with `usage_over_quota` when over quota. The 'appears once' constraint is critical and appears nowhere in the structured fields.

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 front-loaded — purpose, then workflow, then command execution, then the no-shell fallback — and each paragraph addresses a distinct concern. It is long, and the closing 'Do not call this tool for that upload' reads slightly ambiguously after a paragraph that has just described the manual path, but no sentence is pure filler.

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?

With six parameters, no output schema, and a multi-step downstream flow, the description carries the burden well: it explains what is returned (the grant plus the pre-built commands), how to use it, what the error codes mean, and what to do when no shell is available. Nothing an agent needs in order to call this correctly 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?

Schema coverage is 100%, so the baseline is 3, but the description genuinely adds workflow meaning: `area` must already be declared via `tzcloud_declare_storage_area`, `local_path` is consumed by the emitted command line (defaulting to the last segment of `name`), and `environment` selects the deploy target's partition. Only the `identity` parameter is 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?

The opening sentence gives a specific verb and resource — 'Create a single-use upload grant for one file or deploy ZIP in an application's storage area' — and immediately scopes it with 'without a long-lived token,' which separates it from the token-minting siblings. It also states the downstream consumer ('call `tzcloud_deploy` with `artifact: { area, name, hash }`'), so an agent knows exactly where this fits in the workflow.

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?

Prerequisites are explicit ('Declare the area bound to this application first'), the happy path is prescribed (run the returned command once via `command_npx`/`command`), two fallbacks are given with their exact trigger conditions (missing/refused npx, incompatible file name), and a hard exclusion is stated ('Do not call this tool for that upload'). This is close to a complete decision tree for when and how to invoke 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