Skip to main content
Glama

spending_report

Summarize read-only spending from the local payment log by asset, recipient, host, and day, including verified seller receipts and remaining daily limits. Use payment_history for individual records.

Instructions

Read only. Spending summary from the local payment log for a date range (UTC days, default this month to today, at most 366 days): totals per asset, by recipient, by host and by day, result counts, how many paid responses carried a verified seller receipt, and what is left of today's limits. Signed payments count as spent whatever their result, as the daily limits count them. For individual records use payment_history.

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

Input Schema

NameRequiredDescriptionDefault
toNoLast UTC day, YYYY-MM-DD, inclusive (default: today). At most 366 days after from.
fromNoFirst UTC day, YYYY-MM-DD (default: the first day of this month).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / from / description
      Added value: +"First UTC day, YYYY-MM-DD (default: the first day of this month)."
    • addedInput schema / properties / to / description
      Added value: +"Last UTC day, YYYY-MM-DD, inclusive (default: today). At most 366 days after from."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden, and it does: 'Read only' declares the safety profile, and the accounting rule 'Signed payments count as spent whatever their result, as the daily limits count them' is a non-obvious behavior an agent could not infer elsewhere. It also discloses the data source boundary (local payment log) and the 366-day cap.

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?

Front-loaded with the safety qualifier and the core scope, then a single dense sentence listing the output sections, closed by the sibling pointer. The enumeration is long but every item corresponds to a distinct part of the result, so there is little waste; only the date-range clause mildly duplicates the schema.

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

Completeness5/5

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

With no annotations and no output schema, the description fully compensates by naming every aggregate the tool returns, the counting rule for signed payments, the default and maximum window, and the alternative tool for raw records. An agent has everything needed to decide to call it and interpret the result shape.

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 schema already defines from/to with formats, inclusiveness, defaults, and the 366-day constraint. The description's 'UTC days, default this month to today, at most 366 days' restates the schema rather than adding new meaning, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — a read-only spending summary drawn from the local payment log over a date range — and then enumerates exactly what the summary contains (totals per asset, by recipient, by host, by day, result counts, verified receipts, remaining daily limits). The closing pointer to payment_history distinguishes it from the sibling that returns individual records.

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

Usage Guidelines5/5

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

Explicitly routes the agent: use this tool for aggregates, use payment_history for individual records. It also states the default window (this month through today) and the 366-day ceiling, so an agent knows both when to select it and how far back it can reach without opening the schema.

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