Skip to main content
Glama

Delete Order

whmcs_delete_order

Delete a WHMCS order by providing its numeric order ID. This action is permanent; use only when necessary.

Instructions

Delete an order (use with caution)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderidYesOrder ID

Implementation Reference

  • src/index.ts:834-849 (registration)
    Registration of the 'whmcs_delete_order' tool with the MCP server. Defines input schema (orderid: number) and delegates execution to whmcsClient.deleteOrder().
    server.registerTool(
        'whmcs_delete_order',
        {
            title: 'Delete Order',
            description: 'Delete an order (use with caution)',
            inputSchema: {
                orderid: z.number().describe('Order ID'),
            },
        },
        async (params) => {
            const result = await whmcsClient.deleteOrder(params);
            return {
                content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
            };
        }
    );
  • Implementation of the deleteOrder method on the WHMCS API client. Calls the WHMCS 'DeleteOrder' API action via the generic call() method.
    async deleteOrder(params: { orderid: number }) {
        return this.call<WhmcsApiResponse>('DeleteOrder', params);
    }
Behavior2/5

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

With no annotations, the description bears full burden. 'Use with caution' hints at destructiveness but lacks detail on reversibility, cascading effects (e.g., on invoices or products), or required permissions.

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

Conciseness4/5

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

The description is very concise (6 words plus a parenthetical), with no wasted words. Although brief, it conveys the core action. However, it could be slightly more informative without sacrificing conciseness.

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

Completeness3/5

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

Given the simple nature (single parameter, no output schema), the description covers the basics but lacks important context about consequences, making it only minimally complete.

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 has one parameter (orderid) with full coverage and a description ('Order ID'). The tool description adds no additional meaning, so baseline score of 3 applies.

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 clearly states the verb 'delete' and resource 'order', matching the name and title. However, it does not explicitly differentiate from sibling tools like whmcs_cancel_order or whmcs_fraud_order, which have similar purposes.

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?

The description only offers a warning ('use with caution') but provides no guidance on when to use this tool versus alternatives, nor does it mention prerequisites or side effects.

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