view_contact_field
Retrieve specific contact field details in Freshdesk using a unique ID, enabling streamlined access to customer information for support operations automation.
Instructions
View a contact field in Freshdesk.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contact_field_id | Yes |
Implementation Reference
- src/freshdesk_mcp/server.py:947-957 (handler)The handler function for the 'view_contact_field' tool. It is decorated with @mcp.tool() for registration and fetches the specified contact field from the Freshdesk API using a GET request.@mcp.tool() async def view_contact_field(contact_field_id: int) -> Dict[str, Any]: """View a contact field in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/contact_fields/{contact_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()