Skip to main content
Glama

list_integrations

Display all configured integrations for a project, including Prometheus, AWS, Slack, and more, to monitor and manage observability settings effectively.

Instructions

List all configured integrations for a project.

Returns the configuration status of all available integrations:

  • Prometheus

  • ClickHouse

  • AWS

  • Slack

  • Microsoft Teams

  • PagerDuty

  • Opsgenie

  • Webhooks

Args: project_id: Project ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes

Implementation Reference

  • Primary MCP tool handler for 'list_integrations'. Decorated with @mcp.tool() for automatic registration. Delegates to the error-handled implementation.
    @mcp.tool() async def list_integrations(project_id: str) -> dict[str, Any]: """List all configured integrations for a project. Returns the configuration status of all available integrations: - Prometheus - ClickHouse - AWS - Slack - Microsoft Teams - PagerDuty - Opsgenie - Webhooks Args: project_id: Project ID """ return await list_integrations_impl(project_id) # type: ignore[no-any-return]
  • Error-handled implementation of list_integrations tool. Calls CorootClient.list_integrations and formats the response.
    @handle_errors async def list_integrations_impl(project_id: str) -> dict[str, Any]: """List all integrations.""" integrations = await get_client().list_integrations(project_id) return { "success": True, "integrations": integrations, }
  • CorootClient method that executes the HTTP GET request to the Coroot API endpoint /api/project/{project_id}/integrations to fetch integration configurations.
    async def list_integrations(self, project_id: str) -> dict[str, Any]: """List all configured integrations for a project. Args: project_id: Project ID. Returns: Dictionary of integration configurations. """ response = await self._request("GET", f"/api/project/{project_id}/integrations") data: dict[str, Any] = response.json() return data
  • Lazy client factory used by all tools to get the shared CorootClient instance with authentication.
    def get_client() -> CorootClient: """Get or create the client instance. Raises: ValueError: If no credentials are configured. """ global _client if _client is None: try: _client = CorootClient() except ValueError as e: # Re-raise with more context raise ValueError( "Coroot credentials not configured. " "Please set COROOT_BASE_URL and either:\n" " - COROOT_USERNAME and COROOT_PASSWORD for automatic login\n" " - COROOT_SESSION_COOKIE for direct authentication\n" " - COROOT_API_KEY for data ingestion endpoints" ) from e return _client

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