whmcs_module_terminate
Terminate a service account in WHMCS by providing the Service ID. Use this tool to manage account lifecycle and deactivate services.
Instructions
Terminate a service account
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountid | Yes | Service ID |
Implementation Reference
- src/index.ts:945-960 (registration)Registration of the 'whmcs_module_terminate' MCP tool, including schema and handler lambda that delegates to WhmcsApiClient.moduleTerminate'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:1122-1124 (handler)Core handler implementation in WhmcsApiClient that executes the WHMCS API 'ModuleTerminate' action to terminate the service account.async moduleTerminate(params: { accountid: number }) { return this.call<WhmcsApiResponse>('ModuleTerminate', params); }
- src/index.ts:950-952 (schema)Zod input schema defining the required 'accountid' parameter for the tool.accountid: z.number().describe('Service ID'), }, },