Skip to main content
Glama
JurreBrandsenInfoSupport

Zendesk API MCP Server

update_group

Modify group details in Zendesk by updating the name and description of an existing group using its ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesGroup ID to update
nameNoUpdated group name
descriptionNoUpdated group description

Implementation Reference

  • MCP tool handler for 'update_group': validates input, constructs group data, calls zendeskClient.updateGroup, and formats response or error.
    handler: async ({ id, name, description }) => { try { const groupData = {}; if (name !== undefined) groupData.name = name; if (description !== undefined) groupData.description = description; const result = await zendeskClient.updateGroup(id, groupData); return { content: [{ type: "text", text: `Group updated successfully!\n\n${JSON.stringify(result, null, 2)}` }] }; } catch (error) { return { content: [{ type: "text", text: `Error updating group: ${error.message}` }], isError: true }; } }
  • Zod input schema for the 'update_group' tool defining parameters: id (required), name and description (optional).
    schema: { id: z.number().describe("Group ID to update"), name: z.string().optional().describe("Updated group name"), description: z.string().optional().describe("Updated group description") },
  • src/server.js:48-52 (registration)
    Registers the 'update_group' tool (along with others) on the MCP server using server.tool with name, schema, handler, and description.
    allTools.forEach((tool) => { server.tool(tool.name, tool.schema, tool.handler, { description: tool.description, }); });
  • ZendeskClient helper method that makes the PUT API request to update a group by ID with provided data.
    async updateGroup(id, data) { return this.request("PUT", `/groups/${id}.json`, { group: data }); }

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