AI-powered invoice automation for MCP. Create invoices, predict late payments, auto-remind, reconcile payments, and track cash flow.
InvoiceFlow demonstrates solid tool design with clear naming, comprehensive descriptions (avg 250+ chars), and well-structured schemas using Zod. All 5 tools have explicit descriptions and input schemas with type definitions. Tool annotations are present (readOnlyHint, destructiveHint, idempotentHint). However, output schemas are not formally documented in the code, responses use structuredContent but lack explicit schema declarations. Error handling is basic (handleToolError utility exists but recovery guidance is minimal). Parameter descriptions are strong but some edge cases (e.g., date format flexibility in invoice_create) lack explicit validation rules in descriptions.
Create or upsert a client record used by invoice_create. Accepts name, email, company, address, city, country, tax_id, phone, default_currency ("USD"|"EUR"|"GBP"|...) and notes. Returns the stored client object including the generated id (UUID), an empty payment_history (populated as invoices are paid), and timestamps. Safe to call repeatedly: if a client with the same email already exists, the existing record is returned unchanged.
Create a new invoice for an existing client. Required: client_id (UUID) and line_items (non-empty array of {description, quantity, unit_price, tax_rate?, discount_percent?} — tax and discount are per-line). Optional: currency (defaults to the client's default_currency then USD), issue_date (YYYY-MM-DD or full ISO, defaults to today), due_date (same format, defaults to issue_date + 30 days), notes, and terms. Auto-calculates subtotal, discount_total, tax_total, and total; generates a sequential invoice_number in format INV-YYYY-NNNN; sets status="draft". Returns the full invoice object ready for invoice_send.
Populate the store with a realistic demo dataset: 8 clients across 5 archetypes (on-time, late-payer, high-value, new, chronic-late) and 25-45 invoices spanning the last 6 months (paid, sent, and overdue). Every invoice has line items, tax, payment history, and reminder metadata. Use this to evaluate InvoiceFlow via MCP Inspector without real Stripe, SendGrid, or PayPal credentials — invoice_list, cashflow_report, invoice_risk, and payment_reconcile all return meaningful results against the returned ids. Safe to call multiple times; each call appends a fresh batch with unique UUIDs. Returns counts plus sample_invoice_ids you can feed straight into invoice_risk or invoice_mark_paid.
Output schemas not formally documented. Tools return structuredContent but lack explicit response schema declarations. LLMs cannot reliably predict return fields without documented schemas.
Error handling lacks recovery guidance. handleToolError utility exists but error responses do not guide LLMs on retry eligibility, user-fixable vs fatal classification, or next steps.
Date parameter flexibility (YYYY-MM-DD or full ISO-8601) documented in description but no format constraint in schema. LLMs may pass invalid formats.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 67 | 2025-06-18+ | v2 |
Search and filter invoices. Optional filters: status ("draft"|"sent"|"viewed"|"paid"|"overdue"|"cancelled"|"refunded"), client_id, min_amount, max_amount, date_from/date_to (ISO dates), overdue_only (boolean). Pagination via limit (default 50, max 200) and offset. Returns {total, invoices[]} where each invoice includes full line_items and payment state. Use this to build dashboards or drive invoice_remind/invoice_risk workflows.
Generate the invoice PDF and deliver it to the client. Always generates the PDF and marks the invoice status="sent". Email delivery via SendGrid is attempted automatically when the SENDGRID_API_KEY environment variable is set; without it the PDF is still generated and the status still advances so the caller can handle delivery out-of-band. Returns a confirmation message with the PDF size.
invoice_list pagination defaults (limit=20, offset=0) differ from description claim (default 50, max 200). Schema shows limit min=1, max=100. Inconsistency confuses LLMs.
No confirmation or dry-run pattern for destructive operations (invoice_send, client_manage upsert). Agents cannot preview side effects before committing.