Record a deposit or withdrawal
record_cash_movementRecord a deposit or a withdrawal the signed-in user made at their broker, in one of their InvestIQ portfolios (the primary one unless a portfolio name is given). It updates the portfolio's cash and the performance maths (returns stay neutral to deposits and withdrawals). It RECORDS a movement for tracking — it never moves money. Example: "I deposited 500 EUR on Revolut today" → kind deposit, amount 500, currency EUR, portfolio "Revolut".
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": {
"kind": "<kind>",
"amount": "<amount>"
},
"name": "record_cash_movement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD, default today. Not in the future. | |
| kind | Yes | Money in (deposit) or out (withdrawal). | |
| note | No | Optional note (max 200 characters). | |
| amount | Yes | Amount, in `currency`. | |
| currency | No | ISO code, e.g. EUR, USD, GBP. Defaults to the portfolio's currency. | |
| portfolio | No | Portfolio name; default the primary portfolio. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false on an error; then `error` says what happened and what to do. | |
| card | No | The in-chat InvestIQ card, in English and French. | |
| data | No | The tool's own result fields. | |
| tool | Yes | ||
| as_of | Yes | ISO time the data was computed (a stored analysis: when it was computed). | |
| error | No | ||
| links | No | InvestIQ pages for this result. | |
| degraded | No | true when part of the data was missing. | |
| viz_spec | No | The recommended chart's series (data only). | |
| disclaimer | Yes | ||
| data_quality | No | What was requested, what was used, and why anything was left out. |