Skip to main content
Glama
wave-av

WAVE MCP Server

Official
by wave-av

wave_list_productions

List studio productions in your WAVE account with optional filters for status, limit, and offset. Paginate results to manage large sets.

Instructions

List all studio productions in your WAVE account

Input Schema

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

Implementation Reference

  • The async handler function that executes the wave_list_productions tool logic. It constructs query params (limit, offset, status), calls the WAVE API endpoint /api/v1/studio/productions, and returns the response.
    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/studio/productions?${params.toString()}`);
      if (!res.ok) return errorContent(res.status, res.body);
    
      return textContent(res.body);
    },
  • Zod schema definitions for the tool's input parameters: limit (1-100 int, optional), offset (non-negative int, optional), and status (enum: draft/live/ended/all, optional).
    {
      limit: z
        .number()
        .int()
        .min(1)
        .max(100)
        .optional()
        .describe("Maximum number of productions to return (1-100, default 25)"),
      offset: z
        .number()
        .int()
        .min(0)
        .optional()
        .describe("Number of productions to skip for pagination (default 0)"),
      status: z
        .enum(["draft", "live", "ended", "all"])
        .optional()
        .describe("Filter by production status"),
    },
  • The registration call that registers the tool via server.tool() with name 'wave_list_productions' and description 'List all studio productions in your WAVE account'.
    export function registerStudioTools(server: McpServer): void {
      server.tool(
        "wave_list_productions",
        "List all studio productions in your WAVE account",
        {
          limit: z
            .number()
            .int()
            .min(1)
            .max(100)
            .optional()
            .describe("Maximum number of productions to return (1-100, default 25)"),
          offset: z
            .number()
            .int()
            .min(0)
            .optional()
            .describe("Number of productions to skip for pagination (default 0)"),
          status: z
            .enum(["draft", "live", "ended", "all"])
            .optional()
            .describe("Filter by production 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/studio/productions?${params.toString()}`);
          if (!res.ok) return errorContent(res.status, res.body);
    
          return textContent(res.body);
        },
      );
  • Helper function waveFetch used by the handler to make authenticated API requests to the WAVE API.
    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 };
    }
  • Helper functions textContent and errorContent used to format successful and error responses.
    function textContent(text: string): { content: Array<{ type: "text"; text: string }> } {
      return { content: [{ type: "text" as const, text }] };
    }
    
    function errorContent(
      status: number,
      body: string,
    ): { content: Array<{ type: "text"; text: string }> } {
      return textContent(`Error ${status}: ${body}`);
Behavior2/5

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

With no annotations, the description carries full burden. It only states a high-level purpose and does not disclose behavioral traits such as pagination behavior, authentication requirements, or rate limits. The schema shows parameters for pagination but the description does not mention this.

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?

The description is a single, front-loaded sentence with no wasted words, conveying the tool's purpose efficiently.

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?

Given the absence of an output schema, the description minimally covers the tool's purpose but does not explain what the returned list contains or provide context on production semantics. It is adequate but not fully complete.

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 coverage is 100%, so baseline is 3. The description does not add any additional meaning beyond what the schema already provides for the parameters.

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?

The description clearly states 'List all studio productions in your WAVE account', using a specific verb (list) and resource (studio productions), and distinguishes from sibling tools like wave_create_production and wave_list_streams.

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

Usage Guidelines3/5

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

The description implies this tool is for listing productions, but does not provide explicit guidance on when to use it versus alternatives like wave_list_streams. No exclusions or when-not advice is given.

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