Skip to main content
Glama

manage_cn_audit

Create or check status of China (.cn) domain audit requests required for registration. Submit documents for new audits or monitor existing ones.

Instructions

Manage China (.cn) domain audit requests. Required for .cn domain registration. Create a new audit or check the status of an existing one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction: 'create' a new audit or check 'status'
contact_idYesContact ID for the audit
paramsNoAudit parameters (required for 'create': audit documents, etc.)

Implementation Reference

  • The handler function for 'manage_cn_audit' which executes either 'createCnAudit' or 'getCnAuditStatus' via the client.
    async ({ action, contact_id, params }) => {
      try {
        let result;
        if (action === "create") {
          result = await client.createCnAudit(contact_id, params || {});
        } else {
          result = await client.getCnAuditStatus(contact_id);
        }
        return {
          content: [
            { type: "text" as const, text: JSON.stringify(result, null, 2) },
          ],
        };
      } catch (error) {
        const msg = error instanceof Error ? error.message : String(error);
        return {
          content: [
            { type: "text" as const, text: `CN audit operation failed: ${msg}` },
          ],
          isError: true,
        };
      }
    }
  • Registration of the 'manage_cn_audit' tool with its schema definition using Zod.
    server.tool(
      "manage_cn_audit",
      "Manage China (.cn) domain audit requests. Required for .cn domain registration. " +
        "Create a new audit or check the status of an existing one.",
      {
        action: z
          .enum(["create", "status"])
          .describe("Action: 'create' a new audit or check 'status'"),
        contact_id: z.string().describe("Contact ID for the audit"),
        params: z
          .record(z.string())
          .optional()
          .describe("Audit parameters (required for 'create': audit documents, etc.)"),
      },

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/mikusnuz/dynadot-mcp'

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