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
| Name | Required | Description | Default |
|---|---|---|---|
| ticket_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"ticket_id": {
"title": "Ticket Id",
"type": "integer"
}
},
"required": [
"ticket_id"
],
"title": "get_ticket_conversationArguments",
"type": "object"
}
Implementation Reference
- src/freshdesk_mcp/server.py:395-404 (handler)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()
- src/freshdesk_mcp/server.py:395-395 (registration)The @mcp.tool() decorator registers the get_ticket_conversation function as an MCP tool.@mcp.tool()