search_orchestrator_apps
Find and filter orchestrator applications in Omilia Cloud Platform using optional search terms to manage app deployments.
Instructions
Search Orchestrator apps with optional search term.
Args:
search_term: Optional search term to filter apps
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search_term | No |
Implementation Reference
- src/main.py:130-139 (handler)The handler function for the MCP tool 'search_orchestrator_apps'. It is registered via the @mcp.tool() decorator and implements the core logic by instantiating OrchestratorClient and calling its search_apps method.@mcp.tool() def search_orchestrator_apps(search_term: str | None = None) -> list[str]: """Search Orchestrator apps with optional search term. Args: search_term: Optional search term to filter apps """ client = OrchestratorClient() return client.search_apps(search_term=search_term)
- src/ocp/orchestrator.py:6-20 (helper)Supporting method in OrchestratorClient that performs the actual API call to search for orchestrator apps, used by the main tool handler.def search_apps(self, search_term: str | None = None, page_size: int = 30) -> dict: """Search Orchestrator apps with optional search term. Args: search_term (str, optional): Search term to filter apps. Case insensitive. Returns: dict: The apps matching the search criteria """ endpoint = "orchestrator/api/apps/pagination/" params = {"limit": page_size} if search_term: params['search_term'] = search_term return self.get(endpoint, params=params)
- src/main.py:130-130 (registration)The @mcp.tool() decorator registers the search_orchestrator_apps function as an MCP tool.@mcp.tool()