Skip to main content
Glama
JurreBrandsenInfoSupport

Zendesk API MCP Server

delete_view

Remove specific views in Zendesk by providing the View ID to streamline organization and maintain a clutter-free workspace.

Input Schema

NameRequiredDescriptionDefault
idYesView ID to delete

Input Schema (JSON Schema)

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

Implementation Reference

  • The handler function that executes the logic for the 'delete_view' tool: calls zendeskClient.deleteView(id) and returns formatted success or error response.
    handler: async ({ id }) => { try { await zendeskClient.deleteView(id); return { content: [{ type: "text", text: `View ${id} deleted successfully!` }] }; } catch (error) { return { content: [{ type: "text", text: `Error deleting view: ${error.message}` }], isError: true }; } }
  • The Zod input schema for the delete_view tool, validating a numeric 'id' parameter.
    schema: { id: z.number().describe("View ID to delete") },
  • The complete tool registration object for 'delete_view', part of the viewsTools export which is later registered in the MCP server.
    { name: "delete_view", description: "Delete a view", schema: { id: z.number().describe("View ID to delete") }, handler: async ({ id }) => { try { await zendeskClient.deleteView(id); return { content: [{ type: "text", text: `View ${id} deleted successfully!` }] }; } catch (error) { return { content: [{ type: "text", text: `Error deleting view: ${error.message}` }], isError: true }; } } }
  • Supporting helper method in ZendeskClient class that performs the HTTP DELETE request to the Zendesk Views API endpoint.
    async deleteView(id) { return this.request("DELETE", `/views/${id}.json`); }
  • src/server.js:48-52 (registration)
    The MCP server registration loop where tools from viewsTools (including delete_view) are registered via server.tool().
    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