Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

view_canned_response

Retrieve a predefined canned response from Freshdesk by specifying its ID. Facilitates quick access to standardized replies for efficient ticket management and customer support.

Instructions

View a canned response in Freshdesk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
canned_response_idYes

Implementation Reference

  • The handler function decorated with @mcp.tool(), implementing the logic to fetch a specific canned response from Freshdesk API by ID. This decorator also serves as the registration for the MCP tool.
    @mcp.tool()
    async def view_canned_response(canned_response_id: int)-> Dict[str, Any]:
        """View a canned response in Freshdesk."""
        url = f"https://{FRESHDESK_DOMAIN}/api/v2/canned_responses/{canned_response_id}"
        headers = {
            "Authorization": f"Basic {base64.b64encode(f'{FRESHDESK_API_KEY}:X'.encode()).decode()}"
        }
        async with httpx.AsyncClient() as client:
            response = await client.get(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