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
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action: 'create' a new audit or check 'status' | |
| contact_id | Yes | Contact ID for the audit | |
| params | No | Audit parameters (required for 'create': audit documents, etc.) |
Implementation Reference
- src/tools/contact.ts:227-249 (handler)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, }; } } - src/tools/contact.ts:213-226 (registration)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.)"), },