mf_accounting_update_journal
Update existing accounting journal entries by ID, validating debit and credit totals per branch before calling the API. Set dry_run=true to preview the request body without posting.
Instructions
既存の会計仕訳を更新する(PUT /api/v3/journals/{id})。dry_run=true の場合は API を呼ばず、組み立てたリクエストボディを JSON で返す。事前に各 branch の借貸合計が一致することを検証する。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"journal_id": "<journal_id>",
"transaction_date": "<transaction_date>",
"branches": "<branches>"
},
"name": "mf_accounting_update_journal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | メモ | |
| tags | No | タグ配列 | |
| dry_run | No | true なら API を呼ばず、組み立てたリクエストボディを返す | |
| branches | Yes | 借貸ペアの配列(最低 1 件、指定時は全置換) | |
| journal_id | Yes | 更新対象の仕訳ID | |
| journal_type | No | 仕訳区分。**省略すると更新前の区分を引き継ぐ**(既存の adjusting_entry を黙って journal_entry に戻さないため)。dry_run=true のときは API を呼ばないので必ず明示する | |
| transaction_date | Yes | 取引日(YYYY-MM-DD) |