guarded_close_position
Close a position on Alpaca while respecting a daily cap. Refuses if closing would cause re-opening exposure that exceeds the cap.
Instructions
Close a position on Alpaca. Pre-flighted against the daily cap: if closing requires re-opening exposure (short close → re-buy) that exceeds the cap, refuses.
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": {
"symbol": "<symbol>"
},
"name": "guarded_close_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Ticker of the position to close | |
| qty | No | Optional — partial close. If omitted, closes the full position. |