Register Domain
whmcs_register_domainRegister a domain through WHMCS by sending the registration command to the configured registrar using the domain ID or domain name.
Instructions
Send domain registration command to registrar
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "whmcs_register_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domainid | No | Domain ID | |
| domain | No | Domain name |
Implementation Reference
- src/index.ts:607-623 (registration)Tool registration for 'whmcs_register_domain' via server.registerTool(), defining the tool name, inputSchema (domainid and domain as optional numbers), and an async handler that delegates to whmcsClient.registerDomain()
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) }], }; } ); - src/whmcs-client.ts:825-830 (handler)The registerDomain() method on WhmcsApiClient that makes the actual WHMCS API call. It accepts domainid and domain as optional params and calls the WHMCS API action 'DomainRegister'
async registerDomain(params: { domainid?: number; domain?: string; }) { return this.call<WhmcsApiResponse>('DomainRegister', params); } - src/index.ts:612-616 (schema)Input schema for the register_domain tool: domainid (optional number) and domain (optional string)
inputSchema: { domainid: z.number().optional().describe('Domain ID'), domain: z.string().optional().describe('Domain name'), }, },