Calculate monthly totals
calculate_monthly_totalsUse this when the user wants quick monthly sales totals from a Stripe, PayPal, Shopify, Etsy, Gumroad or Square export or pasted rows ("how much did I make each month", "monthly totals from my PayPal history") and does not need files. Returns the same month table as summarize_payouts (gross sales, refunds, chargebacks, fees, net, payouts per currency, the Net-column check and the 1099-K view) without the Excel and PDF downloads. Use summarize_payouts when the user wants a spreadsheet or PDF. Does not connect to accounts, convert currencies, or give tax advice.
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": "calculate_monthly_totals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | The payout or transaction export the user attached, CSV or Excel (.xlsx): Stripe balance history, PayPal activity download, Shopify payouts, Etsy monthly statement, Gumroad sales or Square transactions, e.g. stripe-balance-2025.csv. | |
| year | No | Optional: keep only this calendar year, e.g. 2025 (useful for a 1099-K check). Default: every date in the export. | |
| files | No | Optional: more exports to combine in one summary, e.g. a Stripe CSV and a PayPal CSV for the same year. Each currency and platform stays separate. | |
| currency | No | Optional: currency for an export with no currency column, e.g. USD (default) or EUR. Currencies in the file always win; nothing is converted. | |
| platform | No | Optional: the platform when the headers do not show it, e.g. Stripe, PayPal, Shopify, Etsy, Gumroad, Square. Default: detected from the headers. | |
| date_order | No | Optional: order of numeric dates like 03/04/2026: MDY (US, default) or DMY (day first). | |
| transactions | No | Pasted export rows when no file is attached: the CSV text including its header line, e.g. "Date,Type,Gross,Fee,Net,Currency\n01/05/2026,Express Checkout Payment,49.00,-2.20,46.80,USD", or a list of objects like [{"date":"2026-01-05","type":"charge","amount":49,"fee":1.72,"currency":"USD"}], or lines such as "Jan 2026 sales 1200 fees 35". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| months | Yes | ||
| totals | Yes | ||
| sources | Yes | ||
| headline | Yes | ||
| warnings | Yes | ||
| downloads | No | ||
| currencies | Yes | ||
| form_1099k | Yes | ||
| form_1099k_note | Yes |