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
| Name | Required | Description | Default |
|---|---|---|---|
| accountid | Yes | Service ID | |
| servicepassword | No | New password |
Implementation Reference
- src/whmcs-client.ts:1129-1134 (handler)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) }], }; } );