Skip to main content
Glama

Get usage statistics

get_usage_stats
Read-only

Retrieve API usage metrics like requests, errors, and quota to diagnose 429 rate-limit issues and predict when your quota will run out.

Instructions

Your account's API usage: requests, success rate, response times (avg and p95), errors by status code, top endpoints, daily counts, live quota, rate limit and media-limit usage. Use it to answer "why am I getting 429s?" or "when will my quota run out?". Uses one request.

Input Schema

NameRequiredDescriptionDefault
daysNoWindow in days (default 30, max 60)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds that it 'Uses one request', which is useful cost context for budget-sensitive agents, and lists what data is returned, though it doesn't mention auth requirements or freshness of 'live quota'.

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?

One dense sentence front-loads the resource and metric list, followed by example questions and a cost note. Every clause carries information an agent needs; there is no filler.

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 fully enumerates the returned metrics, including errors by status code and rate-limit usage. The single optional parameter is covered by schema, and the 'one request' note rounds out the operational context.

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%, and the 'days' parameter is already fully documented in the schema with its default and maximum. The description adds no additional meaning about the window parameter, so baseline 3 is appropriate.

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 account's API usage') and enumerates the exact metrics returned: requests, success rate, response times, errors, endpoints, quotas, and limits. This clearly separates it from siblings like diagnose_request, which handles individual request troubleshooting.

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 concrete example questions it answers ('why am I getting 429s?', 'when will my quota run out?'), which tells the agent when to reach for it. It does not name alternatives or state exclusions, but the usage context is unambiguous.

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