Skip to main content
Glama
jupiterbak

AYX-MCP-Wrapper

by jupiterbak

get_user_by_id

Retrieve user details from Alteryx Servers by specifying a unique user ID to access account information and permissions.

Instructions

Get a user by their ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idYes

Implementation Reference

  • Core implementation of get_user_by_id tool: calls Alteryx Users API to retrieve user details by ID and formats the response with error handling.
    def get_user_by_id(self, user_id: str):
        """Get a user by their ID"""
        try:
            api_response = self.users_api.users_get_user(user_id)
            return pprint.pformat(api_response)
        except ApiException as e:
            return f"Error: {e}"
  • MCP tool registration using @app.tool() decorator with a wrapper that delegates to AYXMCPTools.get_user_by_id.
    @self.app.tool()
    def get_user_by_id(user_id: str):
        """Get a user by their ID"""
        return self.tools.get_user_by_id(user_id)

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/jupiterbak/AYX-MCP-Wrapper'

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