Skip to main content
Glama
wave-av

WAVE MCP Server

Official
by wave-av

wave_get_stream_metrics

Retrieve views, watch time, and geographic/device breakdown for a single stream over an optional date range.

Instructions

Get analytics for a single stream (GET /v1/streams/{id}/analytics): views, watch time, and geographic/device breakdown over an optional date range

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoRange end (ISO 8601 timestamp), optional
fromNoRange start (ISO 8601 timestamp), optional
stream_idYesThe UUID of the stream

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.3.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / from
      Added value: +{
      +  "description": "Range start (ISO 8601 timestamp), optional",
      +  "type": "string"
      +}
    • removedInput schema / properties / granularity
      Removed value: -{
      -  "description": "Data point granularity (default: 5m)",
      -  "enum": [
      -    "1m",
      -    "5m",
      -    "1h",
      -    "1d"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / period
      Removed value: -{
      -  "description": "Time period for metrics aggregation (default: 24h)",
      -  "enum": [
      -    "1h",
      -    "6h",
      -    "24h",
      -    "7d",
      -    "30d"
      -  ],
      -  "type": "string"
      -}
    • addedInput schema / properties / stream_id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • addedInput schema / properties / to
      Added value: +{
      +  "description": "Range end (ISO 8601 timestamp), optional",
      +  "type": "string"
      +}
  2. First observedv0.1.5

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden. It explicitly discloses the HTTP method GET (a read-only operation), the specific endpoint, and the return content domains (views, watch time, geographic/device breakdown over a date range). It does not mention default date-range behavior or pagination, but this is a relatively lightweight analytics read.

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 sentence with no filler, front-loading the action and scope before enumerating the returned metrics and the optional date range. Every element contributes useful information.

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

Completeness4/5

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

For a 3-parameter tool with a fully documented schema and no output schema, the description is largely complete: it explains the resource, the metrics returned, and the optional date filter. Minor gaps such as the default time window when from/to are omitted are not addressed, but nothing essential to selecting the tool is missing.

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 each parameter is already documented (stream_id UUID, optional from/to ISO 8601 timestamps). The description adds only the phrase 'optional date range', which restates the schema's notion of the from/to parameters rather than adding new semantic detail.

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 states a clear action ('Get analytics') and a specific resource ('a single stream'), reinforced by the endpoint GET /v1/streams/{id}/analytics and the listed metrics. It is distinguishable from broader tools like wave_list_streams, though it does not explicitly contrast with sibling analytics tools such as wave_get_viewers or wave_get_usage.

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 scope 'for a single stream' and 'optional date range' imply when this tool is appropriate, and the metrics listed (views, watch time, breakdown) indicate the data domain. There is no explicit guidance on when to prefer an alternative tool or when this tool is not appropriate, so usage direction remains implied rather than stated.

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