Skip to main content
Glama

promptbill_repo_spend

Retrieve AI coding spend, token usage, providers, models, and estimated pass-through billing totals for a specific Git repository over a configurable lookback window.

Instructions

Get detailed AI coding spend, token usage, providers, models, and estimated pass-through billing total for a specific Git repository.

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": {
      "repo": "<repo>"
    },
    "name": "promptbill_repo_spend"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLookback window in days (default 30).
demoNoUse sample demo data.
repoYesGit repository name (e.g., acme-payments-api).
taxPercentNoOptional GST/VAT % (default 0).
markupPercentNoOptional pass-through handling markup % (default 15).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. 'Get' implies a read-only retrieval and the text discloses what data is aggregated (spend, tokens, providers, models, estimated billing), which is genuine behavioral value. However, it says nothing about permissions/auth needs, whether billing figures are estimates only (the word 'estimated' hints), how markup/tax affect the total, or whether demo mode alters or blends results.

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?

A single front-loaded sentence that names the resource and its measurable outputs with no filler. The list of outputs is slightly run-on but every element is informative.

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 read-only reporting tool with a fully documented 5-parameter schema and no output schema, the definition covers the essential 'what you get back and for which repo'. The remaining gaps—how demo data behaves and how markup/tax shape the total—are minor because the schema describes those knobs.

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 every parameter is documented in the schema, so baseline is 3. The description adds only that the scope is a single named repository and that the billing total is an 'estimated pass-through' figure, which loosely contextualizes markupPercent and taxPercent but gives no formulas or interactions.

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 ('Get') and enumerates the resource content: AI coding spend, token usage, providers, models, and pass-through billing total, scoped to a single Git repository. It is clear what the tool returns, but it does not name or distinguish itself from siblings like promptbill_scan_usage or promptbill_export_csv, leaving the agent to infer 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 Guidelines2/5

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

There is no explicit when-to-use guidance, no statement of when NOT to use it, and no alternatives named. The phrase 'for a specific Git repository' implies a per-repo reporting context, but an agent gets no help choosing between this and the invoice/export/scan siblings.

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