Skip to main content
Glama
JurreBrandsenInfoSupport

Zendesk API MCP Server

delete_group

Remove a specific group from your Zendesk instance by providing its unique Group ID. This tool ensures efficient group management within Zendesk Support.

Input Schema

NameRequiredDescriptionDefault
idYesGroup ID to delete

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "id": { "description": "Group ID to delete", "type": "number" } }, "required": [ "id" ], "type": "object" }

Implementation Reference

  • Handler function for the 'delete_group' tool. Takes group ID, deletes the group via Zendesk client, returns success or error response.
    handler: async ({ id }) => { try { await zendeskClient.deleteGroup(id); return { content: [{ type: "text", text: `Group ${id} deleted successfully!` }] }; } catch (error) { return { content: [{ type: "text", text: `Error deleting group: ${error.message}` }], isError: true }; }
  • Zod schema defining the input parameter 'id' (number) for the delete_group tool.
    schema: { id: z.number().describe("Group ID to delete") },
  • src/server.js:48-52 (registration)
    Top-level registration of all tools including 'delete_group' with the MCP server via server.tool(tool.name, ...).
    allTools.forEach((tool) => { server.tool(tool.name, tool.schema, tool.handler, { description: tool.description, }); });
  • ZendeskClient helper method that performs the actual DELETE API request to delete the group.
    async deleteGroup(id) { return this.request("DELETE", `/groups/${id}.json`); }
  • Local tool object definition for 'delete_group' within the groupsTools array, which is later registered.
    { name: "delete_group", description: "Delete a group", schema: { id: z.number().describe("Group ID to delete") }, handler: async ({ id }) => { try { await zendeskClient.deleteGroup(id); return { content: [{ type: "text", text: `Group ${id} deleted successfully!` }] }; } catch (error) { return { content: [{ type: "text", text: `Error deleting group: ${error.message}` }], isError: true }; } } }

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