get_credential_by_id
Retrieve detailed information about a specific credential using its unique ID within the AYX-MCP-Wrapper server, enabling efficient credential management and access.
Instructions
Get the details of an existing credential
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| credential_id | Yes |
Implementation Reference
- src/tools.py:714-720 (handler)Core handler function that executes the tool logic by calling the Alteryx credentials API to retrieve the credential by ID and formats the response using pprint.def get_credential_by_id(self, credential_id: str): """Get the details of an existing credential.""" try: api_response = self.credentials_api.credentials_get_credential(credential_id) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
- src/mcp_server.py:340-343 (registration)MCP tool registration decorator and wrapper function that delegates the call to the Tools instance method.@self.app.tool() def get_credential_by_id(credential_id: str): """Get the details of an existing credential""" return self.tools.get_credential_by_id(credential_id)