Skip to main content
Glama

Ably MCP by usefulapi

Get account-level statistics

ably_get_account_stats
Read-only

Retrieve aggregated usage statistics across the whole account, bucketed by time. Account id is resolved from the control token when ABLY_ACCOUNT_ID is unset. Control API: GET /accounts/{account_id}/stats.

Input Schema

NameRequiredDescriptionDefault
endNoEnd of range, ms since epoch (inclusive).
unitNoBucket size: minute | hour | day | month. Default minute.
limitNoMax buckets (<=1000). Default 100.
startNoStart of range, ms since epoch (inclusive).
account_idNoOverride the account id (defaults to the token's account).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds genuine behavioral context beyond that: how the account id is resolved (control token vs ABLY_ACCOUNT_ID) and the underlying Control API endpoint. It omits pagination/bucketing limits behavior, so not a 5.

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?

Two tightly packed sentences with zero filler; the core action and scope are front-loaded before the auth-resolution and endpoint details.

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 read-only, 100%-schema-covered stats tool with no output schema, the description covers action, scope, auth resolution, and endpoint. It does not describe the shape or content of the returned statistics, which is the only real gap given no output schema exists.

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 coverage is 100%, so the schema already documents all five parameters (start/end, unit, limit, account_id). The description's only param-adjacent detail is the ABLY_ACCOUNT_ID fallback for account_id, which the schema phrases differently ('defaults to the token's account'); no syntax or format detail is added. 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 (retrieve) and resource (aggregated usage statistics) with clear scope ('across the whole account, bucketed by time'). The account-level framing implicitly distinguishes it from the sibling ably_get_stats, but it never names that sibling explicitly.

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 account-wide aggregation scope implies when this is appropriate versus an app-level stats tool, but the description never states when-to-use, when-not-to-use, or names ably_get_stats as the alternative. Usage is only inferable.

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.