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
| Name | Required | Description | Default |
|---|---|---|---|
| canned_response_id | Yes |
Implementation Reference
- src/freshdesk_mcp/server.py:549-558 (handler)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()