Skip to main content
Glama

Get AI Hub Usage

hub_get_usage

Returns real run and token usage for a chosen time window, with demo runs counted separately for accurate usage tracking.

Instructions

Return real run and token usage, with a separate demo run count.

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": "hub_get_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
windowNo7d

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it does disclose one meaningful trait, that demo runs are counted separately from real runs, which prevents misreading the numbers. It does not state access requirements, time-window behavior, or what granularity (per-agent, per-contract) the usage is broken into.

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?

One compact sentence, front-loaded with the primary return content and no filler. It is efficient, though the brevity edges into under-specification rather than economy.

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

Completeness3/5

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

There is no output schema, so the description must convey return content, and it does at a high level (run counts, token counts, separate demo count). It stops short of describing the shape or breakdown of that usage, and never touches the only parameter, which leaves gaps for an agent composing the call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the single window parameter is never mentioned in the description. The enum values (24h, 7d, 30d, all) and the 7d default are somewhat self-explanatory, but the description adds no meaning about aggregation boundaries or what 'all' implies.

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?

States a specific verb and resource (return run and token usage) and narrows scope by noting demo runs are reported as a separate count, which distinguishes the metric from a plain total. It never names or contrasts a sibling such as hub_get_summary, so an agent must infer the split from the name alone.

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?

There is no explicit when-to-use guidance, no prerequisites, and no mention of alternatives like hub_get_summary or the app_* usage tools. Usage is only implied by the tool name, leaving the agent to guess whether this or the summary tool is the right entry point.

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