Cost Check
warden.cost_checkConvert gross edge into net-of-cost reality by charging spread, slippage, and adverse selection at both entry and exit under a pessimistic fill model.
Instructions
Convert a claimed gross edge into net-of-cost reality under the pessimistic fill model.
Spread + slippage + adverse selection are charged at both entry and exit, always against the position — the same model the gym scores every episode with.
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": {
"gross_edge_bps": "<gross_edge_bps>",
"spread_bps": "<spread_bps>",
"slippage_bps": "<slippage_bps>",
"adverse_selection_bps": "<adverse_selection_bps>"
},
"name": "warden.cost_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spread_bps | Yes | Average bid-ask spread in bps. | |
| slippage_bps | Yes | Expected slippage in bps. | |
| gross_edge_bps | Yes | Claimed gross edge in basis points before costs. | |
| adverse_selection_bps | Yes | Adverse-selection drag in bps. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| how | No | ||
| tool | No | ||
| error | No | ||
| access | No | ||
| verdict | No | ||
| provenance | No | ||
| gross_edge_bps | No | ||
| net_return_bps | No | ||
| one_way_cost_bps | No | ||
| request_access_at | No | ||
| round_trip_cost_bps | No |