get_custom_applications
Retrieve custom application configurations from the MCP Server for Coroot to group instances by specific patterns, aiding in seamless monitoring and performance analysis. Requires a valid project ID.
Instructions
Get custom applications configuration.
Returns the list of custom application definitions that group instances by patterns.
Args: project_id: Project ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Implementation Reference
- src/mcp_coroot/server.py:987-997 (handler)MCP tool handler function decorated with @mcp.tool(), which registers the tool and defines its schema via the signature and docstring. Delegates to the implementation helper.@mcp.tool() async def get_custom_applications(project_id: str) -> dict[str, Any]: """Get custom applications configuration. Returns the list of custom application definitions that group instances by patterns. Args: project_id: Project ID """ return await get_custom_applications_impl(project_id) # type: ignore[no-any-return]
- src/mcp_coroot/server.py:977-984 (helper)Helper function that calls CorootClient.get_custom_applications and formats the response with success wrapper.@handle_errors async def get_custom_applications_impl(project_id: str) -> dict[str, Any]: """Get custom applications.""" applications = await get_client().get_custom_applications(project_id) return { "success": True, "applications": applications, }
- src/mcp_coroot/client.py:793-806 (helper)CorootClient method that performs the actual HTTP GET request to retrieve custom applications configuration from the Coroot API.async def get_custom_applications(self, project_id: str) -> dict[str, Any]: """Get custom applications configuration. Args: project_id: Project ID. Returns: Custom applications. """ response = await self._request( "GET", f"/api/project/{project_id}/custom_applications" ) data: dict[str, Any] = response.json() return data