Skip to main content
Glama
jupiterbak

AYX-MCP-Wrapper

by jupiterbak

get_user_by_name

Retrieve user details from Alteryx Servers by entering a last name to manage user information and access.

Instructions

Get a user by their last name

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes

Implementation Reference

  • Main handler implementation: calls the Alteryx API to get users by last name and formats the response.
    def get_user_by_name(self, name: str):
        """Get a user by their last name"""
        try:
            api_response = self.users_api.users_get_users(last_name=name)
            return pprint.pformat(api_response)
        except ApiException as e:
            return f"Error: {e}"
  • MCP tool registration: decorator registers the wrapper function that delegates to the tools instance.
    @self.app.tool()
    def get_user_by_name(name: str):
        """Get a user by their last name"""
        return self.tools.get_user_by_name(name)

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