Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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)
  • 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()
  • 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

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Fewsats/agora-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server