Skip to main content
Glama
alilxxey

openobserve-community-mcp

list_streams

Retrieve available data streams in your OpenObserve organization to monitor logs and traces, with filtering and pagination options.

Instructions

List streams available in the current organization.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stream_typeNologs
keywordNo
offsetNo
limitNo
sortNoname
include_rawNo

Implementation Reference

  • The MCP tool definition for `list_streams` in `openobserve_mcp/server.py`.
    @server.tool()
    def list_streams(
        stream_type: str = "logs",
        keyword: str = "",
        offset: int = 0,
        limit: int = 50,
        sort: str = "name",
        include_raw: bool = False,
    ) -> dict[str, Any]:
        """List streams available in the current organization."""
        client = client_provider.get()
        raw = client.list_streams(
            stream_type=stream_type,
            keyword=keyword,
            offset=offset,
            limit=limit,
            sort=sort,
        )
        return build_list_streams_result(
            org_id=client.resolve_org_id(),
            stream_type=stream_type,
            raw=raw,
            include_raw=include_raw,
        )
  • The underlying OpenObserve API client method that performs the network request for `list_streams`.
    def list_streams(
        self,
        *,
        stream_type: str,
        keyword: str = "",
        offset: int = 0,
        limit: int = 50,
        sort: str = "name",
    ) -> Any:
        return self.request_json(
            "GET",
            self._org_path("/api/{org_id}/streams"),
            query={
                "type": stream_type,
                "keyword": keyword,
                "offset": offset,
                "limit": limit,
                "sort": sort,
            },
        )

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/alilxxey/openobserve-community-mcp'

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