Skip to main content
Glama

usage_report

Read-onlyIdempotent

Generate per-project reports of tool-usage metrics and token consumption. Track context injection by tool, session, and client, view billed tokens from Claude and Codex, and review recent tool call trails and verification outcomes.

Instructions

Per-project tool-usage + token report. Layers: (1) codehelper OUTPUT — how much context each tool injected, by tool/session/client (claude-code/cursor/codex) — measurable for EVERY client; (2) Claude + Codex MODEL TOKENS — real billed tokens per session, parsed from Claude Code transcripts (/.claude) and Codex rollouts (/.codex); Cursor doesn't expose these locally. Also surfaces the last change-verification (verify/diagnostics) outcome and a recent-call trail. Read-only; never indexes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refsNoHow many recent tool calls to include in the trail (default 20; 0 disables)
repoNoRepository name (optional; defaults to current MCP workspace)
formatNoResponse text encoding: text (default, human-readable) | json
verboseNoExpand the recent-call trail to show each call's input + output preview (to review tool quality)
Behavior5/5

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

Annotations already declare readOnlyHint, destructiveHint, idempotentHint. The description adds critical behavioral details: data sources (.claude, .codex), client-specific coverage (Cursor not locally exposed), and that it never indexes. No contradictions.

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 description is information-dense but somewhat long (multiple sentences listing layers). It could be more concise by grouping details, but it avoids repetition and is well-organized.

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?

Given no output schema, the description covers the report's contents and data sources. It lacks error scenarios or restrictions, but for a read-only diagnostic tool, it is sufficiently complete.

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%, so the baseline is 3. The description adds minimal context beyond schema (e.g., 'default 20' for refs) but does not elaborate on each parameter's meaning. Adequate but not exceptional.

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?

The description clearly states the tool's purpose: 'Per-project tool-usage + token report.' It enumerates specific data layers (codehelper output, model tokens, verification outcome, recent-call trail) and distinguishes it from siblings like log_read or db_query by focusing on usage analytics.

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?

The description implies this tool is for diagnostic/audit use cases ('never indexes', 'read-only'). It does not explicitly state when to avoid it, but the purpose is clear enough for an agent to decide.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/VeyrForge/codehelper'

If you have feedback or need assistance with the MCP directory API, please join our Discord server