Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

list_canned_responses

Retrieve all canned responses from Freshdesk for efficient ticket management. Specify folder_id to organize and access pre-written support replies.

Instructions

List all canned responses in Freshdesk.

Input Schema

NameRequiredDescriptionDefault
folder_idYes

Input Schema (JSON Schema)

{ "properties": { "folder_id": { "title": "Folder Id", "type": "integer" } }, "required": [ "folder_id" ], "title": "list_canned_responsesArguments", "type": "object" }

Implementation Reference

  • The handler function for the 'list_canned_responses' tool. It fetches canned responses from a specified folder in Freshdesk using the API, decorated with @mcp.tool() for registration in the MCP server.
    @mcp.tool() async def list_canned_responses(folder_id: int)-> list[Dict[str, Any]]: """List all canned responses in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/canned_response_folders/{folder_id}/responses" headers = { "Authorization": f"Basic {base64.b64encode(f'{FRESHDESK_API_KEY}:X'.encode()).decode()}" } canned_responses = [] async with httpx.AsyncClient() as client: response = await client.get(url, headers=headers) for canned_response in response.json(): canned_responses.append(canned_response) return canned_responses
  • The @mcp.tool() decorator registers the list_canned_responses function as an MCP tool.
    @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