view_solution_category
Retrieve detailed information about a specific solution category in Freshdesk using its category ID. Enables efficient management and organization of support resources.
Instructions
View a solution category in Freshdesk.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category_id | Yes |
Implementation Reference
- src/freshdesk_mcp/server.py:654-664 (handler)The handler function for the 'view_solution_category' MCP tool. It takes a category_id and retrieves the details of that solution category from the Freshdesk API via GET request to /solutions/categories/{category_id}. The @mcp.tool() decorator registers it as a tool.@mcp.tool() async def view_solution_category(category_id: int)-> Dict[str, Any]: """View a solution category in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/solutions/categories/{category_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()