create_group
Create new support groups in Zendesk to organize agents and manage ticket routing. Specify group name and optional description for team organization.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Group name | |
| description | No | Group description |
Implementation Reference
- src/tools/groups.js:60-80 (handler)The MCP tool handler function for 'create_group'. It constructs group data from inputs and delegates to zendeskClient.createGroup, returning a formatted success message or error.handler: async ({ name, description }) => { try { const groupData = { name, description }; const result = await zendeskClient.createGroup(groupData); return { content: [{ type: "text", text: `Group created successfully!\n\n${JSON.stringify(result, null, 2)}` }] }; } catch (error) { return { content: [{ type: "text", text: `Error creating group: ${error.message}` }], isError: true }; } }
- src/tools/groups.js:56-59 (schema)Zod schema defining the input parameters for the create_group tool: required 'name' and optional 'description'.schema: { name: z.string().describe("Group name"), description: z.string().optional().describe("Group description") },
- src/server.js:48-52 (registration)Registration loop that adds the 'create_group' tool (included in groupsTools) to the MCP server using server.tool.allTools.forEach((tool) => { server.tool(tool.name, tool.schema, tool.handler, { description: tool.description, }); });
- src/zendesk-client.js:153-155 (helper)Helper method in ZendeskClient that makes the API POST request to /groups.json to create a new group.async createGroup(data) { return this.request("POST", "/groups.json", { group: data }); }