Skip to main content
Glama
tillbooks

tillbooks

Official

asset_dispose

Idempotent

Books a fixed asset sale, scrap, donation, or write-off in one atomic transaction, posting any gain or loss and marking the asset disposed.

Instructions

Dispose an active or fully_depreciated fixed asset (H06): the TERMINAL financial event (sale, scrap, donation, write-off, retirement). In ONE atomic transaction it (a) posts ONE balanced GL journal via A02 (source=asset_disposal) clearing the asset cost (Cr) and its accumulated depreciation (Dr), recognising the proceeds (Dr the proceedsAccountId) and the resulting book gain (Cr) or loss (Dr) on the gainLossAccountId; (b) writes ONE append-only asset_transaction (type=disposal, deltaCostRappen = -cost, deltaAccumDeprRappen = -accumulated, proceedsRappen, gainLossRappen) naming that journal; and (c) moves the asset to status=disposed, forces net_book_value_rappen to 0 and stamps disposed_at / disposal_proceeds_rappen (cost and accumulated stay for historical reporting). The gain/loss SIGN is proceedsRappen minus net book value: proceeds above NBV credit the gain account, below NBV debit the loss account, exactly equal writes no gain/loss line. A scrap (proceedsRappen = 0) writes no proceeds line and needs no proceedsAccountId. After success the asset is permanently excluded from every future depreciation run (H03/H04 status filter) and asset_update refuses it with asset_terminal. Refused with not_found (foreign asset, §H-TENANT), asset_already_disposed (a second dispose: first wins, second is refused), asset_archived, asset_not_acquired (a draft has no cost basis), invalid_proceeds, invalid_gain_loss_account, invalid_proceeds_account, or period_locked (disposalDate in a hard-locked A03 period). A wrong disposal is corrected by reversing the journal (A02) plus a compensating asset_transaction, never an un-dispose. Idempotent on idempotencyKey: a replay returns the original {asset, transaction, journalEntry, gainLossRappen} and posts no second journal, appends no second transaction and re-flips no status. CONSEQUENCE: Books the asset's sale or write-off with its gain or loss and takes it out of the register. If it is wrong, you reverse the disposal and the asset is back in the register.

Input Schema

NameRequiredDescriptionDefault
notesNo
reasonNo
assetIdYes
workspaceIdYes
disposalDateYes
idempotencyKeyYes
proceedsRappenYes
counterpartyNameNo
gainLossAccountIdYes
proceedsAccountIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare idempotentHint and destructiveHint=false; the description goes far beyond, disclosing atomicity, the exact append-only records written, which fields are zeroed versus preserved for historical reporting, the gain/loss sign rule, the scrap special case, tenant isolation (§H-TENANT), period locks, and a full enumerated refusal set. Idempotency semantics on idempotencyKey are spelled out concretely (replay returns the original payload, posts no second journal).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single dense paragraph is front-loaded with the action and structured with (a)/(b)/(c), which helps, but it also embeds GL debit/credit mechanics that are implementation detail rather than agent-actionable, and the closing CONSEQUENCE paragraph restates the opening ('takes it out of the register' / 'reverse the disposal'). Length is partly justified by 0% schema coverage, but trimming the accounting internals and the duplicate summary would lose nothing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description supplies the return shape ({asset, transaction, journalEntry, gainLossRappen}), the full error taxonomy, the post-condition state of the asset, and the reversal-based correction model. An agent has everything needed to call it correctly and to interpret a refusal.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% with 10 parameters, so the description must carry the load — and it does for the consequential ones: proceedsRappen (0 means scrap, no proceeds line), proceedsAccountId (not required for scrap), gainLossAccountId (sign driven by proceeds minus NBV), disposalDate (period-lock interaction), idempotencyKey (replay behavior), and assetId (foreign asset yields not_found). The peripheral fields notes, reason, counterpartyName, and workspaceId are never explained, keeping it below a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ('Dispose an active or fully_depreciated fixed asset (H06)') and immediately qualifies it as the terminal financial event, enumerating the covered transaction types (sale, scrap, donation, write-off, retirement). This is unmistakably distinct from siblings such as asset_transfer, asset_archive, or asset_update, which the description explicitly says will refuse the asset afterwards.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

States the preconditions and exclusions clearly: only active/fully_depreciated assets, drafts rejected with asset_not_acquired, archived assets rejected, second dispose refused with asset_already_disposed, and hard-locked periods refused. It also prescribes the correction path (reverse the journal plus compensating transaction, never un-dispose). It stops short of routing the agent to asset_disposal_preview for a dry run, which would have made it a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools