Skip to main content
Glama

Get usage summary

get_usage_summary
Read-only

Aggregated AI token/cost usage for your tenant over a time range, grouped by agent, user, function, or model.

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

Input Schema

NameRequiredDescriptionDefault
toNo
fromNo
group_byNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered and the description's job is to add operational detail. It adds tenant scoping and aggregation semantics, which is useful, but it omits the behavior an agent most needs: what happens when from/to are omitted (all three parameters are optional), and what shape the aggregated response takes. With no output schema, that gap costs it a point.

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?

A single front-loaded sentence that packs resource, scope, time dimension, and grouping options with no filler. Every clause conveys information an agent can act on.

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?

For a three-parameter, all-optional read-only reporting tool with no output schema, the definition should resolve the defaults question (what range is used when from/to are absent) and give some sense of the returned rows. It covers purpose and grouping but leaves both of those behaviors unspecified.

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%, so the description must carry parameter meaning, and it only partly does. It establishes that 'from'/'to' bound a time range and that group_by accepts the four listed dimensions, but the four enum values are already enumerated in the schema, and the description never specifies the expected date format, timezone, boundary inclusivity, or defaults for the optional range.

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 names a specific resource (AI token/cost usage), a scope (your tenant), a dimension (time range), and the available groupings (agent/user/function/model). That is enough to distinguish it from siblings such as get_credit_balance or get_store_stats. It is not a 5 because the leading noun phrase omits an explicit verb, leaving the action (reporting/aggregating) implied.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the phrase 'aggregated ... over a time range' signals this is for roll-up reporting, and the grouping list hints at when to use it. There is no explicit when-to-use or when-not-to-use guidance, and no named alternative (e.g. get_credit_balance for a single balance figure) is offered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources