Skip to main content
Glama

Add a volume to an app

add_volume
Destructive

Gives a deployed app a volume mounted at a directory, so the data the app writes there (uploads, generated files) survives deploys and restarts. For an app whose data is a SQLite file, call add_sqlite_database instead: it also backs the file up. The app restarts. Files already at that path on the app's own disk are not copied into the volume: what the app saved there before is gone after the restart. get_app lists the volumes an app has. Not for a static site. A volume costs money every month: tell the user the price (detect_source and this tool's answer give it) and confirm with the user first.

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>",
      "mount_path": "<mount_path>"
    },
    "name": "add_volume"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe app's name.
size_gbNoSize in GB (default 1, at most 100; a larger volume is made in the console).
mount_pathYesThe absolute directory inside the app that the app writes its data to, such as /data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: annotations only say destructiveHint=true, while the description explains exactly what is destroyed (files already at that path are not copied into the volume and are gone after the restart) and that the app restarts. It also discloses the recurring cost and the requirement to confirm with the user, which no structured field conveys.

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-loads the purpose, then layers the alternative, the destructive behavior, and the cost warning in a sensible order with no filler. The parenthetical 'detect_source and this tool's answer give it' is slightly awkward phrasing but still carries 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 destructive, billable mutation with no output schema, the description covers everything an agent needs: restart side effects, pre-existing data loss, pricing and user confirmation, and the SQLite alternative. Nothing material is left to inference.

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 coverage is 100%, so name, mount_path, and size_gb are already documented in the schema. The description reinforces mount_path's purpose ('the data the app writes there') but adds nothing about size_gb limits or defaults, so the baseline of 3 applies.

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 ('Gives a deployed app a volume mounted at a directory') plus the outcome that motivates it (data survives deploys and restarts). It also distinguishes the tool from the sibling add_sqlite_database, so an agent can route correctly without opening either 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?

Gives explicit when-to-use (app data directory), when-to-use-an-alternative (SQLite file → add_sqlite_database), when-not (static site), and a procedural prerequisite (tell the user the price and confirm first). It also points to get_app for inspecting existing volumes, covering both selection and follow-up.

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.