Skip to main content
Glama
JurreBrandsenInfoSupport

Zendesk API MCP Server

get_ticket

Retrieve specific Zendesk ticket details by providing the ticket ID, enabling efficient ticket management and data access through the Zendesk API MCP Server.

Input Schema

NameRequiredDescriptionDefault
idYesTicket ID

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "id": { "description": "Ticket ID", "type": "number" } }, "required": [ "id" ], "type": "object" }

Implementation Reference

  • The handler function for the 'get_ticket' tool. It takes a ticket ID, fetches the ticket using zendeskClient.getTicket(id), and returns the JSON-formatted result or an error message.
    handler: async ({ id }) => { try { const result = await zendeskClient.getTicket(id); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; } catch (error) { return { content: [ { type: "text", text: `Error getting ticket: ${error.message}` }, ], isError: true, }; } },
  • Zod schema defining the input for the get_ticket tool: a required ticket ID as a number.
    schema: { id: z.number().describe("Ticket ID"), },
  • src/server.js:48-52 (registration)
    Loop that registers all tools, including 'get_ticket', to the MCP server by calling server.tool with the tool's name, schema, handler, and description.
    allTools.forEach((tool) => { server.tool(tool.name, tool.schema, tool.handler, { description: tool.description, }); });
  • Low-level ZendeskClient method that performs the API request to retrieve a specific ticket by ID.
    async getTicket(id) { return this.request("GET", `/tickets/${id}.json`); }

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