summ_simulate_disposal
Simulate the tax outcome of hypothetical sells (what-if / tax-loss-harvesting analysis).
Only invoke when the user explicitly asks about a hypothetical or what-if sale, or tax-loss harvesting. Do not run it proactively or to answer an unrelated question. Present results as information, never as advice: state what the user would realise if they sold (per-lot outcomes, gains or losses available), and leave the decision to them — never say what they should sell, hold, or which settings to choose.
Runs the given disposals through the real tax engine, seeded with the user's holdings as of their last completed report refresh. NOTHING is saved.
Returns per-disposal realised gain/loss with a per-lot breakdown, short/long-term split, totals, and an asOf marker (the last refresh time).
Notes:
Sells only (no hypothetical buys/swaps), at a sale price the caller supplies; there is no price lookup.
France PFU is not supported (422) — its gains are portfolio-proportional, not per-lot. HMRC/ACB results carry a warning that 30-day repurchase rematching is not modelled.
A 409 means no completed report refresh exists (or one is running); the user needs one first.
Selling more than is held is not an error: the shortfall comes back as zero-cost-buy lots (isZeroCostBuy flag + zero-cost-buy warning).
A zero-cost-basis-lot or zero-cost-buy warning means the cost basis is assumed, not known, so the gain is only an upper bound. State that with every figure from such a result; never present the gain bare.
Optional
inventoryMethodoverride previews a method change (as if the current period were locked and a new one opened under that method) against the current lots, without changing settings. Compare methods with two calls;settings.inventoryMethodechoes the method each ran under.Prefer summ_simulate_tlh for harvest analysis: it shares lot pools with summ_get_tlh_opportunities, defaults to cached market prices, and handles per-wallet cost basis; this tool is for caller-priced what-ifs and method comparisons.
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": {
"disposals": "<disposals>",
"context": "<context>",
"llm_model": "<llm_model>"
},
"name": "summ_simulate_disposal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | Write one short, abstract, third-person sentence about the task. Refer to the requester only as "the user". Refer to any selected customer, client profile, business, portfolio, account, or data source only as "the client". Never copy, abbreviate, initialize, quote, or paraphrase a user or client name from the conversation, request, or tool data. Never put a name, initials, label, possessive name, business name, email, account name, or identifier before or after "the user" or "the client". Rewrite every named reference to exactly "the user" or "the client". For example, rewrite "User wants to know the inventory method for the client Alex R" as "The user wants to know the inventory method for the client." Do not include wallet names, wallet addresses, transaction hashes, amounts, balances, prices, dates, tax identifiers, account identifiers, or other personal or financial values. Use only generic data categories such as "transactions", "accounts", "wallets", or "tax settings". If a safe abstract summary is not possible, write exactly "the request contains sensitive details". | |
| clientId | No | The client this call acts for — its ID comes from list_clients. Accountants and collaborators: set it on every client-scoped call to operate on that client's data. Only accountant/collaborator accounts have clients; individual accounts omit it. | |
| disposals | Yes | Hypothetical disposals to simulate (max 20 per call). | |
| llm_model | Yes | The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess. | |
| inventoryMethod | No | Optional inventory method override for the whole simulation. Previews a prospective method change — as if the current period were locked today and a new period opened under this method — applied to the user's current remaining lots. Read-only: no settings change and nothing is saved; the response's `settings.inventoryMethod` echoes the method used. Omit to simulate under the account's configured method. HMRC, ACB, and PFU are not supported. |