Skip to main content
Glama

Get usage and analytics

cometchat_get_usage
Read-onlyIdempotent

Returns an app's usage over the last 1-90 days (default 30): monthly active users, peak concurrency, and voice, video, recording and transcription minutes.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "app_id": "<app_id>"
    },
    "name": "cometchat_get_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoHow many days back (default 30)
app_idYesThe CometChat App ID (from cometchat_list_apps).
metricsNoWhich metrics (default: all)

Output Schema

NameRequiredDescriptionDefault
toYesEnd date (ISO)
fromYesStart date (ISO)
app_idYesApp ID
metricsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the description's job is to add context, and it does: it discloses that results are aggregated over a bounded 1-90 day window with a 30-day default and default to all metrics. It does not discuss aggregation granularity, timezone, or rate behavior, but the added scope information is genuinely useful.

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 with the returned data and time window stated up front and only a compact parenthetical for the default. Nothing is padded or redundant.

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

Completeness5/5

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

An output schema exists, so return formatting need not be described, and all three parameters are documented at full schema coverage with the one required parameter's source (cometchat_list_apps) given in the schema. For a read-only analytics call, an agent has everything needed to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: it expands the terse enum values by explaining that 'mau' is monthly active users, 'pcc' is peak concurrency, and that voice/video/recording/transcription are reported in minutes. It leaves 'dcu' and 'mcu' unexplained, keeping it below a 5.

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 and resource (returns an app's usage) and enumerates the metric families returned, so an agent knows this is a read-only analytics tool rather than a settings or plan tool. It stops short of naming any sibling to contrast with, which is what a 5 would require.

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?

Usage is implied by the analytics framing and the default 30-day window, but there is no explicit when-to-use, no when-not-to-use, and no pointer to alternatives such as call logs or plan data for adjacent questions. An agent must infer fit from the metric list.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.