Skip to main content
Glama

whmcs_module_unsuspend

Unsuspend a suspended service account in WHMCS by providing the service ID to restore access and functionality.

Instructions

Unsuspend a service account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountidYesService ID

Implementation Reference

  • Core implementation of the unsuspend tool: calls WHMCS ModuleUnsuspend API action with the service account ID.
    async moduleUnsuspend(params: { accountid: number }) {
        return this.call<WhmcsApiResponse>('ModuleUnsuspend', params);
    }
  • src/index.ts:928-943 (registration)
    Registers the whmcs_module_unsuspend tool with the MCP server, defines input schema (accountid), and provides thin wrapper handler that delegates to WhmcsApiClient.moduleUnsuspend.
        'whmcs_module_unsuspend',
        {
            title: 'Module Unsuspend',
            description: 'Unsuspend a service account',
            inputSchema: {
                accountid: z.number().describe('Service ID'),
            },
        },
        async (params) => {
            const result = await whmcsClient.moduleUnsuspend(params);
            return {
                content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
            };
        }
    );
  • Zod input schema validation for the tool: requires accountid as number (service ID).
        inputSchema: {
            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