get_connection_by_id
Retrieve specific connection details using a unique connection ID to efficiently manage and access Alteryx Server resources with the AYX-MCP-Wrapper.
Instructions
Get a connection by its ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | Yes |
Implementation Reference
- src/tools.py:731-737 (handler)The core handler function that implements the logic for retrieving a connection by ID using the DCM API, formatting the response with pprint.pformat, and handling ApiException errors.def get_connection_by_id(self, connection_id: str): """Get a connection by its ID""" try: api_response = self.dcm_api.d_cme_get_dcm_connection(connection_id) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
- src/mcp_server.py:351-354 (registration)Registers the get_connection_by_id tool with the MCP server app using the @app.tool decorator, which delegates execution to the tools.get_connection_by_id method.@self.app.tool() def get_connection_by_id(connection_id: str): """Get a connection by its ID""" return self.tools.get_connection_by_id(connection_id)