Skip to main content
Glama

Get Client Domains

whmcs_get_client_domains

Retrieve domains owned by a specific client, with optional filters for domain ID, name, and pagination.

Instructions

Get domains owned by a client

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clientidNoThe client ID
domainidNoSpecific domain ID
domainNoFilter by domain name
limitstartNoStarting offset
limitnumNoNumber of results

Implementation Reference

  • src/index.ts:195-214 (registration)
    Tool registration for whmcs_get_client_domains in the MCP server, defining the tool name, input schema, and handler that delegates to whmcsClient.getClientDomains()
    server.registerTool(
        'whmcs_get_client_domains',
        {
            title: 'Get Client Domains',
            description: 'Get domains owned by a client',
            inputSchema: {
                clientid: z.number().optional().describe('The client ID'),
                domainid: z.number().optional().describe('Specific domain ID'),
                domain: z.string().optional().describe('Filter by domain name'),
                limitstart: z.number().optional().describe('Starting offset'),
                limitnum: z.number().optional().describe('Number of results'),
            },
        },
        async (params) => {
            const result = await whmcsClient.getClientDomains(params);
            return {
                content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
            };
        }
    );
  • Input schema definition for the whmcs_get_client_domains tool using Zod validation with optional parameters
    inputSchema: {
        clientid: z.number().optional().describe('The client ID'),
        domainid: z.number().optional().describe('Specific domain ID'),
        domain: z.string().optional().describe('Filter by domain name'),
        limitstart: z.number().optional().describe('Starting offset'),
        limitnum: z.number().optional().describe('Number of results'),
    },
Behavior2/5

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

With no annotations, the description carries full behavioral disclosure burden. It fails to mention any side effects, permissions, return format, or pagination behavior. Simply 'Get domains' is insufficient.

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 extremely concise with no wasted words. However, given the lack of annotations and multiple parameters, additional context would be beneficial without harming conciseness.

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?

No output schema exists, so description should explain what is returned (e.g., list of domain objects). It does not. Also missing behavioral context for a 5-param tool with optional filters.

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% as all 5 parameters have descriptions. The description adds no extra meaning beyond the schema, so baseline 3 is appropriate.

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 'Get domains owned by a client' clearly states the verb (get) and resource (domains). It differentiates from sibling tools like whmcs_get_client_products by focusing on domains, but it does not elaborate on scope or filtering.

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 provided on when to use this tool versus alternatives (e.g., whmcs_get_domain_lock_status). No exclusions or context for optimal use.

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