list_inspections
Retrieve a detailed list of configured inspections for a project, including CPU, memory, SLO, and health checks, to monitor and analyze performance metrics effectively.
Instructions
List all available inspections for a project.
Returns a list of all inspection types and their configurations including CPU, memory, SLO, and other health checks.
Args: project_id: Project ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Implementation Reference
- src/mcp_coroot/server.py:672-683 (handler)MCP tool handler function for 'list_inspections', decorated with @mcp.tool() which registers it and defines the entry point.@mcp.tool() async def list_inspections(project_id: str) -> dict[str, Any]: """List all available inspections for a project. Returns a list of all inspection types and their configurations including CPU, memory, SLO, and other health checks. Args: project_id: Project ID """ return await list_inspections_impl(project_id) # type: ignore[no-any-return]
- src/mcp_coroot/server.py:662-670 (helper)Internal implementation helper that calls the CorootClient.list_inspections method and formats the response.@handle_errors async def list_inspections_impl(project_id: str) -> dict[str, Any]: """List all available inspections.""" inspections = await get_client().list_inspections(project_id) return { "success": True, "inspections": inspections, }
- src/mcp_coroot/client.py:653-664 (helper)CorootClient method that performs the actual HTTP GET request to retrieve inspections from the Coroot API.async def list_inspections(self, project_id: str) -> dict[str, Any]: """List all available inspections for a project. Args: project_id: Project ID. Returns: Dictionary of inspection configurations. """ response = await self._request("GET", f"/api/project/{project_id}/inspections") data: dict[str, Any] = response.json() return data