Prepare an action for the user to confirm
prepare_actionPrepare (NOT perform) an action on the user's own Dispatch account. This server never signs or sends anything.
With session_token (from verify_login) it stores a single-use action (valid 15 min) and returns confirm_link (https://dispatch.cash/mcp-confirm#): the user opens it, reviews the exact spec and signs it in THEIR OWN wallet; only then the page asks Dispatch to do it, through the same API the app uses. Kinds:
subscribe: start/switch to strategy_id (from list_strategies), optional amount_eth deposit (max 1 ETH);
deposit: add amount_eth to the user's own Dispatch smart account;
set_ticket: ETH spent per copied buy (ticket_eth, max 0.25);
pause / resume: stop or restart new copied buys (open positions stay);
unsubscribe: stop, sell open positions, send everything back to the user's own wallet;
withdraw: amount_eth or 'all' (free cash) back to the user's own wallet. Money can only go to the account owner; a different recipient is refused. Without session_token, kinds follow/withdraw/sell return a plain dispatch.cash/app link with steps (no confirm page).
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>"
},
"name": "prepare_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| token | No | ||
| recipient | No | ||
| amount_eth | No | ||
| ticket_eth | No | ||
| strategy_id | No | ||
| session_token | No | ||
| wallet_address | No |