Plan an operation
plan_operationAn operation the user intends, stored in their plan — ONLY when they say they want
it planned. It makes no transaction and moves no figure of their tax years: the plan
is replayed after their own history to show what it would come to (get_planner, a few
seconds later). Several operations are replayed in the order of their days, each
taking the holdings the next cannot have. The result carries the operation's id.
Premium's: refused for an account without it (get_planner's premium).
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": {
"on": "<on>",
"source": "<source>",
"address": "<address>",
"amount": "<amount>"
},
"name": "plan_operation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | The day it is planned for, as YYYY-MM-DD: today or later in the user's country, at most five tax years ahead. | |
| into | No | A swap's alone: the token received, named as ``token`` is. Left out on a swap: the chain's own coin. | |
| kind | No | ``sale``: sold for the money of their tax country. ``swap``: exchanged for ``into``. | sale |
| token | No | The token given, as list_transactions names it at that source (a contract's address, an exchange's symbol). Left out: the chain's own coin. | |
| amount | Yes | How much to sell or swap, in whole units of the token (0.5). | |
| client | No | An account this user may read as its accountant (a client's ``user_id`` from list_clients). Left out: their own account, which is every private user's case. | |
| remind | No | True: the user is emailed on that day with what the plan would do to their tax at a recent price. False: no word is sent. None is sent either way for a day whose morning has already come where they live: they are planning it now. | |
| source | Yes | Where the units are: the chain's or the exchange's ``source`` as list_transactions gives it for a transaction of that holding. | |
| address | Yes | The user's own wallet address or exchange account there, as list_transactions gives it. A wallet marked as their business cannot be planned at. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| on | Yes | ||
| into | Yes | ||
| kind | Yes | ||
| token | Yes | ||
| amount | Yes | ||
| remind | Yes | ||
| source | Yes | ||
| symbol | Yes | ||
| address | Yes | ||
| reminded | Yes | ||
| written_by | Yes | ||
| into_symbol | Yes |