Skip to main content
Glama

get_usage_stats

Retrieve usage statistics for credits, characters, or minutes over a specified time period, with optional breakdowns by voice or model.

Instructions

Get character/credit usage statistics over a time window.

Args: start_unix: window start (unix seconds). Defaults to 30 days ago. end_unix: window end (unix seconds). Defaults to now. metric: one of "credits", "tts_characters", "minutes_used", "request_count". breakdown_type: e.g. "none", "voice", "model", "api_keys". aggregation_interval: "hour", "day", "week", "month", or "cumulative".

Returns usage data as JSON.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metricNocredits
end_unixNo
start_unixNo
breakdown_typeNonone
aggregation_intervalNoday

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It explains parameter defaults and return format, but does not disclose potential side effects, error handling, or rate limits. The description is adequate but not extra insightful.

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?

The description uses a structured docstring format with an Args list, making it easy to parse. It is relatively concise, with the purpose stated first. However, some redundancy exists (e.g., repeating defaults in both description and schema).

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?

Given 5 parameters, no required parameters, and an output schema, the description covers parameters adequately and states the return type (JSON). It lacks details on error cases or rate limits, but for a read-only stats tool, it is sufficiently complete.

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 description coverage is 0%, but the description explains each of the 5 parameters: start_unix, end_unix, metric, breakdown_type, and aggregation_interval, with defaults and examples. This adds significant meaning beyond the raw schema, though it could explicitly list allowed enum values for metric and breakdown_type.

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?

The description clearly states 'Get character/credit usage statistics over a time window,' specifying the verb 'Get' and the resource 'usage statistics'. It distinguishes from sibling tools which are focused on audio, voice, dubbing, etc., making the purpose unambiguous.

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?

The description implicitly indicates this tool is for retrieving usage statistics, and sibling tools are all about other domains, so context is clear. However, it lacks explicit guidance on when to use or not use this tool, or mention of prerequisites.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/neomorrison/elevenlabs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server