{"name":"invoice_generator","title":"Invoice Generator","category":"freelance","description":"Total a freelance invoice from line items {description, qty, rate} with optional discount and tax: subtotal, discount, tax, total, amount due.","price_usd":0.001,"input_schema":{"type":"object","properties":{"line_items":{"type":"array","description":"Line items: [{description, qty, rate}]"},"tax_pct":{"type":"number","description":"Sales-tax percent applied to the discounted subtotal"},"discount":{"type":"number","description":"Discount amount (flat USD, or percent if discount_is_pct)"},"discount_is_pct":{"type":"boolean","description":"Treat discount as a percent of subtotal"},"amount_paid":{"type":"number","description":"Amount already paid, subtracted from total for amount_due"}},"additionalProperties":false,"required":["line_items"]}}