Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Add or remove storage area

tzcloud_declare_storage_area
DestructiveIdempotent

Declare a file-storage area before uploading, or remove an empty one with remove: true. Its application, whether files are keyed by end user, and version keeping cannot change. Different declarations are refused differing_redeclaration.

A matching manifest object_storage entry records its use but is optional. Its areas list declares them on submission, needing neither this tool nor mintArea. Otherwise declare with this tool or the Storage client's mintArea at backend start. Repeating identical values is safe and changes nothing.

Then upload with tzcloud_mint_upload_grant and its command. With no shell, get the page's address from tzcloud_read_status's dashboard, passing brief: false. Ask your user to sign in there and use Upload a file. To remove, pass only remove: true and name. Files in either environment cause area_not_empty. Otherwise removal frees the name.

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

Input Schema

NameRequiredDescriptionDefault
nameYesArea name: a letter or digit, then letters, digits, `-` or `_`, at most 64 characters. The `export-` and `deploy-` prefixes, from `tzcloud_request_export` and `tzcloud_deploy`, and `images-<application id>` are reserved (`area_name_reserved`). Stable for the area's life.
removeNoPass `true`, with `name` alone, to remove the area: it must hold no file in either environment, and its name is then free. Absent or `false`, the call declares.
applicationNoYour application id from `tzcloud_list_applications`, required to declare, else `application_required`. Fixed per area; use a new name for another application.
account_keyedNoRequired to declare: `true` or `false`; without it a declaration is refused 400 `invalid_request`. Leave it out with `remove: true`. The platform records the value and compares it on redeclaration. It does not yet separate files by end user, so your backend checks who may read each file.
version_keepingNoRequired to declare: whether earlier versions of a file are kept, `false` alone at this version. Without it a declaration is refused 400 `invalid_request`. Leave it out with `remove: true`.

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?

Beyond annotations declaring destructive and idempotent behavior, the description adds that `application`, `account_keyed`, and `version_keeping` cannot change, that differing redeclarations fail with `differing_redeclaration`, that identical redeclarations are safe, and that removal requires an empty area in both environments or fails with `area_not_empty`. This is substantial behavioral context beyond the structured annotations.

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 purpose is front-loaded, and the remaining sentences cover workflow, alternatives, immutability, and error cases. It is dense and longer than ideal, but most content is relevant for a tool with declaration and removal modes; tighter structuring would still help.

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?

There is no output schema, and the description is complete enough for correct invocation: it covers declaration versus removal, required immutability constraints, optional manifest integration, alternatives, upload next steps, and key failure conditions. An agent has the necessary context to call it correctly.

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 description coverage is 100%, so the schema already carries most parameter meaning. The description adds some cross-parameter constraints—notably that removal should pass only `name` and `remove: true`, and that key declaration fields are immutable—but much of the parameter detail repeats 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 description opens with a specific verb and resource: 'Declare a file-storage area before uploading, or remove an empty one with `remove: true`.' It distinguishes the declare and remove modes and names relevant alternatives such as `mintArea`, so an agent can tell what this tool is for 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?

It explicitly routes usage: declare with this tool, or optionally via a manifest `object_storage` entry or `mintArea` at backend start; then upload with `tzcloud_mint_upload_grant`. It also gives the removal condition and the no-shell fallback path through `tzcloud_read_status`, covering when to use this tool versus alternatives.

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