view_agent
Retrieve detailed information about a Freshdesk support agent using their unique agent ID. This tool integrates with the Freshdesk MCP server to streamline agent management and support operations.
Instructions
View an agent in Freshdesk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"agent_id": {
"title": "Agent Id",
"type": "integer"
}
},
"required": [
"agent_id"
],
"title": "view_agentArguments",
"type": "object"
}
Implementation Reference
- src/freshdesk_mcp/server.py:765-775 (handler)The main handler function for the 'view_agent' tool. It retrieves details of a specific agent from the Freshdesk API using the provided agent_id. Decorated with @mcp.tool() for automatic registration.@mcp.tool() async def view_agent(agent_id: int)-> Dict[str, Any]: """View an agent in Freshdesk.""" url = f"https://{FRESHDESK_DOMAIN}/api/v2/agents/{agent_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()