Module Terminate
whmcs_module_terminateTerminate a service account by specifying the service ID. This tool removes the account from WHMCS, halting its associated services.
Instructions
Terminate a service account
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountid | Yes | Service ID |
Implementation Reference
- src/index.ts:963-978 (registration)Registration of the 'whmcs_module_terminate' tool with its input schema (accepting accountid) and handler that delegates to whmcsClient.moduleTerminate().
server.registerTool( 'whmcs_module_terminate', { title: 'Module Terminate', description: 'Terminate a service account', inputSchema: { accountid: z.number().describe('Service ID'), }, }, async (params) => { const result = await whmcsClient.moduleTerminate(params); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; } ); - src/whmcs-client.ts:1135-1137 (handler)The moduleTerminate method on the WhmcsApiClient class that actually calls the WHMCS API with action 'ModuleTerminate' to terminate a service account.
async moduleTerminate(params: { accountid: number }) { return this.call<WhmcsApiResponse>('ModuleTerminate', params); } - src/index.ts:967-970 (schema)Input schema for the whmcs_module_terminate tool, requiring a single numeric 'accountid' parameter representing the service ID to terminate.
description: 'Terminate a service account', inputSchema: { accountid: z.number().describe('Service ID'), },