view_solution_article
Access and display solution articles in Freshdesk using the article ID to retrieve relevant support content for customer inquiries.
Instructions
View a solution article in Freshdesk.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| article_id | Yes |
Implementation Reference
- src/freshdesk_mcp/server.py:743-753 (handler)The handler function for the 'view_solution_article' tool, which retrieves a specific solution article from Freshdesk using its ID. It is registered as an MCP tool via the @mcp.tool() decorator.@mcp.tool() async def view_solution_article(article_id: int)-> Dict[str, Any]: """View a solution article in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/solutions/articles/{article_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()
- src/freshdesk_mcp/server.py:743-743 (registration)The @mcp.tool() decorator registers the view_solution_article function as an MCP tool.@mcp.tool()