search_agents
Find specific agents in Freshdesk by querying their details. Enhance support operations by integrating AI models to automate and manage customer interactions effectively.
Instructions
Search for agents in Freshdesk.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Implementation Reference
- src/freshdesk_mcp/server.py:816-825 (handler)The handler and registration for the 'search_agents' MCP tool. This async function queries the Freshdesk API's agent autocomplete endpoint with the provided query term and returns the list of matching agents.@mcp.tool() async def search_agents(query: str) -> list[Dict[str, Any]]: """Search for agents in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/agents/autocomplete?term={query}" 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()