Skip to main content
Glama

Get usage stats

get_usage_stats
Read-onlyIdempotent

Your own Besidka usage for the last 7 or 30 days or all time: the favorite model by replies, tokens by kind, the estimated cost on your keys, chats, messages, active days, the most active day and the current and longest streak in UTC days. Counts chat replies only; copies a branch made are counted once. Counts of projects, artifacts, skills and connectors need the projects:read, artifacts:read, skills:read and connectors:read scopes. Returns the structured data and one plain-text report to show, refreshed at most every 15 minutes (an hour for all time). Requires signing in (chats:read).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_usage_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNo7d, 30d or all. Defaults to 30d

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses caching behavior ('refreshed at most every 15 minutes (an hour for all time)'), authentication requirements, per-scope gating of specific metrics, and counting semantics ('Counts chat replies only; copies a branch made are counted once', UTC days). These are exactly the non-obvious traits an agent needs and none are derivable from the schema or annotations.

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?

Front-loaded with purpose and window, then the metric list, then caveats (counting rules, scopes, refresh cadence, auth). It is dense and every clause carries information, though the long comma-chained metric enumeration is harder to scan than a short bulleted structure would be.

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?

With no output schema, the description compensates by describing the return ('the structured data and one plain-text report to show') and the caching staleness of that return. Auth scopes, counting caveats, and time-window semantics are all covered, so nothing material is missing for correct invocation.

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% with a single enum parameter, so the schema already fully documents 'period' including the 30d default. The description restates the three windows in prose and adds the UTC-day framing for streaks, but adds no new syntax or format guidance for the parameter itself — the baseline 3 applies.

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?

States a specific verb and resource — 'Your own Besidka usage' — and enumerates exactly what is computed (favorite model by replies, tokens by kind, estimated cost, chats, messages, active days, streaks). The 'your own' scoping plus the metric list makes it clearly distinguishable from sibling cost/stat tools such as get_chat_cost.

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

Usage Guidelines4/5

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

Gives clear context for use: personal usage, selectable 7d/30d/all window, and prerequisite scopes (chats:read, plus projects:read/artifacts:read/skills:read/connectors:read for the extended counts). It does not explicitly name an alternative tool or state when to prefer get_chat_cost over this one, so it stops short of full when/when-not routing.

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.