Skip to main content
Glama

App: Backfill Historical Token Usage

app_backfill_usage

Backfills unreported DSH and Antigravity token usage from local session logs so usage tracking reflects all agent activity.

Instructions

App-only tool to backfill unreported DSH and Antigravity token usage from local session logs.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the data source (local session logs) and the app-only execution constraint, which are useful beyond the name. It says nothing about side effects, idempotency, whether duplicate records are created, or what happens if logs are absent.

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

Conciseness5/5

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

A single front-loaded sentence with no filler; the app-only restriction and the data source are stated without redundant phrasing.

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 zero-param action tool with no annotations and no output schema, the definition covers what it does and where input comes from but leaves the outcome (what gets written, anywhere it returns a summary) unexplained. Adequate but with clear gaps for an agent deciding whether to invoke a state-changing backfill.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so the schema baseline of 4 applies; there are no argument semantics the description needs to explain.

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?

States a specific verb and resource ('backfill ... token usage') plus the data source ('local session logs') and the domains covered (DSH, Antigravity). It distinguishes itself from hub_get_usage by being a backfill action rather than a read, though it does not name siblings explicitly.

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?

'Backfill unreported ... usage' implies the trigger condition (usage exists in local logs but was never reported) and 'App-only' signals a restricted execution context. However, no explicit when-to-use/when-not guidance or pointer to alternatives like hub_get_usage is given.

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