Skip to main content
Glama

Delete from server environment

apps_delete
Destructive

Deletes files, databases and database users, cron jobs, Node.js and Python apps and keys of the server environment. Cannot be undone.

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>",
      "site_id": "<site_id>"
    },
    "name": "apps_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoAlias of key_id.
nameNoDatabase or database user short name. The username_ prefix is added for MySQL.
pathNoFile path relative to the environment home, without the /home/... prefix. Site folders live under domains/{selected_domain} (selected_domain from session, or list domains with files_list path=domains); status.domain is the technical account domain and may not be the folder you need.
pathsNoHome-relative paths for delete or chmod.
trashNoMove to trash instead of deleting.
actionYesOperation to run. Each oneOf entry describes one action and lists its parameters.
dbuserNoMySQL user. Prefixed with {username}_ when missing.
key_idNoLogin key id. Defaults to main on create. Letters and digits only.
paramsNoExtra selector parameters. PHP extension changes were rejected on the uCoz test environment. env-vars (an object of names and texts) is taken by set and create; secret keys and variables are refused as in env_vars. set adds or changes the passed variables and keeps the other variables of the app as they are; MCP does not remove variables, and create refuses a folder that already holds an app. Secrets (passwords, bot tokens, API keys) are set by the site owner in the site control panel: Server scripts, tab Node or Python, Environment variables of the app; the code reads them from the environment (process.env, os.environ), and the app is restarted after a change.
pluginNoLanguage selector plugin: phpselector, nodejs_selector, python_selector.
sourceNoHome-relative source path.
confirmNoConfirmation of this deletion. Not needed unless the server refuses the call because the site owner requires it; that refusal says what to do.
cron_idNoId of a cron job: jobs[].id of cron_list, such as 000.
select0NoAlias of cron_id.
site_idYesSite to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose.
sourcesNoHome-relative paths for copy-to, move-to, or create-archive.
app_rootNoApplication directory relative to home, or /home/{username}/....
cron_idsNoIds of several cron jobs to delete (jobs[].id of cron_list).
databaseNoMySQL database. Prefixed with {username}_ when missing.
interpreterNoSelector interpreter: php, nodejs, or python.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / site_id
      Added value: +{
      +  "description": "Site to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose.",
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "action"
      -]New value: +[
      +  "action",
      +  "site_id"
      +]
  2. Changed7 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "node_destroy",
      -  "python_destroy",
      -  "selector_destroy",
      -  "files_delete",
      -  "db_delete",
      -  "db_delete_user",
      -  "ftp_delete",
      -  "cron_delete",
      -  "login_key_delete",
      -  "da_login_key_delete",
      -  "visitor_key_delete"
      -]New value: +[
      +  "node_destroy",
      +  "python_destroy",
      +  "selector_destroy",
      +  "files_delete",
      +  "db_delete",
      +  "db_delete_user",
      +  "cron_delete",
      +  "login_key_delete",
      +  "da_login_key_delete",
      +  "visitor_key_delete"
      +]
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "node_destroy",
      -    "description": "Destroys a Node.js application. Required: app_root. Optional: confirm."
      -  },
      -  {
      -    "const": "python_destroy",
      -    "description": "Destroys a Python application. Required: app_root. Optional: confirm."
      -  },
      -  {
      -    "const": "selector_destroy",
      -    "description": "Runs the destroy method of a language selector. Required: plugin, interpreter. Optional: params, confirm."
      -  },
      -  {
      -    "const": "files_delete",
      -    "description": "Deletes paths, sources, source or path. Optional: paths, sources, source, path, trash, confirm."
      -  },
      -  {
      -    "const": "db_delete",
      -    "description": "Deletes a MySQL database (name in database or name). Required: database or name. Optional: confirm."
      -  },
      -  {
      -    "const": "db_delete_user",
      -    "description": "Deletes a MySQL user (name in dbuser or name). Required: dbuser or name. Optional: confirm."
      -  },
      -  {
      -    "const": "ftp_delete",
      -    "description": "Deletes an environment FTP account (short username from ftp_list in select0, user or name). Optional: select0, user, name, domain, confirm."
      -  },
      -  {
      -    "const": "cron_delete",
      -    "description": "Deletes cron jobs by cron_id (or cron_ids) from cron_list. Optional: cron_id, cron_ids, select0, confirm."
      -  },
      -  {
      -    "const": "login_key_delete",
      -    "description": "Deletes a login key record (default main). Optional: key_id, id, confirm."
      -  },
      -  {
      -    "const": "da_login_key_delete",
      -    "description": "Deletes a panel login key. Required: key_id or id. Optional: confirm."
      -  },
      -  {
      -    "const": "visitor_key_delete",
      -    "description": "Deletes the visitor encryption key. Optional: confirm."
      -  }
      -]New value: +[
      +  {
      +    "const": "node_destroy",
      +    "description": "Destroys a Node.js application. Required: app_root. Optional: confirm."
      +  },
      +  {
      +    "const": "python_destroy",
      +    "description": "Destroys a Python application. Required: app_root. Optional: confirm."
      +  },
      +  {
      +    "const": "selector_destroy",
      +    "description": "Runs the destroy method of a language selector. Required: plugin, interpreter. Optional: params, confirm."
      +  },
      +  {
      +    "const": "files_delete",
      +    "description": "Deletes paths, sources, source or path. Optional: paths, sources, source, path, trash, confirm."
      +  },
      +  {
      +    "const": "db_delete",
      +    "description": "Deletes a MySQL database (name in database or name). Required: database or name. Optional: confirm."
      +  },
      +  {
      +    "const": "db_delete_user",
      +    "description": "Deletes a MySQL user (name in dbuser or name). Required: dbuser or name. Optional: confirm."
      +  },
      +  {
      +    "const": "cron_delete",
      +    "description": "Deletes cron jobs by cron_id (or cron_ids) from cron_list. Optional: cron_id, cron_ids, select0, confirm."
      +  },
      +  {
      +    "const": "login_key_delete",
      +    "description": "Deletes a login key record (default main). Optional: key_id, id, confirm."
      +  },
      +  {
      +    "const": "da_login_key_delete",
      +    "description": "Deletes a panel login key. Required: key_id or id. Optional: confirm."
      +  },
      +  {
      +    "const": "visitor_key_delete",
      +    "description": "Deletes the visitor encryption key. Optional: confirm."
      +  }
      +]
    • removedInput schema / properties / domain
      Removed value: -{
      -  "description": "Environment domain for an app, FTP account, or backup form. Defaults to selected_domain, not a file path.",
      -  "type": "string"
      -}
    • changedInput schema / properties / name / description
      Previous value: -"Database, database user, or FTP user short name. The username_ prefix is added for MySQL."New value: +"Database or database user short name. The username_ prefix is added for MySQL."
    • changedInput schema / properties / params / description
      Previous value: -"Extra selector parameters. PHP extension changes were rejected on the uCoz test environment."New value: +"Extra selector parameters. PHP extension changes were rejected on the uCoz test environment. env-vars (an object of names and texts) is taken by set and create; secret keys and variables are refused as in env_vars. set adds or changes the passed variables and keeps the other variables of the app as they are; MCP does not remove variables, and create refuses a folder that already holds an app. Secrets (passwords, bot tokens, API keys) are set by the site owner in the site control panel: Server scripts, tab Node or Python, Environment variables of the app; the code reads them from the environment (process.env, os.environ), and the app is restarted after a change."
    • changedInput schema / properties / select0 / description
      Previous value: -"FTP account to delete: the short username from ftp_list. user@domain is accepted and the domain part is dropped. Also an alias of cron_id."New value: +"Alias of cron_id."
    • removedInput schema / properties / user
      Removed value: -{
      -  "description": "FTP username without @domain.",
      -  "type": "string"
      -}
  3. Changed3 schema fields changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "node_destroy",
      -    "description": "Destroys a Node.js application. Required: app_root, confirm."
      -  },
      -  {
      -    "const": "python_destroy",
      -    "description": "Destroys a Python application. Required: app_root, confirm."
      -  },
      -  {
      -    "const": "selector_destroy",
      -    "description": "Runs the destroy method of a language selector. Required: plugin, interpreter, confirm. Optional: params."
      -  },
      -  {
      -    "const": "files_delete",
      -    "description": "Deletes paths, sources, source or path. Required: confirm. Optional: paths, sources, source, path, trash."
      -  },
      -  {
      -    "const": "db_delete",
      -    "description": "Deletes a MySQL database (name in database or name). Required: database or name, confirm."
      -  },
      -  {
      -    "const": "db_delete_user",
      -    "description": "Deletes a MySQL user (name in dbuser or name). Required: dbuser or name, confirm."
      -  },
      -  {
      -    "const": "ftp_delete",
      -    "description": "Deletes an environment FTP account (short username from ftp_list in select0, user or name). Required: confirm. Optional: select0, user, name, domain."
      -  },
      -  {
      -    "const": "cron_delete",
      -    "description": "Deletes cron jobs by cron_id (or cron_ids) from cron_list. Required: confirm. Optional: cron_id, cron_ids, select0."
      -  },
      -  {
      -    "const": "login_key_delete",
      -    "description": "Deletes a login key record (default main). Required: confirm. Optional: key_id, id."
      -  },
      -  {
      -    "const": "da_login_key_delete",
      -    "description": "Deletes a panel login key. Required: key_id or id, confirm."
      -  },
      -  {
      -    "const": "visitor_key_delete",
      -    "description": "Deletes the visitor encryption key. Required: confirm."
      -  }
      -]New value: +[
      +  {
      +    "const": "node_destroy",
      +    "description": "Destroys a Node.js application. Required: app_root. Optional: confirm."
      +  },
      +  {
      +    "const": "python_destroy",
      +    "description": "Destroys a Python application. Required: app_root. Optional: confirm."
      +  },
      +  {
      +    "const": "selector_destroy",
      +    "description": "Runs the destroy method of a language selector. Required: plugin, interpreter. Optional: params, confirm."
      +  },
      +  {
      +    "const": "files_delete",
      +    "description": "Deletes paths, sources, source or path. Optional: paths, sources, source, path, trash, confirm."
      +  },
      +  {
      +    "const": "db_delete",
      +    "description": "Deletes a MySQL database (name in database or name). Required: database or name. Optional: confirm."
      +  },
      +  {
      +    "const": "db_delete_user",
      +    "description": "Deletes a MySQL user (name in dbuser or name). Required: dbuser or name. Optional: confirm."
      +  },
      +  {
      +    "const": "ftp_delete",
      +    "description": "Deletes an environment FTP account (short username from ftp_list in select0, user or name). Optional: select0, user, name, domain, confirm."
      +  },
      +  {
      +    "const": "cron_delete",
      +    "description": "Deletes cron jobs by cron_id (or cron_ids) from cron_list. Optional: cron_id, cron_ids, select0, confirm."
      +  },
      +  {
      +    "const": "login_key_delete",
      +    "description": "Deletes a login key record (default main). Optional: key_id, id, confirm."
      +  },
      +  {
      +    "const": "da_login_key_delete",
      +    "description": "Deletes a panel login key. Required: key_id or id. Optional: confirm."
      +  },
      +  {
      +    "const": "visitor_key_delete",
      +    "description": "Deletes the visitor encryption key. Optional: confirm."
      +  }
      +]
    • changedInput schema / properties / confirm / description
      Previous value: -"Pass true only after the user approves this change. Required by: node_destroy, python_destroy, selector_destroy, files_delete, db_delete, db_delete_user, ftp_delete, cron_delete, login_key_delete, da_login_key_delete, visitor_key_delete."New value: +"Confirmation of this deletion. Not needed unless the server refuses the call because the site owner requires it; that refusal says what to do."
    • changedInput schema / required
      Previous value: -[
      -  "action",
      -  "confirm"
      -]New value: +[
      +  "action"
      +]
  4. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "action"
      -]New value: +[
      +  "action",
      +  "confirm"
      +]
  5. Changed3 schema fields changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "node_destroy",
      -    "description": "Destroys a Node.js application. Required: app_root, confirm."
      -  },
      -  {
      -    "const": "python_destroy",
      -    "description": "Destroys a Python application. Required: app_root, confirm."
      -  },
      -  {
      -    "const": "selector_destroy",
      -    "description": "Runs the destroy method of a language selector. Required: plugin, interpreter, confirm. Optional: params."
      -  },
      -  {
      -    "const": "files_delete",
      -    "description": "Deletes paths, sources, source or path. Required: confirm. Optional: paths, sources, source, path, trash."
      -  },
      -  {
      -    "const": "db_delete",
      -    "description": "Deletes a MySQL database (name in database or name). Required: confirm. Optional: database, name."
      -  },
      -  {
      -    "const": "db_delete_user",
      -    "description": "Deletes a MySQL user (name in dbuser or name). Required: confirm. Optional: dbuser, name."
      -  },
      -  {
      -    "const": "ftp_delete",
      -    "description": "Deletes an environment FTP account (short username from ftp_list in select0, user or name). Required: confirm. Optional: select0, user, name, domain."
      -  },
      -  {
      -    "const": "cron_delete",
      -    "description": "Deletes cron jobs by cron_id (or cron_ids) from cron_list. Required: confirm. Optional: cron_id, cron_ids, select0."
      -  },
      -  {
      -    "const": "login_key_delete",
      -    "description": "Deletes a login key record (default main). Required: confirm. Optional: key_id, id."
      -  },
      -  {
      -    "const": "da_login_key_delete",
      -    "description": "Deletes a panel login key. Required: key_id, confirm. Optional: id."
      -  },
      -  {
      -    "const": "visitor_key_delete",
      -    "description": "Deletes the visitor encryption key. Required: confirm."
      -  }
      -]New value: +[
      +  {
      +    "const": "node_destroy",
      +    "description": "Destroys a Node.js application. Required: app_root, confirm."
      +  },
      +  {
      +    "const": "python_destroy",
      +    "description": "Destroys a Python application. Required: app_root, confirm."
      +  },
      +  {
      +    "const": "selector_destroy",
      +    "description": "Runs the destroy method of a language selector. Required: plugin, interpreter, confirm. Optional: params."
      +  },
      +  {
      +    "const": "files_delete",
      +    "description": "Deletes paths, sources, source or path. Required: confirm. Optional: paths, sources, source, path, trash."
      +  },
      +  {
      +    "const": "db_delete",
      +    "description": "Deletes a MySQL database (name in database or name). Required: database or name, confirm."
      +  },
      +  {
      +    "const": "db_delete_user",
      +    "description": "Deletes a MySQL user (name in dbuser or name). Required: dbuser or name, confirm."
      +  },
      +  {
      +    "const": "ftp_delete",
      +    "description": "Deletes an environment FTP account (short username from ftp_list in select0, user or name). Required: confirm. Optional: select0, user, name, domain."
      +  },
      +  {
      +    "const": "cron_delete",
      +    "description": "Deletes cron jobs by cron_id (or cron_ids) from cron_list. Required: confirm. Optional: cron_id, cron_ids, select0."
      +  },
      +  {
      +    "const": "login_key_delete",
      +    "description": "Deletes a login key record (default main). Required: confirm. Optional: key_id, id."
      +  },
      +  {
      +    "const": "da_login_key_delete",
      +    "description": "Deletes a panel login key. Required: key_id or id, confirm."
      +  },
      +  {
      +    "const": "visitor_key_delete",
      +    "description": "Deletes the visitor encryption key. Required: confirm."
      +  }
      +]
    • changedInput schema / properties / cron_id / description
      Previous value: -"Cron id from cron_list, for example 000. Sent as select0."New value: +"Id of a cron job: jobs[].id of cron_list, such as 000."
    • changedInput schema / properties / cron_ids / description
      Previous value: -"Several cron ids to delete (select0, select1, ...)."New value: +"Ids of several cron jobs to delete (jobs[].id of cron_list)."
  6. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is supplied structurally; the description's 'Cannot be undone' reinforces but largely restates it. It adds no context on permissions, the confirm gate, or the trash alternative that the schema exposes, and 'cannot be undone' sits slightly awkwardly against the existence of a trash option.

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?

Two sentences, front-loaded with the verb and the resource list, with the irreversibility warning placed last for emphasis. The enumeration is long but each item is informative; nothing is padded.

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 tool with 20 parameters, eleven actions, and nested objects, the description is thin: it never signals that a single call must select one action, that site_id is mandatory and overrides select_site, or that a confirm flag may be demanded. The rich schema compensates substantially, and no output schema is needed, but the multi-action dispatch model is left entirely to the schema.

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 description coverage is 100% and the action enum's oneOf entries document each operation's required and optional fields, so the schema carries the parameter burden. The description adds no meaning beyond the schema—it never mentions the action parameter, site_id, or the trash/confirm switches.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (deletes) and enumerates the resource classes affected: files, databases, database users, cron jobs, Node.js/Python apps, and keys of the server environment. That is concrete enough to distinguish it from apps_read/apps_write. It stops short of differentiating from siblings that also delete (files_delete, content_delete), so a 4 rather than a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing says when to prefer apps_delete over files_delete or content_delete for file removal, and nothing explains the action-dispatch model (one tool, eleven distinct operations). The only condition given is implicit in the word 'server environment'.

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.