Skip to main content
Glama
JurreBrandsenInfoSupport

Zendesk API MCP Server

get_talk_stats

Retrieve detailed statistics from Zendesk Talk to analyze call performance, agent activity, and call center metrics for actionable insights.

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": {}, "type": "object" }

Implementation Reference

  • MCP tool handler for 'get_talk_stats' that calls zendeskClient.getTalkStats(), formats the result as JSON text block, or returns error message.
    handler: async () => { try { const result = await zendeskClient.getTalkStats(); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error getting Talk stats: ${error.message}` }], isError: true }; } }
  • Empty input schema for 'get_talk_stats' tool (no parameters required).
    schema: {},
  • src/tools/talk.js:4-26 (registration)
    Defines and exports the 'get_talk_stats' tool as part of talkTools array, which is later imported and registered.
    export const talkTools = [ { name: "get_talk_stats", description: "Get Zendesk Talk statistics", schema: {}, handler: async () => { try { const result = await zendeskClient.getTalkStats(); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error getting Talk stats: ${error.message}` }], isError: true }; } } } ];
  • src/server.js:48-52 (registration)
    Final registration of all tools including 'get_talk_stats' by dynamically calling server.tool() on each tool from allTools (which includes ...talkTools).
    allTools.forEach((tool) => { server.tool(tool.name, tool.schema, tool.handler, { description: tool.description, }); });
  • Helper method in ZendeskClient that performs the actual API request to retrieve Talk statistics from Zendesk.
    async getTalkStats() { return this.request("GET", "/channels/voice/stats.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