Skip to main content
Glama

Module Terminate

whmcs_module_terminate

Terminate 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

TableJSON Schema
NameRequiredDescriptionDefault
accountidYesService 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) }],
            };
        }
    );
  • 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);
    }
  • 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'),
    },
Behavior2/5

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

Without annotations, the description carries full burden for behavioral disclosure. It fails to mention that termination is typically irreversible, may require specific permissions, or what side effects occur (e.g., billing cancellation). This is a significant gap for a destructive action.

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

Conciseness3/5

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

The description is extremely concise at one phrase, but this brevity sacrifices necessary detail. It is front-loaded but incomplete, earning an average score for structure.

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 nested objects), the description lacks completeness. It does not specify whether termination is immediate, reversible, or what happens to associated records (e.g., invoices, emails). An output schema is also absent, leaving agents without return value expectations.

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?

Schema coverage is 100% with the parameter accountid described as 'Service ID'. The description adds no additional meaning beyond the schema, meeting the baseline expectation but not compensating for any gaps.

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

Purpose4/5

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

The description states 'Terminate a service account', which is a clear verb+resource combination. While it doesn't explicitly distinguish from sibling tools like module_suspend, the term 'terminate' implies a final action, differentiating it from suspension or unsuspension.

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 like module_suspend or module_unsuspend. The description lacks context for decision-making, which is critical for an AI agent choosing between module lifecycle operations.

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