Skip to main content
Glama

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
NameRequiredDescriptionDefault
project_idYes

Implementation Reference

  • 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]
  • 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, }
  • 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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jamesbrink/mcp-coroot'

If you have feedback or need assistance with the MCP directory API, please join our Discord server