agora_get_user_info
Retrieve a user's profile details and shipping addresses in Agora MCP to enhance personalized interactions and support order management processes.
Instructions
Get the current user's profile and shipping addresses in Agora.
Returns:
Dict containing user profile info (firstname, lastname, email) and list of shipping addresses
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/agora_mcp/server.py:154-163 (handler)The handler function for the 'agora_get_user_info' tool. It is decorated with @mcp.tool() for registration and executes the tool logic by calling Agora().get_user_info() and processing the response with handle_response.@mcp.tool() async def agora_get_user_info() -> Dict: """ Get the current user's profile and shipping addresses in Agora. Returns: Dict containing user profile info (firstname, lastname, email) and list of shipping addresses """ response = get_agora().get_user_info() return handle_response(response)
- src/agora_mcp/server.py:11-19 (helper)Helper function that provides the Agora client instance used by the tool handler.def get_agora(): """Get or create an Agora instance. We want to create the class instance inside the tool, so the init errors will bubble up to the tool and hence the MCP client instead of silently failing during the server creation. """ return Agora()
- src/agora_mcp/server.py:21-30 (helper)Helper function that processes and standardizes responses from Agora API calls.def handle_response(response): """ Handle responses from Agora methods. """ if hasattr(response, 'status_code'): # This is a raw response object try: return response.status_code, response.json() except: return response.status_code, response.text # This is already processed data (like a dictionary) return response