Total a freelance invoice from line items {description, qty, rate} with optional discount and tax: subtotal, discount, tax, total, amount due.
Free tier eligible — 500 calls/month with a free key from /pricing; x402 pay-per-call above quota.
| Parameter | Type | Required | Description |
|---|---|---|---|
line_items | array | required | Line items: [{description, qty, rate}] |
tax_pct | number | optional | Sales-tax percent applied to the discounted subtotal |
discount | number | optional | Discount amount (flat USD, or percent if discount_is_pct) |
discount_is_pct | boolean | optional | Treat discount as a percent of subtotal |
amount_paid | number | optional | Amount already paid, subtracted from total for amount_due |
curl -s https://wingmanprotocol.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "invoice_generator", "arguments": {"line_items": []}}}'curl -s https://wingmanprotocol.com/tools/invoice_generator \
-H 'Content-Type: application/json' \
-d '{"line_items": []}'Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/invoice_generator from your browser.
X-Payment header, or get a free key at /pricing (500 calls/month, no card, no crypto).