Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

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

NameRequiredDescriptionDefault
ticket_idYes

Input Schema (JSON Schema)

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

Implementation Reference

  • 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()

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