Skip to main content
Glama

update_collection_name_or_owner

Modify a collection's name or owner by specifying its ID in the AYX-MCP-Wrapper server, allowing for easy management of Alteryx Server resources.

Instructions

Update a collection name or owner by its ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_idYes
nameYes
owner_idYes

Implementation Reference

  • Core implementation of the update_collection_name_or_owner tool in AYXMCPTools class. Fetches the collection, creates an UpdateCollectionContract with optional new name or owner_id, and calls the Alteryx API to update it.
    def update_collection_name_or_owner(self, collection_id: str, name: str, owner_id: str): """Update a collection name or owner by its ID""" try: collection = self.collections_api.collections_get_collection(collection_id) if not collection: return "Error: Collection not found" contract = server_client.UpdateCollectionContract( name=name if name else collection.name, owner_id=owner_id if owner_id else collection.owner_id ) api_response = self.collections_api.collections_update_collection(collection_id, contract) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
  • MCP tool registration using FastMCP @tool decorator. This wrapper function delegates the call to the AYXMCPTools instance's method.
    @self.app.tool() def update_collection_name_or_owner(collection_id: str, name: str, owner_id: str): """Update a collection name or owner by its ID""" return self.tools.update_collection_name_or_owner(collection_id, name, owner_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