Skip to main content
Glama
JurreBrandsenInfoSupport

Zendesk API MCP Server

delete_automation

Delete Zendesk automations by ID to remove outdated or unnecessary automated workflows from your support system.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesAutomation ID to delete

Implementation Reference

  • Handler function that invokes the Zendesk client to delete the automation by ID and returns formatted success or error response.
    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
        };
      }
    }
  • Input schema using Zod, requiring a numeric 'id' parameter for the automation to delete.
    schema: {
      id: z.number().describe("Automation ID to delete")
    },
  • src/server.js:47-52 (registration)
    Registration code that dynamically registers all tools, including 'delete_automation' from automationsTools spread into allTools.
    // Register each tool with the server
    allTools.forEach((tool) => {
      server.tool(tool.name, tool.schema, tool.handler, {
        description: tool.description,
      });
    });
  • ZendeskClient helper method performing the actual HTTP DELETE request to the Zendesk automations API endpoint.
    async deleteAutomation(id) {
      return this.request("DELETE", `/automations/${id}.json`);
    }

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/JurreBrandsenInfoSupport/zendesk-mcp'

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