mf_accounting_create_journal
Creates journal entries in MoneyForward Cloud Accounting. Supports dry-run to preview the request body without posting, and validates that debits and credits balance per branch.
Instructions
会計仕訳を新規作成する(POST /api/v3/journals)。dry_run=true の場合は API を呼ばず、組み立てたリクエストボディを JSON で返す。冪等性キー(memo の決定的キー、tags=mf-mcp:auto 等)は呼び出し側で組み立てて memo / tags に渡すこと。事前に各 branch の借貸合計が一致することを検証する。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | メモ(冪等性キーを埋める場合はここ) | |
| tags | No | タグ配列(例: ["mf-mcp:auto", "monthly"]) | |
| dry_run | No | true なら API を呼ばず、組み立てたリクエストボディを返す | |
| branches | Yes | 借貸ペアの配列(複合仕訳可、最低 1 件) | |
| journal_type | No | 仕訳区分。期末調整のみ adjusting_entry | journal_entry |
| transaction_date | Yes | 取引日(YYYY-MM-DD) |