Skip to main content
Glama
JurreBrandsenInfoSupport

Zendesk API MCP Server

create_user

Add new users to Zendesk with name, email, role, and contact details to manage customer support accounts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesUser's full name
emailYesUser's email address
roleNoUser's role
phoneNoUser's phone number
organization_idNoID of the user's organization
tagsNoTags for the user
notesNoNotes about the user

Implementation Reference

  • MCP tool handler for 'create_user' that constructs user data from inputs and delegates to zendeskClient.createUser, handling success/error responses.
    handler: async ({ name, email, role, phone, organization_id, tags, notes }) => { try { const userData = { name, email, role, phone, organization_id, tags, notes }; const result = await zendeskClient.createUser(userData); return { content: [{ type: "text", text: `User created successfully!\n\n${JSON.stringify(result, null, 2)}` }] }; } catch (error) { return { content: [{ type: "text", text: `Error creating user: ${error.message}` }], isError: true }; }
  • Zod schema defining the input parameters and validation for the 'create_user' tool.
    schema: { name: z.string().describe("User's full name"), email: z.string().email().describe("User's email address"), role: z.enum(["end-user", "agent", "admin"]).optional().describe("User's role"), phone: z.string().optional().describe("User's phone number"), organization_id: z.number().optional().describe("ID of the user's organization"), tags: z.array(z.string()).optional().describe("Tags for the user"), notes: z.string().optional().describe("Notes about the user") },
  • src/server.js:48-52 (registration)
    Dynamic registration of all tools, including 'create_user' from usersTools, to the MCP server via server.tool() calls.
    allTools.forEach((tool) => { server.tool(tool.name, tool.schema, tool.handler, { description: tool.description, }); });
  • ZendeskClient helper method invoked by the tool handler to perform the actual API POST request to create a user.
    async createUser(data) { return this.request("POST", "/users.json", { user: 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