Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

create_ticket_note

Add a note to a Freshdesk support ticket by specifying the ticket ID and note content to assist with ticket management and customer communication.

Instructions

Create a note for a ticket in Freshdesk.

Input Schema

NameRequiredDescriptionDefault
bodyYes
ticket_idYes

Input Schema (JSON Schema)

{ "properties": { "body": { "title": "Body", "type": "string" }, "ticket_id": { "title": "Ticket Id", "type": "integer" } }, "required": [ "ticket_id", "body" ], "title": "create_ticket_noteArguments", "type": "object" }

Implementation Reference

  • The handler function for the 'create_ticket_note' tool. It creates a private note on a Freshdesk ticket by making a POST request to the /tickets/{ticket_id}/notes API endpoint. The @mcp.tool() decorator registers this function as an MCP tool.
    @mcp.tool() async def create_ticket_note(ticket_id: int,body: str)-> Dict[str, Any]: """Create a note for a ticket in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/tickets/{ticket_id}/notes" headers = { "Authorization": f"Basic {base64.b64encode(f'{FRESHDESK_API_KEY}:X'.encode()).decode()}" } data = { "body": body } async with httpx.AsyncClient() as client: response = await client.post(url, headers=headers, json=data) return response.json()
  • The @mcp.tool() decorator registers the create_ticket_note function as a tool in the FastMCP server.
    @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