Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

get_ticket_conversation

Retrieve detailed ticket conversations from Freshdesk to streamline support operations and enhance ticket management. Use this tool to access specific ticket interactions for improved customer service.

Instructions

Get a ticket conversation in Freshdesk.

Input Schema

NameRequiredDescriptionDefault
ticket_idYes

Input Schema (JSON Schema)

{ "properties": { "ticket_id": { "title": "Ticket Id", "type": "integer" } }, "required": [ "ticket_id" ], "title": "get_ticket_conversationArguments", "type": "object" }

Implementation Reference

  • The handler function for the 'get_ticket_conversation' tool. It retrieves the conversation history for a specified ticket ID from the Freshdesk API using an authenticated GET request. The @mcp.tool() decorator registers it as an MCP tool.
    @mcp.tool() async def get_ticket_conversation(ticket_id: int)-> list[Dict[str, Any]]: """Get a ticket conversation in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/tickets/{ticket_id}/conversations" headers = { "Authorization": f"Basic {base64.b64encode(f'{FRESHDESK_API_KEY}:X'.encode()).decode()}" } async with httpx.AsyncClient() as client: response = await client.get(url, headers=headers) return response.json()
  • The @mcp.tool() decorator registers the get_ticket_conversation function as an MCP tool.
    @mcp.tool()

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/effytech/freshdesk_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server