Skip to main content
Glama

usage_rollup

Read-onlyIdempotent

Aggregates token spend, cache hit rate, cache write share, savings against uncached pricing, and cost per completed task at workspace, thread, or member scope.

Instructions

Spend, cache hit rate, cache write share, dollars saved against the uncached price, and cost per completed task. Scope is the workspace, or one thread, or one member. A completed task is a closed or archived thread that has not been tombstoned. Rates are parts per million of prompt tokens.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspace_id": "<workspace_id>"
    },
    "name": "usage_rollup"
  }
}

Input Schema

NameRequiredDescriptionDefault
member_idNo
thread_idNo
workspace_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile needs no restatement. The description adds genuinely non-obvious semantics on top: the precise definition of a 'completed task' (closed or archived, not tombstoned) and the normalization of rates as parts per million of prompt tokens. What it does not disclose is the time window (there is no date parameter, so presumably lifetime) or precedence when both member and thread are supplied.

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?

Three dense sentences, front-loaded with the metric inventory, then scoping, then two precise clarifications that each earn their place. The one weakness is that the opening is a bare noun list with no verb, which reads more like a field dump than a statement of what the tool does.

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 three-parameter, read-only aggregation with no output schema, the description covers the metrics and the 'completed task' definition reasonably well. It still leaves an agent unsure about the aggregation window (no time-range parameter exists and none is mentioned) and about how the optional scope parameters interact, which matters for correct invocation.

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 description coverage is 0%, so the description carries the burden: it does establish that the three UUIDs are alternative scoping axes (workspace, thread, member). However, it does not say whether member_id and thread_id may be sent together, which wins if they conflict, or that workspace_id is the mandatory one — those gaps are exactly what the undocumented schema leaves open.

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 enumerates exactly which metrics are aggregated (spend, cache hit rate, cache write share, dollars saved vs uncached price, cost per completed task), which pins down the tool's purpose far better than the bare name 'usage_rollup'. It stops short of an explicit verb framing ('returns'/'computes') and never distinguishes itself from the sibling 'report_usage', so an agent still has to guess at the boundary.

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?

'Scope is the workspace, or one thread, or one member' implies how to choose among the optional parameters, but only indirectly. There is no explicit when-to-use, no statement about which sibling to pick for a different kind of usage report, and no note on whether member and thread scoping can be combined.

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