Skip to main content
Glama
wave-av

WAVE MCP Server

Official
by wave-av

wave_create_clip

Create a clip from a recorded stream by specifying start and end times, and optionally export to TikTok, YouTube Shorts, Instagram Reels, or Twitter.

Instructions

Create a clip from a recorded stream, optionally exporting to social platforms

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stream_idYesThe stream ID to clip from
start_timeYesClip start time in seconds
end_timeYesClip end time in seconds
titleNoClip title
export_toNoSocial platforms to auto-export to

Implementation Reference

  • Handler function for wave_create_clip. Makes a POST to /api/v1/clips with streamId, startTime, endTime, and optional title/exportTo.
    async ({ stream_id, start_time, end_time, title, export_to }) => {
      const payload: Record<string, unknown> = {
        streamId: stream_id,
        startTime: start_time,
        endTime: end_time,
      };
      if (title !== undefined) payload["title"] = title;
      if (export_to !== undefined) payload["exportTo"] = export_to;
    
      const res = await waveFetch("/api/v1/clips", {
        method: "POST",
        body: JSON.stringify(payload),
      });
      if (!res.ok) return errorContent(res.status, res.body);
      return textContent(res.body);
    },
  • Zod schema for wave_create_clip inputs: stream_id (UUID), start_time, end_time, optional title, optional export_to array of social platforms.
    {
      stream_id: z.string().uuid().describe("The stream ID to clip from"),
      start_time: z.number().min(0).describe("Clip start time in seconds"),
      end_time: z.number().min(0).describe("Clip end time in seconds"),
      title: z.string().max(255).optional().describe("Clip title"),
      export_to: z
        .array(z.enum(["tiktok", "youtube_shorts", "instagram_reels", "twitter"]))
        .optional()
        .describe("Social platforms to auto-export to"),
    },
  • Registration of wave_create_clip tool via server.tool() with name, description, schema, and handler.
    server.tool(
      "wave_create_clip",
      "Create a clip from a recorded stream, optionally exporting to social platforms",
      {
        stream_id: z.string().uuid().describe("The stream ID to clip from"),
        start_time: z.number().min(0).describe("Clip start time in seconds"),
        end_time: z.number().min(0).describe("Clip end time in seconds"),
        title: z.string().max(255).optional().describe("Clip title"),
        export_to: z
          .array(z.enum(["tiktok", "youtube_shorts", "instagram_reels", "twitter"]))
          .optional()
          .describe("Social platforms to auto-export to"),
      },
      async ({ stream_id, start_time, end_time, title, export_to }) => {
        const payload: Record<string, unknown> = {
          streamId: stream_id,
          startTime: start_time,
          endTime: end_time,
        };
        if (title !== undefined) payload["title"] = title;
        if (export_to !== undefined) payload["exportTo"] = export_to;
    
        const res = await waveFetch("/api/v1/clips", {
          method: "POST",
          body: JSON.stringify(payload),
        });
        if (!res.ok) return errorContent(res.status, res.body);
        return textContent(res.body);
      },
    );
  • src/server.ts:24-24 (registration)
    The wave_create_clip tool is registered via registerProductionTools() which is called during server startup.
    registerProductionTools(server);
  • Helper function waveFetch used by the handler to make API calls with auth headers.
    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 };
    }
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavior. It describes a mutation but lacks details on side effects, permissions, or rate limits.

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 redundant information; very concise and front-loaded.

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

Completeness2/5

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

With no annotations or output schema, the description is too brief. It fails to explain what the tool returns, error conditions, or complexities like time range validation.

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 description coverage is 100%, so the parameter explanations are already complete. The description adds context about exporting to social platforms, but does not enhance individual parameter meanings.

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

Purpose4/5

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

The description clearly states the action (create) and the resource (clip from a recorded stream), and mentions the optional export feature, distinguishing it from related tools like wave_mark_highlight.

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 the stream must be recorded, but does not provide explicit prerequisites, when-not-to-use advice, or alternatives.

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