list_solution_articles
Retrieve all solution articles from Freshdesk by specifying a folder ID using this tool, enabling efficient management and access to support documentation.
Instructions
List all solution articles in Freshdesk.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_id | Yes |
Implementation Reference
- src/freshdesk_mcp/server.py:616-628 (handler)The primary handler function for the 'list_solution_articles' tool. It is decorated with @mcp.tool(), which registers it in the MCP framework. The function fetches articles from a specified Freshdesk solutions folder via the API and returns them as a list of dictionaries.@mcp.tool() async def list_solution_articles(folder_id: int)-> list[Dict[str, Any]]: """List all solution articles in Freshdesk.""" solution_articles = [] url = f"https://{FRESHDESK_DOMAIN}/api/v2/solutions/folders/{folder_id}/articles" 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) for article in response.json(): solution_articles.append(article) return solution_articles