Skip to main content
Glama
wave-av

WAVE MCP Server

Official
by wave-av

wave_mark_highlight

Mark any moment in a live stream as a highlight for later clipping. Provide a label and optional confidence score to tag key events.

Instructions

Mark a moment in a stream as a highlight for later clipping

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stream_idYesThe stream ID
labelNoLabel for the highlight
confidenceNoConfidence score (0-1, for AI-detected highlights)

Implementation Reference

  • Handler function for 'wave_mark_highlight' that POSTs to /api/v1/streams/{stream_id}/highlights with label, confidence, and timestamp.
      async ({ stream_id, label, confidence }) => {
        const res = await waveFetch(`/api/v1/streams/${stream_id}/highlights`, {
          method: "POST",
          body: JSON.stringify({
            label: label ?? "Highlight",
            confidence: confidence ?? 1.0,
            timestamp: new Date().toISOString(),
          }),
        });
        if (!res.ok) return errorContent(res.status, res.body);
        return textContent(res.body);
      },
    );
  • Schema definition for the 'wave_mark_highlight' tool: stream_id (UUID), optional label (max 255 chars), optional confidence (0-1).
    {
      stream_id: z.string().uuid().describe("The stream ID"),
      label: z.string().max(255).optional().describe("Label for the highlight"),
      confidence: z
        .number()
        .min(0)
        .max(1)
        .optional()
        .describe("Confidence score (0-1, for AI-detected highlights)"),
    },
  • Registers 'wave_mark_highlight' tool on the MCP server via server.tool() with name, description, schema, and handler.
    server.tool(
      "wave_mark_highlight",
      "Mark a moment in a stream as a highlight for later clipping",
      {
        stream_id: z.string().uuid().describe("The stream ID"),
        label: z.string().max(255).optional().describe("Label for the highlight"),
        confidence: z
          .number()
          .min(0)
          .max(1)
          .optional()
          .describe("Confidence score (0-1, for AI-detected highlights)"),
      },
      async ({ stream_id, label, confidence }) => {
        const res = await waveFetch(`/api/v1/streams/${stream_id}/highlights`, {
          method: "POST",
          body: JSON.stringify({
            label: label ?? "Highlight",
            confidence: confidence ?? 1.0,
            timestamp: new Date().toISOString(),
          }),
        });
        if (!res.ok) return errorContent(res.status, res.body);
        return textContent(res.body);
      },
    );
  • Helper function 'waveFetch' used by the handler to make authenticated HTTP 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 };
    }
  • src/server.ts:24-24 (registration)
    Registration call: registerProductionTools(server) invoked from the main server startup.
    registerProductionTools(server);
Behavior2/5

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

No annotations are provided to indicate read-only or destructive behavior. The description implies a mutation (marking a highlight) but does not disclose side effects, undoability, or whether the stream must be active. The full burden falls on the description, which is insufficient.

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

Conciseness4/5

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

The description is a single, clear sentence with no fluff. It is appropriately sized for the tool's simplicity.

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?

The description covers the basic action but lacks context on error conditions, prerequisites (e.g., stream must be active), and how the highlight relates to later clipping. Given the simple schema and no output schema, it is minimally adequate.

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?

The input schema covers all three parameters with descriptions (100% coverage). The description adds no additional meaning beyond 'Mark a moment', so it meets the baseline of 3 but does not exceed it.

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 the action (mark), resource (a moment in a stream), and purpose (as a highlight for later clipping). It distinguishes the tool from siblings like wave_create_clip, which creates a clip directly, and wave_start_stream, which initiates a stream.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. For example, it doesn't specify that the stream must be live or that this is a prerequisite for clipping. Siblings include wave_create_clip, but the relationship is not explained.

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