delete_ticket
Remove unnecessary or resolved tickets in Freshdesk by specifying the ticket ID, streamlining support operations and maintaining an organized ticket management system.
Instructions
Delete a ticket in Freshdesk.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticket_id | Yes |
Implementation Reference
- src/freshdesk_mcp/server.py:360-370 (handler)The MCP tool handler function that implements the 'delete_ticket' tool by sending a DELETE request to the Freshdesk API to delete the specified ticket.@mcp.tool() async def delete_ticket(ticket_id: int) -> str: """Delete a ticket in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/tickets/{ticket_id}" headers = { "Authorization": f"Basic {base64.b64encode(f'{FRESHDESK_API_KEY}:X'.encode()).decode()}" } async with httpx.AsyncClient() as client: response = await client.delete(url, headers=headers) return response.json()