view_ticket_field
Retrieve specific ticket field details in Freshdesk using the provided ticket field ID to streamline support ticket management and enhance operational efficiency.
Instructions
View a ticket field in Freshdesk.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticket_field_id | Yes |
Implementation Reference
- src/freshdesk_mcp/server.py:890-899 (handler)The @mcp.tool()-decorated handler function that implements the view_ticket_field tool. It retrieves details of a specific ticket field by ID from the Freshdesk admin API.@mcp.tool() async def view_ticket_field(ticket_field_id: int) -> Dict[str, Any]: """View a ticket field in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/admin/ticket_fields/{ticket_field_id}" 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()