Skip to main content
Glama
JurreBrandsenInfoSupport

Zendesk API MCP Server

delete_organization

Remove an organization from Zendesk by specifying its ID, permanently deleting the organization and its associated data from the system.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesOrganization ID to delete

Implementation Reference

  • The MCP tool handler function for 'delete_organization'. It invokes the Zendesk client to delete the organization by ID and returns a formatted success or error response.
    handler: async ({ id }) => { try { await zendeskClient.deleteOrganization(id); return { content: [{ type: "text", text: `Organization ${id} deleted successfully!` }] }; } catch (error) { return { content: [{ type: "text", text: `Error deleting organization: ${error.message}` }], isError: true }; } }
  • Zod schema defining the input parameter 'id' (number) for the delete_organization tool.
    schema: { id: z.number().describe("Organization ID to delete") },
  • src/server.js:48-52 (registration)
    Registration code in the MCP server that dynamically registers all tools, including 'delete_organization', by iterating over the tools array and calling server.tool().
    allTools.forEach((tool) => { server.tool(tool.name, tool.schema, tool.handler, { description: tool.description, }); });
  • ZendeskClient helper method that performs the HTTP DELETE request to the Zendesk API endpoint for deleting an organization by ID.
    async deleteOrganization(id) { return this.request("DELETE", `/organizations/${id}.json`); }
  • src/server.js:31-34 (registration)
    Construction of the allTools array that includes organizationsTools (containing delete_organization) which is then registered.
    const allTools = [ ...ticketsTools, ...usersTools, ...organizationsTools,

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