Skip to main content
Glama

cpanel_dns_records

Retrieve DNS zone records for a domain using cPanel UAPI, enabling management of DNS settings across WHM accounts.

Instructions

Get DNS zone records for a domain via cPanel UAPI

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountYesAccount alias from accounts.json (use list_accounts to see options)
cpanel_userYes
domainYes

Implementation Reference

  • Handler for cpanel_dns_records: calls cPanel UAPI DNS::parse_zone with the given domain/zone to fetch DNS records.
    case "cpanel_dns_records":
        return await _get(client, url("DNS", "parse_zone"), headers, {"zone": args["domain"]})
  • src/tools.py:327-339 (registration)
    Tool definition/registration of cpanel_dns_records in the cpanel_tools() list with input schema (account, cpanel_user, domain).
    Tool(
        name="cpanel_dns_records",
        description="Get DNS zone records for a domain via cPanel UAPI",
        inputSchema={
            "type": "object",
            "properties": {
                **ACCOUNT_PARAM,
                "cpanel_user": {"type": "string"},
                "domain": {"type": "string"}
            },
            "required": ["account", "cpanel_user", "domain"]
        }
    ),
  • src/server.py:43-44 (registration)
    Registration via list_tools() in server.py: cpanel_tools() (which includes cpanel_dns_records) is registered with the MCP server.
    all_tools.extend(cpanel_tools())
    return all_tools
  • Input schema fields for cpanel_dns_records: requires account (alias), cpanel_user (string), and domain (string).
            "cpanel_user": {"type": "string"},
            "domain": {"type": "string"}
        },
        "required": ["account", "cpanel_user", "domain"]
    }
  • Helper _cpanel_url constructs the WHM-proxied UAPI URL used by the handler to call DNS::parse_zone.
    def _cpanel_url(account: dict, module: str, function: str, cpanel_user: str = None) -> str:
        host = account["host"]
        port = account.get("port", 2087)
        # WHM-proxied UAPI call on behalf of a cPanel user
        user = cpanel_user or account.get("cpanel_user", "")
        return f"https://{host}:{port}/json-api/cpanel?api.version=1&cpanel_jsonapi_user={user}&cpanel_jsonapi_module={module}&cpanel_jsonapi_func={function}&cpanel_jsonapi_apiversion=3"
Behavior2/5

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

No annotations are present, so the description carries the full burden. It only states the action ('get') but does not disclose behavioral traits such as authentication requirements, rate limits, or error behavior (e.g., if the domain does not exist).

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

Conciseness5/5

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

The description is a single, compact sentence with no extraneous words. It front-loads the verb and resource effectively, maximizing informational density in minimal space.

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, annotations, and the presence of sibling DNS tools, the description is incomplete. It does not explain the output format (e.g., JSON structure), how returned records are organized, or any constraints like pagination. The agent may struggle to use the result effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 3 required parameters with only 33% description coverage ('account'). The description adds no elaboration on 'cpanel_user' or 'domain', leaving their purpose and constraints unexplained. The parameter names are somewhat self-explanatory, but the low coverage is not compensated.

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 verb 'get' and the resource 'DNS zone records for a domain', with the method 'via cPanel UAPI'. It is specific and distinguishes the tool's function from siblings like 'whm_dns_list_zones' and 'whm_dns_zone_records' by its explicit scope (cPanel).

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 is provided on when to use this tool versus alternatives like 'whm_dns_zone_records' or 'whm_dns_list_zones'. There are no conditions, prerequisites, or exclusions mentioned, leaving the agent without strategic context.

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/manofsadness/ItchWHMMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server