Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

delete_ticket_summary

Remove ticket summaries in Freshdesk using a specified ticket ID to streamline support ticket management and maintain cleaner records.

Instructions

Delete the summary of a ticket in Freshdesk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ticket_idYes

Implementation Reference

  • The main handler function for the 'delete_ticket_summary' tool. It sends a DELETE request to the Freshdesk API to remove the summary of the specified ticket. Includes error handling and success response formatting. The @mcp.tool() decorator registers it as an MCP tool.
    @mcp.tool() async def delete_ticket_summary(ticket_id: int) -> Dict[str, Any]: """Delete the summary of a ticket in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/tickets/{ticket_id}/summary" headers = { "Authorization": f"Basic {base64.b64encode(f'{FRESHDESK_API_KEY}:X'.encode()).decode()}", "Content-Type": "application/json" } async with httpx.AsyncClient() as client: try: response = await client.delete(url, headers=headers) if response.status_code == 204: return {"success": True, "message": "Ticket summary deleted successfully"} response.raise_for_status() return response.json() except httpx.HTTPStatusError as e: return {"error": f"Failed to delete ticket summary: {str(e)}"} except Exception as e: return {"error": f"An unexpected error occurred: {str(e)}"}
  • The @mcp.tool() decorator registers the delete_ticket_summary 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