get_custom_applications
Retrieve custom application configurations from Coroot to group instances using defined patterns for monitoring and observability purposes.
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/client.py:793-806 (handler)Core handler implementation that performs the HTTP GET request to the Coroot API endpoint /api/project/{project_id}/custom_applications to fetch custom applications configuration.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
- src/mcp_coroot/server.py:978-984 (handler)MCP server handler wrapper that calls the client method, adds success wrapper, and handles 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/server.py:987-997 (registration)MCP tool registration using @mcp.tool() decorator, which exposes the function as the 'get_custom_applications' tool.@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]