Skip to main content
Glama

dokploy_application

Create, update, deploy, and manage Dokploy applications—including environment variables, logs, monitoring, and lifecycle actions—via a single action-based interface.

Instructions

Manage applications. create: name+environmentId. get: applicationId (returns metadata + masked env summary — never values). update: applicationId+fields (supports sourceType, repository, owner, branch, customGitUrl, customGitBranch, githubId, dockerImage, networkIds, detachDokployNetwork, etc.). move: applicationId+targetEnvironmentId. deploy: applicationId, redeploy? (note: first deploy on new services may fail — retry immediately). start/stop/delete/markRunning/refreshToken/cleanQueues/killBuild/cancelDeployment: applicationId. reload: applicationId+appName. saveEnvironment: applicationId+env (KEY=VALUE pairs, full replace). setEnvVars: applicationId + set? (KEY=VALUE pairs to upsert) + unset? (KEY names to remove) — read-modify-write inside the server; result is a masked confirmation with changed key names only. getEnvKeys: applicationId — returns just the KEY names (no values). getEnvValuesUnsafe: applicationId — UNSAFE escape hatch that returns full KEY=VALUE pairs (use only when you need actual values; output goes to the tool transcript and any retained logs). saveBuildType: applicationId+buildType. traefikConfig: applicationId, traefikConfig? (omit to read). readMonitoring: appName. readLogs: applicationId, tail? (default 100), since? ('all' or duration like '1h'), search? (substring filter). search: any of q|name|appName|description|repository|owner|dockerImage|projectId|environmentId + limit/offset. deployNginxQuickstart: environmentId, serverId? — creates and deploys a "Hello World" nginx demo app on a generated traefik.me domain (Dokploy's onboarding smoke test). 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>"
    },
    "name": "dokploy_application"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNosearch: freeform query across name/appName/description/repository/owner
