Skip to main content
Glama

countinghouse_usage_report

Reports call counts, server calls, bytes read and returned, and estimated token use by tool, server, scenario, or module for a selected time range.

Instructions

What this countinghouse has done for you: per tool, server, scenario or module, the calls, the server calls made for them, and the bytes read from servers and returned to the model, from this process and, where a usage directory is kept, earlier ones that wrote to it. On a shared runtime, the calls of this session only; in a session's own ch-local runtime, this session's calls since that runtime started. countinghouse-usage --usageDir <the usage directory> in a terminal covers every session that writes there. Token columns are an estimate (utf8 bytes / 4).

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

Input Schema

NameRequiredDescriptionDefault
sinceNoa day (YYYY-MM-DD), an ISO time, a duration back from now (30m, 24h, 7d), or "all" (from the first record); absent: the last 31 days for a plain key, everything recorded for an admin
untilNoa day (YYYY-MM-DD, through its end), an ISO time, or a duration back from now; absent: now
groupByNowhat each row counts: a tool (the default), a server, a scenario (the top-level module a call was made to), or a module

Output Schema

NameRequiredDescriptionDefault
daysYes
groupsYes
methodYes
sourceYes
totalsYes
windowYes
groupByYes
profileYes
standInNo
daysOmittedYes
groupsOmittedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful behavior: the historical scope of the data (this process plus earlier sessions that wrote to the usage directory), the runtime-dependent counting semantics, and the important caveat that token columns are estimates computed as utf8 bytes / 4. It does not state pagination, ordering, or read-only guarantees, which are gaps but secondary for a reporting tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core content is front-loaded, but the opening sentence is a long run-on stacking calls, server calls, and two byte metrics, which slows parsing. The runtime-scope and CLI sentences do earn their place; the density rather than length is the weakness.

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 reporting tool with an output schema and fully documented parameters, the description covers the remaining burden: data provenance across sessions, runtime-dependent counting, and the token-estimate caveat. Only presentation details like ordering or row limits are unaddressed, which an agent can tolerate here.

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 100%, including accepted formats for since/until and enum meanings for groupBy, so the baseline is 3. The description only marginally adds beyond the schema: it re-contextualizes the historical range ('earlier ones that wrote to it') and the token estimation basis, but supplies no extra syntax or edge-case semantics for the parameters.

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 the resource (a usage report) and enumerates exactly what it reports: calls per tool/server/scenario/module, server calls, bytes read and returned. It is a query/report tool, though the phrasing ('What this countinghouse has done for you') is narrative rather than a plain verb+resource statement. Siblings (load_module, validate_module, settings) are functionally distinct, so no explicit differentiation is needed, but none is offered either.

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?

It explains scoping conditions well: on a shared runtime only this session's calls, in a session's own ch-local runtime this session's calls since start, and the CLI covers every session writing to the usage directory. However, it never states an explicit when-to-use rule or an exclusion relative to the sibling reporting tool (countinghouse_overview), leaving the choice to inference.

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