Skip to main content
Glama

Module Unsuspend

whmcs_module_unsuspend

Unsuspend a service account in WHMCS by providing its ID, restoring full functionality to the client's service.

Instructions

Unsuspend a service account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountidYesService ID

Implementation Reference

  • src/index.ts:946-961 (registration)
    Registration of the 'whmcs_module_unsuspend' tool with the MCP server. Defines the tool name, title, description, input schema (accountid), and the handler that delegates to whmcsClient.moduleUnsuspend().
    server.registerTool(
        '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) }],
            };
        }
    );
  • Input schema for the whmcs_module_unsuspend tool. It accepts a single required parameter: accountid (number) representing the service ID to unsuspend.
    inputSchema: {
        accountid: z.number().describe('Service ID'),
    },
  • Handler function for the whmcs_module_unsuspend tool. Calls whmcsClient.moduleUnsuspend(params) and returns the result as JSON text.
    async (params) => {
        const result = await whmcsClient.moduleUnsuspend(params);
        return {
            content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
        };
    }
  • The moduleUnsuspend method on the WhmcsApiClient class. Makes an API call to WHMCS with the 'ModuleUnsuspend' action, passing the accountid parameter.
     * Unsuspend a module account
     */
    async moduleUnsuspend(params: { accountid: number }) {
        return this.call<WhmcsApiResponse>('ModuleUnsuspend', params);
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Without annotations, the description must disclose behaviors, but it only states 'Unsuspend a service account'. It omits crucial details: prerequisites (e.g., service must be suspended), side effects (e.g., module re-activation), error conditions, and whether the operation is reversible.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-structured sentence that conveys the core purpose without unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite low complexity (1 param, no output schema), the description fails to specify return values, prerequisites, success/failure indicators, or the relationship with sibling tools (e.g., whmcs_module_suspend).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema covers the sole parameter 'accountid' with description 'Service ID'. The tool description adds no further meaning beyond confirming the parameter's role, so it meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Unsuspend') and the resource ('service account'), distinguishing it from sibling tools like whmcs_module_suspend (opposite) and whmcs_module_create/terminate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives (e.g., whmcs_module_suspend for suspension, whmcs_module_create for creation). The description lacks context for decision-making.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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-tool'

If you have feedback or need assistance with the MCP directory API, please join our Discord server