Skip to main content
Glama

usage_report

Show what the sidecar has spent and on which models over the last N days, with cached responses counted separately because they cost nothing.

Instructions

What this sidecar has spent and on which models, over the last N days. Counts cached responses separately since those cost nothing.

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

Input Schema

NameRequiredDescriptionDefault
daysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.3

TDQS

B3.2/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden. It does add one genuinely useful accounting fact — cached responses are reported separately because they cost nothing — but says nothing about whether figures are estimates or billed amounts, what currency/unit they use, whether the window is calendar or rolling days, or the shape of the result. For a cost-reporting tool with zero annotation coverage this is thin.

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?

Two short sentences, front-loaded with what is returned, and the cache caveat follows logically. No filler, though the second sentence is slightly clipped and could have been fused into the first for tighter reading.

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?

With one optional parameter, no annotations, and no output schema, the description is close to sufficient for calling the tool. However, for a spend-reporting tool the absence of any statement about units, currency, or whether cached entries are excluded from the headline total leaves an agent unable to interpret the result confidently.

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 0% and the schema only offers 'days' with a default of 30. The description compensates partially by establishing that N means a trailing lookback window ('over the last N days'), which is meaning the bare property name does not convey. It still omits the default value and any bound or granularity for the window.

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: spend attributed to models over a lookback window, plus a separate cached-response count. That is far more than a restatement of the name. It stops short of 5 because it never distinguishes itself from the sibling 'sidecar_status', which an agent might reasonably guess also reports on the sidecar.

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 only implied: an agent can infer 'use this when you want cost/consumption figures', but there is no explicit when-to-use statement, no prerequisites, and no named alternative to pick instead. Adequate but leaves routing to inference.

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