Skip to main content
Glama

ai-usage-overview

Read-only

Get the AI usage and cost overview for the project — total cost, input/output tokens, cost trend over time, and breakdowns by model and by feature.

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": "ai-usage-overview"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoFilter cost to a single model
periodNoAggregation period for the cost trend (default: monthly)
featureNoFilter cost to a single feature key

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds useful behavioral context beyond that, namely that the data is project-scoped and what categories of results come back — valuable given there is no output schema. It stops short of mentioning permissions, rate limits, or whether the trend window is bounded.

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 names the resource first and then lists the payload in a tight clause. No filler, no repetition of the title.

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

Completeness4/5

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

For a read-only, zero-required-parameter overview tool with fully documented parameters, the description is nearly sufficient — enumerating the returned metrics compensates for the absent output schema. The only gap is that period aggregation semantics and the scope of the cost trend are left entirely to the schema.

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 all three parameters and the period enum are already documented in the schema, setting the baseline at 3. The description's mention of 'breakdowns by model and by feature' loosely motivates the model and feature filters, but it adds no syntax, default, or interaction detail (e.g. what happens when both filters are set) beyond what the schema provides.

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 uses a specific verb ('Get') and a specific resource ('AI usage and cost overview for the project'), then enumerates the contents: total cost, tokens, cost trend, breakdowns by model and feature. That distinguishes it from generic siblings like analytics-overview, though it never explicitly contrasts itself with them.

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 by the 'AI usage and cost' framing — an agent would reach for it when asked about spend or token consumption — but there is no explicit when-to-use statement, no guidance on when to prefer analytics-overview or monitoring-overview, and no note that filtering is optional.

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