Skip to main content
Glama
wave-av

WAVE MCP Server

Official
by wave-av

wave_list_streams

Retrieve a paginated list of streams in your WAVE account, optionally filtered by status, to manage stream inventories.

Instructions

List all streams in your WAVE account with pagination support

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of streams to return (1-100, default 25)
offsetNoNumber of streams to skip for pagination (default 0)
statusNoFilter by stream status

Implementation Reference

  • Registration function `registerStreamTools` that defines the `wave_list_streams` tool with its schema (limit, offset, status) and handler logic. The handler calls `/api/v1/streams` with query params and returns JSON text.
    export function registerStreamTools(server: McpServer): void {
      server.tool(
        "wave_list_streams",
        "List all streams in your WAVE account with pagination support",
        {
          limit: z
            .number()
            .int()
            .min(1)
            .max(100)
            .optional()
            .describe("Maximum number of streams to return (1-100, default 25)"),
          offset: z
            .number()
            .int()
            .min(0)
            .optional()
            .describe("Number of streams to skip for pagination (default 0)"),
          status: z
            .enum(["active", "idle", "error", "all"])
            .optional()
            .describe("Filter by stream status"),
        },
        async ({ limit, offset, status }) => {
          const params = new URLSearchParams();
          params.set("limit", String(limit ?? 25));
          params.set("offset", String(offset ?? 0));
          if (status && status !== "all") {
            params.set("status", status);
          }
    
          const res = await waveFetch(`/api/v1/streams?${params.toString()}`);
          if (!res.ok) return errorContent(res.status, res.body);
    
          return textContent(res.body);
        },
      );
  • Alternative registration of `wave_list_streams` as an SdkTool for the Agent SDK in-process mode. Uses the same schema and handler logic calling `/api/streams`.
    const listStreamsTool: SdkTool = {
      name: "wave_list_streams",
      description: "List all streams in your WAVE account with pagination",
      inputSchema: z.object({
        limit: z.number().int().min(1).max(100).optional().describe("Max streams (1-100, default 25)"),
        offset: z.number().int().min(0).optional().describe("Pagination offset"),
        status: z.enum(["active", "idle", "error", "all"]).optional().describe("Filter by status"),
      }),
      handler: async (args) => {
        const params = new URLSearchParams();
        params.set("limit", String(args.limit ?? 25));
        params.set("offset", String(args.offset ?? 0));
        if (args.status && args.status !== "all") params.set("status", String(args.status));
        const res = await waveFetch(`/api/streams?${params}`);
        if (!res.ok) return { type: "error", error: `Error ${res.status}: ${res.body}` };
        return { type: "success", result: res.body };
      },
      annotations: { readOnly: true, destructive: false, openWorld: false },
    };
  • src/server.ts:5-5 (registration)
    Import of `registerStreamTools` from streams.ts, and invocation at line 20 to register the `wave_list_streams` tool on the McpServer.
    import { registerStreamTools } from "./tools/streams.js";
  • Helper function `waveFetch` used by the handler to make HTTP requests.
    async function waveFetch(
      path: string,
      init?: RequestInit,
    ): Promise<{ ok: boolean; status: number; body: string }> {
      const url = `${getBaseUrl()}${path}`;
      const res = await fetch(url, {
        ...init,
        headers: {
          ...getAuthHeaders(),
          ...init?.headers,
        },
      });
      const body = await res.text();
      return { ok: res.ok, status: res.status, body };
    }
  • Imports for zod schema validation, McpServer type, and auth helpers used by the tool handler.
    import { z } from "zod";
    import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
    import { getAuthHeaders, getBaseUrl } from "../auth.js";
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, and description only mentions listing with pagination. Lacks disclosure of read-only nature, authentication needs, rate limits, or any side effects beyond what's obvious.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence with no redundancy. Every word earns its place: 'List all streams in your WAVE account with pagination support' is maximally concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema or annotations. Description covers core function but omits return format, total count, or error handling. Adequate but not rich for a listing tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers 100% of parameters with descriptions (limit, offset, status). Description adds no additional meaning beyond the schema, so baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it lists all streams in a WAVE account with pagination. Uses specific verb+resource (list streams) and distinguishes from sibling tools like wave_create_stream and wave_start_stream.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implies usage context (listing streams with pagination) but does not explicitly exclude alternatives like wave_get_stream_health or provide when-not scenarios. Still clear enough for most agents.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/wave-av/mcp-server'

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