Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

create_ticket_field

Add custom ticket fields in Freshdesk to organize and categorize support tickets effectively. Enables streamlined ticket management through the Freshdesk API for improved customer support operations.

Instructions

Create a ticket field in Freshdesk.

Input Schema

NameRequiredDescriptionDefault
ticket_field_fieldsYes

Input Schema (JSON Schema)

{ "properties": { "ticket_field_fields": { "title": "Ticket Field Fields", "type": "object" } }, "required": [ "ticket_field_fields" ], "title": "create_ticket_fieldArguments", "type": "object" }

Implementation Reference

  • The handler function for the 'create_ticket_field' tool. It is decorated with @mcp.tool() which registers it as an MCP tool. The function sends a POST request to Freshdesk API to create a new ticket field using the provided fields.
    @mcp.tool() async def create_ticket_field(ticket_field_fields: Dict[str, Any]) -> Dict[str, Any]: """Create a ticket field in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/admin/ticket_fields" 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=ticket_field_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