Skip to main content
Glama

Get usage

get_usage
Read-onlyIdempotent

What this workspace spent on models over the last N days (default 7, at most 90): estimated dollars, tokens in and out, and model calls, summed by day, agent or model, with the total.

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

Input Schema

NameRequiredDescriptionDefault
byNoHow to group it (default day).
daysNoHow many days back.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive, so safety needs no restating. The description instead adds substantive content disclosure: the metrics returned and that results are summed by the chosen dimension plus a total. It doesn't discuss latency, data freshness, or cost estimation caveats for a billing-style metric, which is the only remaining gap.

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 front-loaded sentence that leads with the core resource and scope, then enumerates outputs. It is dense but every clause carries information; the only redundancy is repeating the 7/90 defaults already present in the schema, plus a slightly awkward parenthetical.

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?

With no output schema, the description must convey the return shape, and it does: dollars, tokens in/out, calls, summed per group plus a total. Two optional parameters, no nesting, no side effects — the remaining complexity is minimal, and the definition covers it.

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% and both parameters are enum/range-documented, so the baseline applies. The description restates the defaults (7 days, max 90) and grouping choices already in the schema, but it does add the aggregation meaning of 'by' — results are summations per group with a total — which is slightly more than 'How to group it.'

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 and scope: workspace model spend over a bounded time window, broken down into dollars, tokens in/out, and model calls. An agent knows exactly what this returns. It does not explicitly contrast itself with any sibling, but the 'usage/spend' resource is unambiguous and no sibling in the list overlaps.

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 framing 'what this workspace spent on models over the last N days' tells an agent this is the cost/consumption tool, and the default/max window constrains it implicitly. There is no explicit 'use this when...' sentence and no exclusion or alternatives named, leaving routing to inference.

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.