broker_positions
Retrieve open positions from an Alpaca paper trading account. Supports markdown or JSON output.
Instructions
Read open positions from an Alpaca paper trading account.
OPTIONAL — requires ALPACA_API_KEY and ALPACA_SECRET_KEY in .env. If keys are absent, returns a graceful 'no data' message with setup instructions. Read-only: never places orders or moves money.
Args: params: response_format ('markdown'|'json').
Examples: - "What positions do I have open in my paper account?" -> (no ticker needed) - "Show me my paper portfolio" -> (no ticker needed)
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": {
"params": "<params>"
},
"name": "broker_positions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |