view_group
Access and manage group details in Freshdesk by querying specific group IDs, enabling streamlined support ticket organization and customer service automation.
Instructions
View a group in Freshdesk.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group_id | Yes |
Implementation Reference
- src/freshdesk_mcp/server.py:869-878 (handler)The main handler function for the 'view_group' tool. It is decorated with @mcp.tool(), which serves as both the implementation and registration in FastMCP. This async function retrieves details of a specific Freshdesk group by its ID via the Freshdesk API.@mcp.tool() async def view_group(group_id: int) -> Dict[str, Any]: """View a group in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/groups/{group_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()