Skip to main content
Glama

whmcs_module_change_password

Change passwords for service accounts in WHMCS. Specify the service ID and new password to update credentials.

Instructions

Change password for a service account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountidYesService ID
servicepasswordNoNew password

Implementation Reference

  • The handler function moduleChangePassword that executes the WHMCS ModuleChangePassword API call to change the password for a service account.
    async moduleChangePassword(params: {
        accountid: number;
        servicepassword?: string;
    }) {
        return this.call<WhmcsApiResponse>('ModuleChangePassword', params);
    }
  • src/index.ts:962-977 (registration)
    Registers the MCP tool 'whmcs_module_change_password' including input schema validation and delegates execution to the whmcsClient.moduleChangePassword handler.
        'whmcs_module_change_password',
        {
            title: 'Module Change Password',
            description: 'Change password for a service account',
            inputSchema: {
                accountid: z.number().describe('Service ID'),
                servicepassword: z.string().optional().describe('New password'),
            },
        },
        async (params) => {
            const result = await whmcsClient.moduleChangePassword(params);
            return {
                content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
            };
        }
    );

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/scarecr0w12/whmcs-mcp-server'

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