Fixed assets and their purchase
assetFixed assets (round 611). action=list: the register (cost, accumulated depreciation, book value, what is due, the purchase entry) and the entries on fixed asset accounts that are not on it. action=add with asset and how: bank (paid_from: the ledger account code of the bank, like 1200; tax_code: the purchase tax rate, VAT on top of the net cost) or supplier (supplier name, reference, tax_code): the purchase entry is proposed with it, cost on the asset account, the total against the bank or the supplier's creditor account; entry (journal_id: the purchase is in the books already); opening (bought before the books start: opening_accumulated, books_start; post_opening=false where the opening balances hold it already). action=purchase with asset_id and how bank or supplier puts the purchase of an asset on the register forward, how=entry with journal_id links it. action=from_entry with journal_id, account, name and life_months puts a ledger line on the register. action=depreciate with period (YYYY-MM): every asset's depreciation due up to the month's end, one entry a month. action=dispose with asset_id (or code), disposed_on (YYYY-MM-DD), proceeds (what was received, VAT included; left out: nil, scrapped), proceeds_account (the bank like 1200 or the debtor, needed with proceeds), tax_code (the sales tax rate of the sale; left out: the standard rate where the company is VAT registered, none for no VAT) and result_account (left out: the chart's Loss on disposal or Profit on disposal account, by the result): the asset leaves the register on that day and one proposal books the depreciation still due up to the month before and the disposal (cost and accumulated depreciation off the books, the difference to the proceeds as gain or loss). Every entry is released as the owner's switches say. asset: {name, cost (net), acquired_on (YYYY-MM-DD), in_use_from, method (straight_line with life_months, reducing_balance with rate a year in percent, none), residual, cost_account, accumulated_account, expense_account (left out: the chart's lowest fixed asset account and its own), code (left out: the next FA-nnn), note}
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": {
"action": "<action>"
},
"name": "asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| how | No | ||
| code | No | ||
| name | No | ||
| asset | No | ||
| action | Yes | ||
| period | No | ||
| reason | No | ||
| account | No | ||
| company | No | ||
| asset_id | No | ||
| proceeds | No | ||
| supplier | No | ||
| tax_code | No | ||
| paid_from | No | ||
| reference | No | ||
| journal_id | No | ||
| books_start | No | ||
| disposed_on | No | ||
| life_months | No | ||
| post_opening | No | ||
| result_account | No | ||
| proceeds_account | No | ||
| opening_accumulated | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||