Skip to main content
Glama

Renew Domain

whmcs_renew_domain

Renew a domain by sending a renewal command to the registrar using the domain ID.

Instructions

Send domain renewal command to registrar

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainidYesDomain ID

Implementation Reference

  • src/index.ts:642-657 (registration)
    Tool registration for 'whmcs_renew_domain' in the MCP server. Defines the tool name, description, input schema (accepting domainid), and the handler that delegates to whmcsClient.renewDomain().
    server.registerTool(
        'whmcs_renew_domain',
        {
            title: 'Renew Domain',
            description: 'Send domain renewal command to registrar',
            inputSchema: {
                domainid: z.number().describe('Domain ID'),
            },
        },
        async (params) => {
            const result = await whmcsClient.renewDomain(params);
            return {
                content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
            };
        }
    );
  • The actual implementation logic in the WHMCS API client. The renewDomain method takes a domainid parameter and calls the WHMCS 'DomainRenew' API action via the generic call() method.
    async renewDomain(params: {
        domainid: number;
    }) {
        return this.call<WhmcsApiResponse>('DomainRenew', params);
    }
  • Input schema definition for the whmcs_renew_domain tool, specifying a required numeric domainid parameter.
    inputSchema: {
        domainid: z.number().describe('Domain ID'),
    },
  • The generic call() method in WhmcsApiClient that handles all WHMCS API requests including DomainRenew. It constructs the request URL, builds form-encoded POST data with authentication credentials, and handles the response.
    async call<T extends WhmcsApiResponse>(action: string, params: Record<string, unknown> = {}): Promise<T> {
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It only says 'Send domain renewal command' without stating side effects like charges, renewal period, or whether it is destructive.

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 a single, front-loaded sentence with no wasted words. However, it is so brief that it lacks important details, making it less effective.

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?

Given the lack of output schema and annotations, the description should explain what happens after sending the command (e.g., return status). It provides no such context, leaving the agent uninformed.

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 'domainid' described as 'Domain ID' in the schema. The tool description adds no additional meaning beyond that, which is adequate but not helpful.

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 (renew domain) and the resource (domain via registrar), using a specific verb and resource. It distinguishes from siblings like whmcs_register_domain and whmcs_transfer_domain.

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 provides no guidance on when to use this tool versus alternatives, nor does it mention prerequisites such as domain existence or expiration status.

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