Skip to main content
Glama

promptbill_export_csv

Export local AI coding usage to a Repo Summary CSV or a ready-to-import Xero or QuickBooks Online invoice CSV, with optional tax, markup, client name, and lookback window.

Instructions

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).

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

Input Schema

NameRequiredDescriptionDefault
daysNoLookback window in days.
demoNoExport from demo data.
reposNoGit repositories to include.
formatNoExport format (default csv).
outPathNoOptional file path to write the CSV.
clientNameNoClient name for Xero/QuickBooks invoice rows.
taxPercentNoTax / GST %.
markupPercentNoPass-through markup %.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add genuinely useful context by revealing tier gating (Free vs Pro/Agency) beyond the schema, but it never addresses that exporting to outPath writes a file, whether files are overwritten, or any license/auth requirement for the Pro formats.

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 with no wasted words, and the two formats are cleanly separated by the parenthetical. It is compact, though the parentheticals compress the tier gating into a dense clause rather than making it immediately scannable.

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 tool with eight optional parameters, no output schema, and no annotations, the description covers only the output artifact and tier gating. It never explains which parameters matter for which format (e.g., whether clientName/taxPercent are required for xero/quickbooks) or the effect of writing to outPath.

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%, so the baseline is 3. The description does add meaning for the format enum by explaining what 'csv' versus 'xero'/'quickbooks' produce, but days, repos, outPath, clientName, taxPercent, and markupPercent get no elaboration beyond their schema text.

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 uses a concrete verb ('Export') and names the resource ('local AI coding usage'), then distinguishes the two output artifacts: a Repo Summary CSV versus a Xero/QuickBooks invoice CSV. Siblings such as promptbill_generate_invoice_pdf and promptbill_repo_spend are not named, so differentiation is by output type rather than explicit routing.

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?

Usage is only implied: 'Free' versus 'Pro/Agency' hints at a tier condition governing which formats are available, and the phrase 'ready-to-import' suggests the invoicing use case. No explicit when-to-use/when-not guidance or named alternative tool is given.

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