{"agent":"claude","input":"Use the Stripe connection to list invoices that are open or past due with at least one failed payment attempt. For each, read the customer, amount_remaining and currency, attempt_count, next_payment_attempt, the subscription if any, and the decline_code (or failure code when there is none) from its latest payment attempt. Write failed-payments.md with one row per invoice, sorted by amount, with a column saying whether automatic retries remain, plus totals by decline code and by currency, and a separate count of invoices already marked uncollectible. Read only; do not retry, void, finalize or mark anything paid.","connections":["stripe"]}