Skip to main content
Glama
JurreBrandsenInfoSupport

Zendesk API MCP Server

get_view

Retrieve a specific Zendesk view by its ID to access ticket filtering and organization settings for support management.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesView ID

Implementation Reference

  • The handler function for the 'get_view' tool. It takes a view ID, fetches the view data from Zendesk client, and returns the JSON-formatted result or an error message.
    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 }; } }
  • Zod schema for the 'get_view' tool input: requires a numeric view ID.
    schema: { id: z.number().describe("View ID") },
  • src/server.js:48-52 (registration)
    Registers the 'get_view' tool (among others) with the MCP server using server.tool(tool.name, tool.schema, tool.handler, description). Note that get_view is included via ...viewsTools in allTools.
    allTools.forEach((tool) => { server.tool(tool.name, tool.schema, tool.handler, { description: tool.description, }); });
  • ZendeskClient.getView(id) method called by the handler, which performs the actual API GET request to retrieve the view.
    async getView(id) { return this.request("GET", `/views/${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