Skip to main content
Glama

get_api_usage_stats

Track API token consumption and AI model costs for WhatsApp Business automation. Analyze usage statistics over specified time periods to monitor expenses.

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
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 discloses what data is returned (tokens/costs per model) but omits safety characteristics (read-only status), pagination behavior, or time zone handling that would help an agent understand operational impact.

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?

Extremely concise single-line description with information front-loaded. However, the '[query]' suffix appears to be metadata or an incomplete thought rather than purposeful content, slightly diminishing structural clarity.

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 presence of similarly-named siblings (get_usage_stats, get_usage_stats_detail) and lack of annotations or output schema, the description should explicitly differentiate these tools. It partially does so by mentioning AI models, but lacks completeness regarding return structure and sibling selection criteria.

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?

With 100% schema description coverage, the baseline is 3. The description adds minimal semantic value beyond the schema—the '[query]' tag hints at filtering capability but doesn't clarify parameter interdependencies (e.g., if 'period: custom' requires 'date').

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 identifies the resource (API usage statistics) and specific scope (token consumption and costs per AI model). It distinguishes from sibling 'get_usage_stats' by specifying AI model granularity, though it could more explicitly contrast with 'get_usage_stats_detail'.

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?

No guidance provided on when to use this versus siblings like 'get_usage_stats' or 'get_usage_stats_detail', nor any prerequisites or conditions. The '[query]' suffix is cryptic and doesn't explain parameter relationships.

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

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