Skip to main content
Glama

spend_report

Totals what every run has cost across a chosen window of days by reading local run folders, so you can check spend today before starting another run.

Instructions

What every run has cost across a window of days, not just one run. Derived from the run folders on disk - nothing is recorded anywhere else and nothing leaves this machine. Use this to answer "what have I spent today" before starting another run. A run that paid OpenRouter also carries providerReported: what the provider reported beside the usd THC counted (unverified, its unit is not given, counted in no 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": "spend_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNohow far back to look, in days. Defaults to 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the load and does so well: it discloses that figures are derived from on-disk run folders, that nothing is recorded elsewhere, and that nothing leaves the machine, so the agent knows the data is local and read-only in effect. It also proactively explains the `providerReported` field as unverified, unit-unknown and excluded from totals, which prevents misreading a mutation-free report as authoritative. Gaps remain on aggregation behaviour (per-run granularity, handling of failed or in-flight runs).

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?

The core statement and scope qualifier are front-loaded in the first sentence, and the privacy note is short. The `providerReported` sentence is long and parenthetical-heavy but contains information available nowhere else, so it earns its place. Slight density costs it a point.

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 single optional-parameter reporting tool with no output schema, the description covers origin, scope, privacy, and the one non-obvious return field. What an agent still cannot know is the shape of the result (per-run rows vs. a total) and whether partial or failed runs are included, which is a modest remaining gap.

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 the single `days` parameter is fully documented in the schema with a default and bounds. The description adds only the framing 'window of days' and no format or default detail beyond the schema, so the baseline of 3 applies.

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 resource (aggregated spend across runs) and scope (a window of days, not a single run). That scope contrast distinguishes it from per-run status tools without naming them. It is clear but slightly indirect, opening with a noun phrase rather than a verb such as 'Reports'.

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

Usage Guidelines4/5

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

It gives a concrete use case, "what have I spent today" before starting another run, which tells the agent when to reach for it. It also implies the boundary against single-run inspection ("not just one run"). It does not name an alternative tool or state when not to use it, so it stops short of a 5.

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