Skip to main content
Glama

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
NameRequiredDescriptionDefault
connection_idYes

Implementation Reference

  • 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}"
  • 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)

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