Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

create_solution_article

Generate a solution article in Freshdesk by specifying a folder ID and article fields, streamlining support documentation creation and management.

Instructions

Create a solution article in Freshdesk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
article_fieldsYes
folder_idYes

Implementation Reference

  • The main handler function for the 'create_solution_article' tool. It creates a solution article in Freshdesk by posting to the API endpoint with the provided folder_id and article_fields. Includes basic validation for required fields: title, status, description.
    @mcp.tool() async def create_solution_article(folder_id: int, article_fields: Dict[str, Any])-> Dict[str, Any]: """Create a solution article in Freshdesk.""" if not article_fields.get("title") or not article_fields.get("status") or not article_fields.get("description"): return {"error": "Title, status and description are required"} url = f"https://{FRESHDESK_DOMAIN}/api/v2/solutions/folders/{folder_id}/articles" 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=article_fields) return response.json()
  • The @mcp.tool() decorator registers the create_solution_article function as an MCP tool.
    @mcp.tool()

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