list_solution_categories
Retrieve all solution categories in Freshdesk to organize and manage knowledge base topics effectively for streamlined customer support operations.
Instructions
List all solution categories in Freshdesk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"title": "list_solution_categoriesArguments",
"type": "object"
}
Implementation Reference
- src/freshdesk_mcp/server.py:643-652 (handler)The handler function for the 'list_solution_categories' tool. It is decorated with @mcp.tool() which registers it with the MCP server. Fetches and returns the list of solution categories from the Freshdesk API.@mcp.tool() async def list_solution_categories()-> list[Dict[str, Any]]: """List all solution categories in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/solutions/categories" 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()