Skip to main content
Glama

get_api_usage_stats

Retrieve API usage statistics including token consumption and costs per AI model. Analyze historical data by day or custom period to monitor usage trends.

Instructions

Estadisticas de uso de API — Consumo de tokens y costes por modelo de IA [query]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoDias a analizar (default 30)
periodNoPeriodo: last_7_days, last_30_days, this_month, last_month, last_90_days, all_time, custom
dateNoFecha de referencia YYYY-MM-DD
phoneNoFiltrar por telefono de cliente
Behavior3/5

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

No annotations are provided, so the description carries full burden. It implies a read-only operation but does not disclose details like data freshness, scope, or any side effects. It is adequate for a simple stats retrieval, but lacks depth.

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 is a single concise sentence that front-loads the purpose. It is appropriately sized with no waste, though it could benefit from additional structure or detail.

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

Completeness2/5

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

Given the complexity of 4 parameters and numerous sibling tools, the description is insufficiently complete. It does not explain output, pagination, or provide enough context to distinguish from similar tools, leaving gaps for the agent.

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 baseline is 3. The description does not add any additional meaning beyond what the schema already provides. The schema descriptions for each parameter are sufficient.

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?

The description clearly states it provides API usage statistics, specifically token consumption and costs per AI model. It is specific and uses a verb+resource structure. However, it does not differentiate itself from sibling tools like get_usage_stats or get_usage_stats_detail, which could cause ambiguity.

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

Usage Guidelines2/5

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

The description does not provide any guidance on when to use this tool over alternatives, nor does it mention any exclusions or conditions. With many similar sibling tools, the lack of usage context makes it harder for an agent to choose correctly.

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/wazionapps/mcp-server'

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