get_collection_variables
Retrieve all variables from a specified collection in the Omilia Cloud Platform to manage and access dialog data.
Instructions
Get a list of all variables in a collection.
Args:
collection_id: The ID of the collection to get variables forInput Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection_id | Yes |
Implementation Reference
- src/main.py:228-237 (handler)The MCP tool handler and registration for 'get_collection_variables'. It creates an EnvironmentsManagerClient and calls its get_collection_variables method.
@mcp.tool() def get_collection_variables(collection_id: str) -> list[str]: """Get a list of all variables in a collection. Args: collection_id: The ID of the collection to get variables for """ client = EnvironmentsManagerClient() return client.get_collection_variables(collection_id=collection_id) - The core implementation in EnvironmentsManagerClient that fetches variables from the API endpoint.
def get_collection_variables(self, collection_id: str) -> dict: """Get a list of all variables in a collection.""" endpoint = f"envs-manager/api/v1/variables-collections/{collection_id}" return self.get(endpoint)