Skip to main content
Glama

Add or grow app storage

set_app_storage
DestructiveIdempotent

Give an app storage that survives restarts and deploys, or grow the storage it already has. Call this when the app has to keep files: a SQLite database file, uploads, or anything the user expects to still be there tomorrow. The app reads and writes the folder at the path in the DATA_DIR environment variable, which Dockhold sets; anything written outside DATA_DIR is scratch space and is lost on the next restart. size_gb must be one of the sizes get_resource_usage reports under volume.steps_gb and has to fit your storage pool, which is the same pool a managed database draws on, so call get_resource_usage first. Storage can grow but never shrink. Three things to tell the user before calling this: an app with storage runs as a single copy, it cannot have scheduled tasks, and from now on each deploy stops the running version before the new one starts, so the app is unreachable for a few seconds. Write the app to save its files when it receives SIGTERM.

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": {
      "app_id": "<app_id>",
      "size_gb": "<size_gb>"
    },
    "name": "set_app_storage"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesThe app id returned by list_apps
size_gbYesStorage size in GB, one of the values get_resource_usage reports under volume.steps_gb; must be at least the current size (storage grows, never shrinks)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Goes well past the annotations: it names the DATA_DIR contract, warns that anything outside DATA_DIR is lost on restart, documents grow-never-shrink, and discloses the three side effects (single copy, no scheduled tasks, deploy downtime). The destructiveHint=true annotation is consistent with these irreversible configuration changes, but the description never explicitly frames them as destructive.

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?

Front-loaded with purpose before constraints, and most sentences carry distinct operational facts. It is dense but slightly overpacked, and the closing SIGTERM advice is application guidance rather than tool-selection information.

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 a two-parameter mutation with no output schema, the definition covers purpose, prerequisites, allowed values, irreversibility, and downstream effects on deploys and scheduling. Nothing material an agent needs before invoking it 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 both parameters are already documented, yet the description adds genuine meaning: size_gb must come from get_resource_usage's volume.steps_gb, must fit the storage pool, and that pool is shared with managed databases. Only the DATA_DIR/environment detail is tangential to the parameters.

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 specific verb and resource plus both modes of operation ('give an app storage... or grow the storage it already has'), which maps exactly to the two parameters. An agent immediately knows this is the storage-provisioning tool rather than a generic resize or secret tool.

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?

Gives an explicit trigger ('call this when the app has to keep files: a SQLite database file, uploads...'), a prerequisite ('call get_resource_usage first'), and hard constraints (grow-only, must fit the shared storage pool). This is about as directive as a definition gets.

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.