delete_automation
Remove automations from Zendesk Support by specifying the automation ID, enabling streamlined management of workflows through the Zendesk API MCP Server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Automation ID to delete |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"id": {
"description": "Automation ID to delete",
"type": "number"
}
},
"required": [
"id"
],
"type": "object"
}
Implementation Reference
- src/tools/automations.js:154-169 (handler)Handler function that executes the delete_automation tool logic by calling the Zendesk client delete method.handler: async ({ id }) => { try { await zendeskClient.deleteAutomation(id); return { content: [{ type: "text", text: `Automation ${id} deleted successfully!` }] }; } catch (error) { return { content: [{ type: "text", text: `Error deleting automation: ${error.message}` }], isError: true }; } }
- src/tools/automations.js:151-153 (schema)Input schema using Zod for the automation ID parameter.schema: { id: z.number().describe("Automation ID to delete") },
- src/server.js:48-52 (registration)Registration of all tools including delete_automation via the MCP server's tool method in a loop over allTools which includes automationsTools.allTools.forEach((tool) => { server.tool(tool.name, tool.schema, tool.handler, { description: tool.description, }); });
- src/zendesk-client.js:245-247 (helper)Supporting ZendeskClient method that performs the actual DELETE API request to delete the automation.async deleteAutomation(id) { return this.request("DELETE", `/automations/${id}.json`); }