update_custom_applications
Update custom application configurations in Coroot to group instances by container name patterns for better monitoring organization.
Instructions
Update custom applications configuration.
Updates the list of custom application definitions. Custom applications allow grouping instances by container name patterns.
Args: project_id: Project ID applications: New custom applications list with instance patterns
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| applications | Yes |
Implementation Reference
- src/mcp_coroot/server.py:1014-1031 (handler)MCP tool handler: the @mcp.tool()-decorated function that handles tool invocation and delegates to the implementation wrapper.@mcp.tool() async def update_custom_applications( project_id: str, applications: dict[str, Any], ) -> dict[str, Any]: """Update custom applications configuration. Updates the list of custom application definitions. Custom applications allow grouping instances by container name patterns. Args: project_id: Project ID applications: New custom applications list with instance patterns """ return await update_custom_applications_impl( # type: ignore[no-any-return] project_id, applications )
- src/mcp_coroot/server.py:1000-1012 (helper)Error-handling wrapper implementation that invokes the CorootClient method and formats the response.@handle_errors async def update_custom_applications_impl( project_id: str, applications: dict[str, Any], ) -> dict[str, Any]: """Update custom applications.""" result = await get_client().update_custom_applications(project_id, applications) return { "success": True, "message": "Custom applications updated successfully", "applications": result, }
- src/mcp_coroot/client.py:808-824 (helper)Coroot API client method implementing the HTTP POST request to the Coroot API endpoint for updating custom applications.async def update_custom_applications( self, project_id: str, applications: dict[str, Any] ) -> dict[str, Any]: """Update custom applications configuration. Args: project_id: Project ID. applications: New custom applications configuration. Returns: Updated applications. """ response = await self._request( "POST", f"/api/project/{project_id}/custom_applications", json=applications ) data: dict[str, Any] = response.json() return data