Skip to main content
Glama

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
NameRequiredDescriptionDefault
accountidYesService 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) }], }; } );
  • 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); }
  • Zod input schema defining the required 'accountid' parameter for the tool.
    accountid: z.number().describe('Service ID'), }, },

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