yax_check_policy
Determine whether an action would be approved by your policy without running it. Returns approved/denied, remaining spend cap, and human approval requirement.
Instructions
Checks if an action would be approved by your policy without running it. Returns approved/denied, remaining spend cap, and whether human approval is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action_type | Yes | The action category to check against policy, e.g. 'payment', 'email', 'on_chain'. | |
| parameters | No | Action parameters to evaluate, including amount and recipient if applicable. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decision | No | Policy decision: approved, denied, or requires_approval. | |
| policy_version | No | Version of the policy that was evaluated, e.g. policy_v12. | |
| shade_guard | No | ShadeGuard check result: pass or fail. | |
| cap_remaining_usd | No | Remaining spend cap in USD for this agent in the current period. | |
| requires_approval | No | Whether this action would require human approval before executing. |