Skip to main content
Glama
cPanel MCP Server
by akashjamali

reset_cpanel_password

Reset or change the main cPanel login password using the current password, with optional MySQL/MariaDB sync and automatic strong-password generation.

Instructions

Reset or change the main cPanel login password (requires old_password per cPanel UAPI; optionally syncs MySQL and auto-generates a strong password)

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": {
      "old_password": "<old_password>"
    },
    "name": "reset_cpanel_password"
  }
}

Input Schema

NameRequiredDescriptionDefault
new_passwordNoNew password (at least 8 characters). Omit if generate_strong_password=true
old_passwordYesCurrent cPanel account password (required by cPanel UAPI)
enable_digest_authNoAlso enable/update Web Disk Digest Authentication
sync_mysql_passwordNoUpdate the linked cPanel MySQL/MariaDB password to match
generate_strong_passwordNoGenerate a random 20-character strong password automatically

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description does useful work: it discloses the UAPI auth requirement, the optional MySQL password sync, and the auto-generation option. However, it does not warn that sync_mysql_password defaults to true (silently changing a linked database credential), nor whether existing sessions or integrations are invalidated by the reset — meaningful gaps for a credential mutation.

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?

A single front-loaded sentence with the resource and its constraints stated up front; the parenthetical is dense but each clause (old_password requirement, MySQL sync, generation) carries information. Minor cost in readability from packing three behaviors into one parenthetical.

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

Completeness4/5

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

For a five-parameter credential mutation with no annotations and no output schema, the description covers the essential auth requirement and side-effect surface. It is slightly incomplete on the default-true MySQL sync and on downstream consequences of resetting the main password, but an agent can call it correctly from this plus 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 coverage is 100%, so all five parameters are already documented, including the omit-new_password-if-generating rule. The description restates the same points (old_password required, generate_strong_password option) without adding new syntax, precedence, or interaction details beyond the schema.

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?

States a specific verb and resource: 'Reset or change the main cPanel login password', explicitly scoped to the main login rather than email/FTP/MySQL passwords, which implicitly separates it from siblings like change_email_password and change_ftp_password. It stops short of naming an alternative outright, so it is clear but not fully sibling-differentiated.

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

Usage Guidelines3/5

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

The description implies when the tool applies (rotating or changing the main account password) and notes that old_password is required by the cPanel UAPI. It never says when to prefer reset_password or the email/FTP password siblings instead, nor what happens when the caller lacks the current password.

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

Deploy Server

Other Tools