PromptBill
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| promptbill_scan_usageB | Scan local AI coding logs (Claude Code, OpenAI Codex CLI, Gemini CLI, Cline, Roo Code, and imported CSVs) and return per-Git-repository token counts, sessions, models, and USD cost breakdown. 100% local-first. |
| promptbill_repo_spendB | Get detailed AI coding spend, token usage, providers, models, and estimated pass-through billing total for a specific Git repository. |
| promptbill_generate_invoice_pdfA | Generate a native PDF 1.4 client pass-through invoice combining local AI coding spend per Git repo with optional engineering labor, markup %, and GST/VAT. Writes the PDF locally on disk. |
| promptbill_export_csvB | Export local AI coding usage as a standard Repo Summary CSV (Free) or as a ready-to-import Xero or QuickBooks Online invoice CSV (Pro/Agency). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool has a distinct output shape: aggregate scan, single-repo detail, PDF invoice generation, and CSV export. The main risk is confusion between promptbill_scan_usage and promptbill_repo_spend, since both report tokens, models, and USD spend; only the descriptions clarify that one is cross-repo and the other repo-scoped.
All tools use a consistent snake_case pattern with a uniform promptbill_ prefix, which makes the family obvious. promptbill_repo_spend breaks the verb_noun convention (it reads as noun_verb/noun_noun) while the others start with an action verb, a minor deviation.
Four tools map cleanly onto a narrow pipeline: scan usage, inspect one repo, produce an invoice, and export data. The set is small but each tool earns its place; a couple more (e.g. time-range filtering or invoice history) could be justified but are not required.
The surface covers the core lifecycle: discover local usage, drill into a repo, generate a client invoice, and export CSV for accounting systems. Gaps are minor — no tool for managing or re-listing previously generated invoices, and no explicit time-range/reporting configuration tool, though parameters may cover this.