Skip to main content
Glama
JurreBrandsenInfoSupport

Zendesk API MCP Server

list_views

Retrieve and manage ticket views in Zendesk Support with pagination controls to organize and access customer service workflows efficiently.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for pagination
per_pageNoNumber of views per page (max 100)

Implementation Reference

  • The primary handler function for the 'list_views' MCP tool, which prepares parameters, calls the Zendesk client, and returns formatted JSON results or an error message.
    handler: async ({ page, per_page }) => { try { const params = { page, per_page }; const result = await zendeskClient.listViews(params); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error listing views: ${error.message}` }], isError: true }; } }
  • Zod input schema defining optional pagination parameters for the list_views tool.
    schema: { page: z.number().optional().describe("Page number for pagination"), per_page: z.number().optional().describe("Number of views per page (max 100)") },
  • ZendeskClient helper method that performs the actual API request to retrieve the list of views.
    async listViews(params) { return this.request("GET", "/views.json", null, params); }
  • src/server.js:31-52 (registration)
    Tool registration block where viewsTools (containing list_views) is included in allTools and each tool is registered with the MCP server via server.tool().
    const allTools = [ ...ticketsTools, ...usersTools, ...organizationsTools, ...groupsTools, ...macrosTools, ...viewsTools, ...triggersTools, ...automationsTools, ...searchTools, ...helpCenterTools, ...supportTools, ...talkTools, ...chatTools, ]; // Register each tool with the server allTools.forEach((tool) => { server.tool(tool.name, tool.schema, tool.handler, { description: tool.description, }); });

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