create_solution_category
Generate solution categories in Freshdesk to organize support content efficiently. Use this tool to structure help articles and improve customer self-service experience.
Instructions
Create a solution category in Freshdesk.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category_fields | Yes |
Implementation Reference
- src/freshdesk_mcp/server.py:665-678 (handler)The handler function for the 'create_solution_category' tool. It is decorated with @mcp.tool(), which registers it as an MCP tool. The function validates that a 'name' is provided in category_fields, then sends a POST request to the Freshdesk Solutions Categories API endpoint to create the category.@mcp.tool() async def create_solution_category(category_fields: Dict[str, Any])-> Dict[str, Any]: """Create a solution category in Freshdesk.""" if not category_fields.get("name"): return {"error": "Name is required"} 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.post(url, headers=headers, json=category_fields) return response.json()
- src/freshdesk_mcp/server.py:665-665 (registration)The @mcp.tool() decorator registers the create_solution_category function as an MCP tool.@mcp.tool()