compile_policy
Compiles natural-language risk rules into a JSON policy and returns a PREVIEW. Activation requires separate approval: from the panel or via POST /api/mcp/policies/{policy_id}/activate.
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": {
"natural_text": "<natural_text>"
},
"name": "compile_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| natural_text | Yes | The user's risk rules in plain language, e.g. 'never risk more than 2% per trade, max 3 open positions, no leverage above 10x, long only, BTC and ETH only'. |