Skip to main content
Glama

whmcs_register_domain

Register a domain name by sending the registration command to the registrar using the domain ID and domain name.

Instructions

Send domain registration command to registrar

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainidNoDomain ID
domainNoDomain name

Implementation Reference

  • Implements the tool handler by invoking the WHMCS 'DomainRegister' API action via the generic call method, passing domainid or domain as parameters.
    async registerDomain(params: { domainid?: number; domain?: string; }) { return this.call<WhmcsApiResponse>('DomainRegister', params); }
  • Zod schema for tool inputs: optional domainid (number) and domain (string). Used for input validation in the MCP tool registration.
    inputSchema: { domainid: z.number().optional().describe('Domain ID'), domain: z.string().optional().describe('Domain name'), }, },
  • src/index.ts:588-604 (registration)
    MCP server tool registration for 'whmcs_register_domain', including title, description, input schema, and async handler that calls whmcsClient.registerDomain and formats response as JSON text.
    server.registerTool( 'whmcs_register_domain', { title: 'Register Domain', description: 'Send domain registration command to registrar', inputSchema: { domainid: z.number().optional().describe('Domain ID'), domain: z.string().optional().describe('Domain name'), }, }, async (params) => { const result = await whmcsClient.registerDomain(params); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; } );

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