Skip to main content
Glama

Get channel stats

loyalty_stats
Read-only

Retrieve a StreamElements channel's loyalty statistics for a day, week, month, or year around a specified date.

Instructions

Get the channel's StreamElements statistics for a period (year, month, week or day) around a date.

Input Schema

NameRequiredDescriptionDefault
tzNoStreamElements timezone index
dateYesA date inside the period: Unix time in milliseconds or an ISO 8601 string
channelNoStreamElements channel id (24-char hex). Defaults to SE_CHANNEL_ID or the channel that owns the token.
intervalYesLength of the period

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds the useful scoping constraint that the period is computed 'around a date', but says nothing about auth requirements, what statistics are returned, or any rate limits. With annotations carrying the safety load, a 3 is appropriate.

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?

A single front-loaded sentence that states the operation, resource, and period granularity with zero filler.

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?

Annotations cover the safety profile and the schema fully documents inputs, but with no output schema the description never explains what 'statistics' actually contains, which is the key gap for an agent deciding whether this returns the data it needs.

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 all four parameters (tz, date, channel, interval) are already documented in the schema. The description only restates the interval enum values and the 'around a date' concept, adding no syntax or format detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb (Get) and resource (channel's StreamElements statistics) plus the period granularity. However, it does not distinguish this from sibling stats tools like chatstats_stats or the points_* family, leaving the agent to infer the boundary from the name alone.

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 when-to-use guidance, no prerequisites, and no alternatives named. Nothing tells the agent when loyalty_stats is preferable to chatstats_stats or points_list_top.

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

Deploy Server

Other Tools