envNoEnvironment variables as KEY=VALUE pairs, one per line. Example: 'DB_HOST=localhost\nDB_PORT=5432'. Used by saveEnvironment (full replace).
setNosetEnvVars: KEY=VALUE pairs to upsert, one per line. Existing keys retain order; new keys append.
nameNo
tailNoNumber of recent log lines to return (default 100)
limitNosearch: max results (default 20)
ownerNoGitHub org/user
sinceNoTime range: 'all' or a duration like '30m', '1h', '7d'
titleNo
unsetNosetEnvVars: list of KEY names to remove. Unknown keys are silently skipped.
actionYes
branchNoBranch name
offsetNosearch: pagination offset
searchNoFilter log lines by substring (alphanumeric + ' ._-' only)
appNameNo
commandNo
cpuLimitNo
githubIdNoGitHub App provider ID for private repo access
redeployNo
replicasNo
serverIdNo
buildArgsNo
buildTypeNodockerfile | heroku_buildpacks | paketo_buildpacks | nixpacks | static | railpack
projectIdNosearch: filter to a project
autoDeployNo
dockerfileNo
networkIdsNoupdate: Docker network IDs to attach this application to (see dokploy_network list)
repositoryNoGitHub repository name
sourceTypeNoSource type. github → set repository+owner+branch (+githubId for private). git → set customGitUrl+customGitBranch. docker → set dockerImage. The API also supports gitlab/bitbucket/gitea/drop sources, but those need provider-specific fields not yet exposed by this tool.
descriptionNo
dockerImageNo
memoryLimitNo
buildSecretsNo
customGitUrlNoCustom git repository URL (for sourceType: git)
applicationIdNo
createEnvFileNo
environmentIdNo
traefikConfigNoNew config content (omit to read current)
customGitBranchNoBranch for custom git source
dockerBuildStageNo
publishDirectoryNo
deployDescriptionNoDeploy description (maps to API description field)
dockerContextPathNo
targetEnvironmentIdNo
detachDokployNetworkNoupdate: detach from the default dokploy-network, leaving only networkIds

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. Changed1 schema field changedv1.10.0
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "create",
      -  "get",
      -  "update",
      -  "move",
      -  "deploy",
      -  "start",
      -  "stop",
      -  "delete",
      -  "markRunning",
      -  "refreshToken",
      -  "cleanQueues",
      -  "killBuild",
      -  "cancelDeployment",
      -  "reload",
      -  "saveEnvironment",
      -  "setEnvVars",
      -  "getEnvKeys",
      -  "getEnvValuesUnsafe",
      -  "saveBuildType",
      -  "traefikConfig",
      -  "readMonitoring",
      -  "readLogs",
      -  "search"
      -]New value: +[
      +  "create",
      +  "get",
      +  "update",
      +  "move",
      +  "deploy",
      +  "start",
      +  "stop",
      +  "delete",
      +  "markRunning",
      +  "refreshToken",
      +  "cleanQueues",
      +  "killBuild",
      +  "cancelDeployment",
      +  "reload",
      +  "saveEnvironment",
      +  "setEnvVars",
      +  "getEnvKeys",
      +  "getEnvValuesUnsafe",
      +  "saveBuildType",
      +  "traefikConfig",
      +  "readMonitoring",
      +  "readLogs",
      +  "search",
      +  "deployNginxQuickstart"
      +]
  3. Changed2 schema fields changedv1.9.1
    • addedInput schema / properties / detachDokployNetwork
      Added value: +{
      +  "description": "update: detach from the default dokploy-network, leaving only networkIds",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / networkIds
      Added value: +{
      +  "description": "update: Docker network IDs to attach this application to (see dokploy_network list)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  4. Changed5 schema fields changedv1.8.3
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "create",
      -  "get",
      -  "update",
      -  "move",
      -  "deploy",
      -  "start",
      -  "stop",
      -  "delete",
      -  "markRunning",
      -  "refreshToken",
      -  "cleanQueues",
      -  "killBuild",
      -  "cancelDeployment",
      -  "reload",
      -  "saveEnvironment",
      -  "setEnvVars",
      -  "getEnvKeys",
      -  "getEnvValuesUnsafe",
      -  "saveBuildType",
      -  "traefikConfig",
      -  "readMonitoring",
      -  "readLogs"
      -]New value: +[
      +  "create",
      +  "get",
      +  "update",
      +  "move",
      +  "deploy",
      +  "start",
      +  "stop",
      +  "delete",
      +  "markRunning",
      +  "refreshToken",
      +  "cleanQueues",
      +  "killBuild",
      +  "cancelDeployment",
      +  "reload",
      +  "saveEnvironment",
      +  "setEnvVars",
      +  "getEnvKeys",
      +  "getEnvValuesUnsafe",
      +  "saveBuildType",
      +  "traefikConfig",
      +  "readMonitoring",
      +  "readLogs",
      +  "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 across name/appName/description/repository/owner",
      +  "type": "string"
      +}
  5. Changed1 schema field changedv1.7.4
    • addedInput schema / additionalProperties
      Added value: +false
  6. Changed4 schema fields changedv1.7.3
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "create",
      -  "get",
      -  "update",
      -  "move",
      -  "deploy",
      -  "start",
      -  "stop",
      -  "delete",
      -  "markRunning",
      -  "refreshToken",
      -  "cleanQueues",
      -  "killBuild",
      -  "cancelDeployment",
      -  "reload",
      -  "saveEnvironment",
      -  "saveBuildType",
      -  "traefikConfig",
      -  "readMonitoring",
      -  "readLogs"
      -]New value: +[
      +  "create",
      +  "get",
      +  "update",
      +  "move",
      +  "deploy",
      +  "start",
      +  "stop",
      +  "delete",
      +  "markRunning",
      +  "refreshToken",
      +  "cleanQueues",
      +  "killBuild",
      +  "cancelDeployment",
      +  "reload",
      +  "saveEnvironment",
      +  "setEnvVars",
      +  "getEnvKeys",
      +  "getEnvValuesUnsafe",
      +  "saveBuildType",
      +  "traefikConfig",
      +  "readMonitoring",
      +  "readLogs"
      +]
    • 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. Example: 'DB_HOST=localhost\\nDB_PORT=5432'. Used by saveEnvironment (full replace)."
    • addedInput schema / properties / set
      Added value: +{
      +  "description": "setEnvVars: KEY=VALUE pairs to upsert, one per line. Existing keys retain order; new keys append.",
      +  "type": "string"
      +}
    • addedInput schema / properties / unset
      Added value: +{
      +  "description": "setEnvVars: list of KEY names to remove. Unknown keys are silently skipped.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  7. First observedv1.7.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses that get returns a masked env summary and never values, that setEnvVars does read-modify-write inside the server and returns only changed key names, that saveEnvironment is a full replace, that getEnvValuesUnsafe sends output to the tool transcript and retained logs, and that a first deploy on new services may fail and should be retried immediately.

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?

Dense, but almost every clause conveys an action-to-parameter mapping or a behavioral caveat, and the highest-risk items (masking, unsafe escape hatch, deploy retry, search index limits) are placed where they will be read. The long 'update: ... etc.' parenthetical wall is the one spot that sacrifices scannability.

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?

For a 24-action, 45-parameter multiplexer with no annotations and no output schema, the description covers the important operations but leaves meaningful holes: update's field list trails off into 'etc.', and roughly a dozen schema parameters (command, replicas, cpuLimit, memoryLimit, dockerfile, buildArgs, buildSecrets, dockerBuildStage, dockerContextPath, publishDirectory, autoDeploy, createEnvFile, title, appName) are never tied to an action or explained.

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 49% across 45 parameters, but the description compensates by binding parameters to actions (e.g., move needs applicationId+targetEnvironmentId, readLogs takes tail/since/search, traefikConfig omits the config to read). It still doesn't disambiguate the bare parameters in the schema such as name vs appName, description vs deployDescription, or what command/replicas/cpuLimit/memoryLimit mean for create/update.

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 the resource ('Manage applications') and then enumerates every one of the 24 actions with its required parameters, so an agent can map intent to action without opening the schema. The 'search' caveat explicitly contrasts this tool's index with what dokploy_project/dokploy_overview list.

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?

Several actions carry explicit when/when-not guidance: getEnvValuesUnsafe is called an 'escape hatch' to use 'only when you need actual values', search is 'to find a known service, not to inventory', and networkIds points at dokploy_network for listing. The remaining actions (create, get, update, move, delete, etc.) get only parameter lists with no conditions for choosing among them or against siblings like dokploy_compose.

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