Skip to main content
Glama

Nimbus Land

Add a SQLite database to an app

add_sqlite_database
Destructive

Gives a deployed app a SQLite database that is kept and backed up: the database file lives on a volume, so it survives deploys and restarts, it is copied continuously to backup storage (restore to a point in time from the app's page), and the app is kept at one instance. Use this, not add_volume, for an app whose data is a SQLite file. db_path is the file the app opens: it must be directly in /data (a volume is created there) or on a volume the app already has. The app also gets DATABASE_URL (sqlite://) and SQLITE_DB_PATH, and restarts. A database file already on the app's own disk is not copied: the app starts with an empty database. One per app; not for a static site. The 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>"
    },
    "name": "add_sqlite_database"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe app's name.
db_pathNoThe absolute path of the database file the app opens, such as /data/app.db (the default). Read it from the app's source; if the app reads SQLITE_DB_PATH or DATABASE_URL, leave this out.
size_gbNoSize in GB of the volume created at /data (default 1, at most 100). Ignored when the file is on a volume the app already has.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Beyond the annotations it discloses real consequences: the app restarts, an existing database file on the app's disk is not copied so the app starts empty, env vars DATABASE_URL and SQLITE_DB_PATH are injected, one instance only, and a recurring monthly cost. That is substantive context for a destructiveHint=true mutation. However it never says whether a re-invocation replaces or errors on an existing database, despite idempotentHint=false, leaving the failure mode underspecified.

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 outcome, then the alternative, then constraints and prerequisites, in a logical order with no filler sentences. It is dense and slightly run-on across the long final clause, but every clause carries actionable 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?

With no output schema and only three simple parameters, the description covers what the agent cannot infer: persistence and backup behavior, restart side effects, env vars set, volume placement rules, cost, and the requirement to confirm with the user. Nothing needed to invoke it safely appears 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 name, db_path and size_gb are already documented. The description still adds constraint-level meaning: db_path must sit directly in /data (a volume is created there) or on a volume the app already has, and size_gb is ignored in that second case. That goes beyond the schema's per-field text.

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 ("Gives a deployed app a SQLite database") plus the defining behavior (persisted on a volume, backed up continuously, single instance). It explicitly contrasts with the sibling add_volume, so an agent can choose 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?

Names the alternative to avoid ("Use this, not add_volume") and the selecting condition ("for an app whose data is a SQLite file"). It also gives exclusions (one per app, not for a static site), a prerequisite workflow (tell the user the price and confirm first, with detect_source as the price source), and a fallback (leave db_path out if the app reads SQLITE_DB_PATH or DATABASE_URL).

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.