delete_group
Remove a group from Zendesk Support by specifying its ID to manage organizational structure and access permissions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Group ID to delete |
Implementation Reference
- src/tools/groups.js:118-133 (handler)The main handler function for the 'delete_group' tool. It takes a group ID, calls zendeskClient.deleteGroup(id), and returns a success message 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 }; } } - src/tools/groups.js:115-117 (schema)Zod schema defining the input parameter 'id' as a required number for the group to delete.
schema: { id: z.number().describe("Group ID to delete") }, - src/server.js:48-52 (registration)Registration of all tools, including 'delete_group' from groupsTools, with the MCP server using server.tool().
allTools.forEach((tool) => { server.tool(tool.name, tool.schema, tool.handler, { description: tool.description, }); }); - src/zendesk-client.js:161-163 (helper)Helper method in ZendeskClient that performs the actual API DELETE request to remove the group.
async deleteGroup(id) { return this.request("DELETE", `/groups/${id}.json`); } - src/server.js:35-35 (registration)Inclusion of groupsTools (containing delete_group) in the allTools array for registration.
...groupsTools,