Skip to main content
Glama
JurreBrandsenInfoSupport

Zendesk API MCP Server

get_article

Retrieve specific articles from Zendesk Guide using article ID to access help content and documentation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesArticle ID

Implementation Reference

  • Handler function for the 'get_article' MCP tool. Fetches the Zendesk Help Center article by ID using zendeskClient and returns a formatted text response or error.
    handler: async ({ id }) => {
      try {
        const result = await zendeskClient.getArticle(id);
        return {
          content: [{ 
            type: "text", 
            text: JSON.stringify(result, null, 2)
          }]
        };
      } catch (error) {
        return {
          content: [{ type: "text", text: `Error getting article: ${error.message}` }],
          isError: true
        };
      }
  • Zod input schema for the 'get_article' tool, requiring a numeric 'id' parameter.
    schema: {
      id: z.number().describe("Article ID")
    },
  • src/server.js:48-52 (registration)
    Registers the 'get_article' tool with the MCP server via server.tool(), using the name, schema, handler, and description from the tool definition.
    allTools.forEach((tool) => {
      server.tool(tool.name, tool.schema, tool.handler, {
        description: tool.description,
      });
    });
  • ZendeskClient helper method that performs the API GET request to retrieve a specific Help Center article by ID.
    async getArticle(id) {
      return this.request("GET", `/help_center/articles/${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