get_group
Retrieve detailed information about a specific Zendesk group using its unique ID to manage support team organization and access permissions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Group ID |
Implementation Reference
- src/tools/groups.js:36-51 (handler)The MCP tool handler for 'get_group', which retrieves the group by ID using zendeskClient and formats the response as text content or error.handler: async ({ id }) => { try { const result = await zendeskClient.getGroup(id); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error getting group: ${error.message}` }], isError: true }; } }
- src/tools/groups.js:33-35 (schema)Zod input schema for the 'get_group' tool, requiring a numeric 'id' parameter.schema: { id: z.number().describe("Group ID") },
- src/server.js:48-52 (registration)Registration of the 'get_group' tool (among others from groupsTools) to the MCP server via dynamic loop over allTools.allTools.forEach((tool) => { server.tool(tool.name, tool.schema, tool.handler, { description: tool.description, }); });
- src/zendesk-client.js:149-151 (helper)Helper method in ZendeskClient that performs the actual API GET request to retrieve a group by ID, invoked by the tool handler.async getGroup(id) { return this.request("GET", `/groups/${id}.json`); }