Skip to main content
Glama

Cost report

cost_report

Groups LLM spend by session, model, or day, returns highest costs first, and filters events after an optional date.

Instructions

Spend grouped by session, model or day, biggest first. Optionally only events since a date.

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

Input Schema

NameRequiredDescriptionDefault
sinceNoISO date or timestamp, for example 2026-12-01
group_byNosession

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 burden. It usefully discloses that results are sorted descending by spend and that filtering by date is optional, but it does not state that this is a read-only operation, what happens when since is omitted (all-time?), or the unit/currency of the spend values.

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?

Two short sentences, zero waste, with the core aggregation behavior and sort order front-loaded. Nothing is buried or repeated.

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 two-parameter, no-output-schema tool this is close to adequate, but the absence of annotations means return-shape details (currency, row granularity, whether an empty period returns zero rows or nothing) and default behavior when since is omitted remain unaddressed.

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 50%: group_by already has an enum and default, and since has its own ISO-date description. The description restates the grouping options and clarifies that since is optional and filters events, adding limited meaning beyond the schema—it does not explain the day-grouping timezone or date-format edge cases.

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 states a specific verb-plus-resource ("spend grouped by") and enumerates the three grouping dimensions, so an agent knows exactly what the tool returns. It also discloses the ordering ("biggest first"), which a plain name like cost_report would not convey. It stops short of naming siblings such as session_cost, so differentiation is only 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?

"Optionally only events since a date" gives a hint about the filtering use case, but there is no explicit guidance on when to call this versus session_cost or record_usage. The agent must infer that this is the aggregate/spend-summary tool from the description alone.

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

Deploy Server

Other Tools