opnsense_acme_delete_account
Delete an ACME account by UUID and apply the changes to synchronize configuration.
Instructions
Delete an ACME account by UUID. Run opnsense_acme_apply afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | UUID of the account to delete |
Implementation Reference
- src/tools/acme.ts:372-376 (handler)The handler function that executes the 'opnsense_acme_delete_account' tool logic. It parses the UUID using DeleteAccountSchema, then sends a POST request to '/acmeclient/accounts/del/{uuid}' to delete the ACME account.
case "opnsense_acme_delete_account": { const { uuid } = DeleteAccountSchema.parse(args); const result = await client.post(`/acmeclient/accounts/del/${uuid}`); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } - src/tools/acme.ts:116-118 (schema)The DeleteAccountSchema input validation schema. It validates that the input contains a 'uuid' field conforming to UuidSchema (a string with UUID format).
const DeleteAccountSchema = z.object({ uuid: UuidSchema, }); - src/tools/acme.ts:178-188 (registration)The tool registration definition within acmeToolDefinitions array. It declares the tool name ('opnsense_acme_delete_account'), description, and inputSchema with a required 'uuid' string property.
{ name: "opnsense_acme_delete_account", description: "Delete an ACME account by UUID. Run opnsense_acme_apply afterwards.", inputSchema: { type: "object" as const, properties: { uuid: { type: "string", description: "UUID of the account to delete" }, }, required: ["uuid"], }, }, - src/utils/validation.ts:3-5 (helper)The UuidSchema helper used by DeleteAccountSchema. It validates that a string is a properly formatted UUID.
export const UuidSchema = z .string() .uuid("Invalid UUID format"); - src/index.ts:65-65 (registration)The tool handler registration in the central index. It iterates over acmeToolDefinitions and maps each tool name (including 'opnsense_acme_delete_account') to the handleAcmeTool function.
for (const def of acmeToolDefinitions) toolHandlers.set(def.name, handleAcmeTool);