Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

update_ticket_conversation

Modify a specific conversation in Freshdesk tickets by updating its content. Streamline support operations by ensuring accurate and up-to-date customer interactions.

Instructions

Update a conversation for a ticket in Freshdesk.

Input Schema

NameRequiredDescriptionDefault
bodyYes
conversation_idYes

Input Schema (JSON Schema)

{ "properties": { "body": { "title": "Body", "type": "string" }, "conversation_id": { "title": "Conversation Id", "type": "integer" } }, "required": [ "conversation_id", "body" ], "title": "update_ticket_conversationArguments", "type": "object" }

Implementation Reference

  • The @mcp.tool() decorator registers and the function implements the update_ticket_conversation tool, sending a PUT request to the Freshdesk API to update a conversation's body.
    @mcp.tool() async def update_ticket_conversation(conversation_id: int,body: str)-> Dict[str, Any]: """Update a conversation for a ticket in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/conversations/{conversation_id}" 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.put(url, headers=headers, json=data) status_code = response.status_code if status_code == 200: return response.json() else: return f"Cannot update conversation ${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