sw_batch
Several Splitwise writes in one go, e.g. create an expense, then sw_create_comment / sw_attach_receipt on it with refs {"expense_id": "0.expense_id"}.
Instructions
Several Splitwise writes in one go, e.g. create an expense, then sw_create_comment / sw_attach_receipt on it with refs {"expense_id": "0.expense_id"}. Run several writes with ONE preview and ONE approval, in order, stopping at the first failure (no rollback: the result says which ops were applied). Each op is {tool, args, refs?}; args are exactly what that tool takes (without confirmToken). refs feeds an earlier op's output into an argument, e.g. {"tool": "…", "args": {…}, "refs": {"expense_id": "0.expense_id"}} takes expense_id from op 0. Writes available: sw_create_expense (produces expense_id), sw_update_expense, sw_attach_receipt, sw_delete_expense, sw_undelete_expense, sw_create_comment, sw_delete_comment. Asks the user to confirm first: a confirmation prompt where the client supports one; otherwise the first call returns a preview and a confirmToken, and only a repeat call with that token proceeds (see MCP_CONFIRM_MODE).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | ||
| confirmToken | No | ONLY for the two-step confirmation fallback (a client without MCP elicitation). The confirmToken from this same tool's phase-1 "confirmation-required" response, passed back ONLY after the user has seen that preview and explicitly approved it in chat — never on the first call, never invented, never reused. Call again with the same arguments. Ignored when the client supports elicitation. |