Simulate control policy
stack_simulate_control_policyTry one call against a policy to see the result before an agent makes it. Name agent_id to try the policy in force for that agent, or give a definition to try a draft instead. Nothing is counted, held or sent, and no money moves. A refusal names the rule that stopped the action and nothing from the call: policy_id, policy_revision, section, rule, code and, for some rules, a detail holding the policy's own side of the comparison (a limit, the size of an allowed list), never a value the call carried. Returns verdict (allow, review or deny), policy (id, revision and source: agent, default or draft), refusal, message, limits (each counter that applies with what is used and remaining), controls_enabled and checked (whether this action kind is checked). Operator only. A controls feature: with controls off the API answers 402 CONTROLS_REQUIRED, and the owner switches controls on in the Console, at the Billing page. A self-managed install has every controls feature.
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": {
"call": "<call>"
},
"name": "stack_simulate_control_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| call | Yes | The call to try: action (an action kind such as email.send or proxy.call), target as a decision request carries it, amount_cents, connection_id, and for proxy.call the request itself (method, url, body, query). mission_id (ms_*) tries the call inside that Mission, so the recipients it names count for a rule whose recipients are set per job. reply_to_message (amsg_*, or an incoming call) tries a send of the account itself (email.send, sms.send or call.start) as answering that stored message, as a live send does; it needs agent_id | |
| agent_id | No | The agent (agt_*) whose policy applies. Ignored when definition is given. | |
| definition | No | A draft policy to try instead of the stored one |