Skip to main content
Glama

dokploy_database

Manage Dokploy database services across PostgreSQL, MySQL, MariaDB, Mongo, Redis, and libSQL, including create, update, deploy, rebuild, remove, environment variables, ports, and status.

Instructions

Manage databases (postgres/mysql/mariadb/mongo/redis/libsql). create: dbType+name+environmentId+databasePassword. Per-engine extras — postgres/mysql/mariadb: REQUIRE databaseName+databaseUser; mysql/mariadb also accept databaseRootPassword. mongo: REQUIRES databaseUser (databaseName not used). redis: only databasePassword (no databaseName/User). libsql: REQUIRES appName+dockerImage+sqldNode (primary|replica); accepts sqldPrimaryUrl+enableNamespaces. get: dbType+databaseId (returns metadata + masked env summary — never values). update: dbType+databaseId+fields. move: dbType+databaseId+targetEnvironmentId. start/stop/deploy/rebuild/remove: dbType+databaseId. reload: dbType+databaseId+appName. changeStatus: dbType+databaseId+applicationStatus (idle|running|done|error). saveEnvironment: dbType+databaseId+env (full replace). setEnvVars: dbType+databaseId + set?/unset? (merge inside the server, masked confirmation only). getEnvKeys: dbType+databaseId — KEY names only. getEnvValuesUnsafe: dbType+databaseId — UNSAFE escape hatch that returns full KEY=VALUE pairs. saveExternalPort: dbType+databaseId+externalPort (libsql also accepts externalGRPCPort/externalAdminPort). search: dbType + q|name|appName|description|projectId|environmentId + limit/offset — searches within the given dbType (not supported for libsql). Note: the API's search index is narrower than the project tree — it can return fewer results than dokploy_project/dokploy_overview list, so use it to find a known service, not to inventory.

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": {
      "action": "<action>",
      "dbType": "<dbType>"
    },
    "name": "dokploy_database"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNosearch: freeform query
envNoEnvironment variables as KEY=VALUE pairs, one per line. Used by saveEnvironment (full replace).
setNosetEnvVars: KEY=VALUE pairs to upsert, one per line.
nameNo
limitNosearch: max results (default 20)
unsetNosetEnvVars: list of KEY names to remove.
actionYes
dbTypeYespostgres, mysql, mariadb, mongo, redis, or libsql
offsetNosearch: pagination offset
appNameNo
commandNo
cpuLimitNo
serverIdNo
sqldNodeNolibsql sqld role
projectIdNosearch: filter to a project
databaseIdNo
descriptionNo
dockerImageNo
memoryLimitNo
databaseNameNo
databaseUserNo
externalPortNo
environmentIdNo
sqldPrimaryUrlNolibsql replica primary URL
databasePasswordNo
enableNamespacesNolibsql multi-tenant namespaces
externalGRPCPortNolibsql only
applicationStatusNo
externalAdminPortNolibsql only
targetEnvironmentIdNo
databaseRootPasswordNomysql/mariadb only

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.11.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed5 schema fields changedv1.8.3
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "create",
      -  "get",
      -  "update",
      -  "move",
      -  "start",
      -  "stop",
      -  "deploy",
      -  "rebuild",
      -  "remove",
      -  "reload",
      -  "changeStatus",
      -  "saveEnvironment",
      -  "setEnvVars",
      -  "getEnvKeys",
      -  "getEnvValuesUnsafe",
      -  "saveExternalPort"
      -]New value: +[
      +  "create",
      +  "get",
      +  "update",
      +  "move",
      +  "start",
      +  "stop",
      +  "deploy",
      +  "rebuild",
      +  "remove",
      +  "reload",
      +  "changeStatus",
      +  "saveEnvironment",
      +  "setEnvVars",
      +  "getEnvKeys",
      +  "getEnvValuesUnsafe",
      +  "saveExternalPort",
      +  "search"
      +]
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "search: max results (default 20)",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "search: pagination offset",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / projectId
      Added value: +{
      +  "description": "search: filter to a project",
      +  "type": "string"
      +}
    • addedInput schema / properties / q
      Added value: +{
      +  "description": "search: freeform query",
      +  "type": "string"
      +}
  3. Changed3 schema fields changedv1.7.4
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / sqldPrimaryUrl / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / sqldPrimaryUrl / type
      Added value: +"string"
  4. Changed4 schema fields changedv1.7.3
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "create",
      -  "get",
      -  "update",
      -  "move",
      -  "start",
      -  "stop",
      -  "deploy",
      -  "rebuild",
      -  "remove",
      -  "reload",
      -  "changeStatus",
      -  "saveEnvironment",
      -  "saveExternalPort"
      -]New value: +[
      +  "create",
      +  "get",
      +  "update",
      +  "move",
      +  "start",
      +  "stop",
      +  "deploy",
      +  "rebuild",
      +  "remove",
      +  "reload",
      +  "changeStatus",
      +  "saveEnvironment",
      +  "setEnvVars",
      +  "getEnvKeys",
      +  "getEnvValuesUnsafe",
      +  "saveExternalPort"
      +]
    • changedInput schema / properties / env / description
      Previous value: -"Environment variables as KEY=VALUE pairs, one per line. Example: 'DB_HOST=localhost\\nDB_PORT=5432'"New value: +"Environment variables as KEY=VALUE pairs, one per line. Used by saveEnvironment (full replace)."
    • addedInput schema / properties / set
      Added value: +{
      +  "description": "setEnvVars: KEY=VALUE pairs to upsert, one per line.",
      +  "type": "string"
      +}
    • addedInput schema / properties / unset
      Added value: +{
      +  "description": "setEnvVars: list of KEY names to remove.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  5. First observedv1.7.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and discloses notable traits: get returns masked env summaries, setEnvVars merges server-side with masked confirmation, getEnvValuesUnsafe is an unsafe full-value escape hatch, and saveEnvironment performs a full replace. It does not explicitly discuss permissions, reversibility, or destructive side effects for remove/rebuild, which leaves a meaningful gap for a mutation-heavy tool.

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 description is front-loaded with purpose and then packs action requirements densely, with no filler sentences. For 17 actions the length is largely justified, though the single run-on paragraph and semicolon-heavy style reduce readability and could be structured more clearly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the high complexity, 31 parameters, no annotations, and no output schema, the description is substantial but not fully complete. It explains many action-level requirements and important masking/search behavior, but it does not describe return values for most actions or broader safety/authorization details that would help an agent invoke it confidently.

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 only 45% across 31 parameters, so the description must compensate, and it does substantially by mapping parameters to actions and engine constraints. It covers most required and optional fields, including libsql-only parameters and mysql/mariadb root password behavior. It leaves command, cpuLimit, serverId, and memoryLimit undocumented, so a few parameters still lack meaning beyond the raw 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 states a specific verb and resource: manage databases across six engines, with a clear action list covering create/get/update/move/lifecycle/env/search. It also distinguishes search from dokploy_project/dokploy_overview by warning that the search index is narrower. An agent can identify the tool's domain and action surface 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit per-action usage guidance, including engine-specific create requirements and the caveat that search is for finding a known service, not inventorying. It does not broadly explain when to choose this tool over sibling tools such as dokploy_application, but for the database-management domain the action mapping is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.