Skip to main content
Glama

whm_create_account

Create a new cPanel hosting account on a WHM server. Requires username, domain, password, email; optional plan.

Instructions

Create a new cPanel hosting account on the WHM server

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountYesAccount alias from accounts.json (use list_accounts to see options)
usernameYes
domainYes
passwordYes
emailYes
planNoHosting plan name (optional)

Implementation Reference

  • Input schema definition for whm_create_account tool — defines required fields (account, username, domain, password, email) and optional plan field.
    Tool(
        name="whm_create_account",
        description="Create a new cPanel hosting account on the WHM server",
        inputSchema={
            "type": "object",
            "properties": {
                **ACCOUNT_PARAM,
                "username": {"type": "string"},
                "domain": {"type": "string"},
                "password": {"type": "string"},
                "email": {"type": "string"},
                "plan": {"type": "string", "description": "Hosting plan name (optional)"}
            },
            "required": ["account", "username", "domain", "password", "email"]
        }
    ),
  • Handler logic for whm_create_account — maps arguments to WHM API 'createacct' parameters and sends GET request.
    case "whm_create_account":
        params = {
            "username": args["username"],
            "domain": args["domain"],
            "password": args["password"],
            "contactemail": args["email"],
        }
        if "plan" in args:
            params["plan"] = args["plan"]
        return await _get(client, url("createacct"), headers, params)
  • src/server.py:42-44 (registration)
    Tool registration in server.py — whm_tools() (which includes whm_create_account) is registered via @app.list_tools() at line 34.
    all_tools.extend(whm_tools())
    all_tools.extend(cpanel_tools())
    return all_tools
  • src/server.py:68-69 (registration)
    Dispatch to handle_whm_tool when a tool name starts with 'whm_' — routes the call to the handler containing whm_create_account logic.
    if name.startswith("whm_"):
        result = await handle_whm_tool(client, account, name, arguments)
  • Helper that builds the WHM JSON API URL — used to construct the 'createacct' endpoint URL for the create account call.
    def _whm_url(account: dict, function: str) -> str:
        host = account["host"]
        port = account.get("port", 2087)
        user = account.get("user", "root")
        return f"https://{host}:{port}/json-api/{function}?api.version=1"
Behavior2/5

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

No annotations provided. The description does not disclose behavioral traits such as whether it checks for existing username/domain, requires root, triggers email, or error handling. For a creation tool, this is insufficient.

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 a single concise sentence with no fluff. However, it lacks necessary detail, slightly reducing its value for the word count.

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

Completeness2/5

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

No output schema. The description omits return values, error scenarios, and prerequisites. For a complex creation tool with 6 parameters, the description is not complete enough to guide the agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33% (account and plan have descriptions). The tool description adds no parameter details beyond the schema, such as username rules, domain format, or password requirements. It fails to compensate for low schema coverage.

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 clearly states the action (Create) and the resource (new cPanel hosting account on WHM server). It distinguishes from sibling tools like whm_suspend_account and whm_terminate_account, which are for different operations.

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?

No guidance on when to use this tool vs alternatives (e.g., list_accounts first) or prerequisites. No exclusions or when-not-to-use context provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/manofsadness/ItchWHMMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server