Skip to main content
Glama
JurreBrandsenInfoSupport

Zendesk API MCP Server

get_view

Fetch specific Zendesk support views by providing the View ID, enabling efficient management and retrieval of ticket data via the Zendesk API MCP Server.

Input Schema

NameRequiredDescriptionDefault
idYesView ID

Input Schema (JSON Schema)

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

Implementation Reference

  • The handler function that implements the core logic of the 'get_view' tool by calling zendeskClient.getView(id) and formatting the response or error.
    handler: async ({ id }) => { try { const result = await zendeskClient.getView(id); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error getting view: ${error.message}` }], isError: true }; } }
  • Input schema validation using Zod for the required 'id' parameter.
    schema: { id: z.number().describe("View ID") },
  • The complete tool definition object for 'get_view', which is spread into the allTools array and registered with the MCP server.
    { name: "get_view", description: "Get a specific view by ID", schema: { id: z.number().describe("View ID") }, handler: async ({ id }) => { try { const result = await zendeskClient.getView(id); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error getting view: ${error.message}` }], isError: true }; } } },
  • Helper method in ZendeskClient class that performs the HTTP GET request to the Zendesk Views API endpoint.
    async getView(id) { return this.request("GET", `/views/${id}.json`); }
  • src/server.js:37-37 (registration)
    Inclusion of viewsTools (containing get_view) into the allTools array, which is then registered with the MCP server.
    ...viewsTools,

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