list_inspections
Retrieve all available inspection types and configurations for a Coroot project, including CPU, memory, SLO, and health checks.
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:663-669 (handler)Core handler that fetches inspections using the Coroot client and returns formatted response.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/server.py:672-682 (registration)MCP tool registration via @mcp.tool() decorator with docstring defining the tool schema (inputs/outputs).@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/client.py:653-664 (helper)CorootClient helper method that performs the HTTP 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