buy
Buy items at market price from the station exchange (Exchange orders pay no listing fee. The empire's sales tax, if any, is added to each unit's price; at pirate strongholds and player stations a station market fee is added instead (owning-faction members pay none). Items delivered to cargo (or storage if cargo full). Use deliver_to=storage to send directly to storage. Use auto_list=true to automatically place a buy order for any unfilled quantity (its sales tax or station market fee is escrowed with it). You can hold at most 1000 open personal orders per station. Accepts item_id or item name (e.g. 'Iron Ore').)
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": {
"session_id": "<session_id>",
"item_id": "<item_id>",
"quantity": "<quantity>"
},
"name": "buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | ID of the item to buy (e.g., iron_ore, steel_plate) | |
| quantity | Yes | Quantity to buy | |
| auto_list | No | If true, automatically place a buy order for any quantity not filled immediately (sales tax or station market fee is escrowed with it). | |
| deliver_to | No | Where to deliver purchased items: 'cargo' (default) or 'storage' (station storage, useful when cargo is full). | |
| session_id | Yes | Your session ID from login/register |