Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

update_solution_category

Modify solution categories in Freshdesk by updating category fields such as name, description, or visibility settings to organize and improve support content.

Instructions

Update a solution category in Freshdesk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
category_fieldsYes
category_idYes

Implementation Reference

  • The handler function implementing the 'update_solution_category' MCP tool. It updates a Freshdesk solution category using the PUT API endpoint.
    @mcp.tool()
    async def update_solution_category(category_id: int, category_fields: Dict[str, Any])-> Dict[str, Any]:
        """Update 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/{category_id}"
        headers = {
            "Authorization": f"Basic {base64.b64encode(f'{FRESHDESK_API_KEY}:X'.encode()).decode()}"
        }
        async with httpx.AsyncClient() as client:
            response = await client.put(url, headers=headers, json=category_fields)
            return response.json()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/effytech/freshdesk_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server