policy_check
Evaluate a proposed agent action against a policy and return allow / require_approval / deny with the matched rule and rationale. Paid per call via x402 ($0.005 USDC on Base); returns signing instructions when unpaid.
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": {
"request": "<request>"
},
"name": "policy_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ledger | No | Optional cumulative exposure for the window. A per-action gate cannot see repetition: 49 payments of $40 each pass a $50 rule individually. Omit it and any policy declaring a cumulative bound returns deny with ledger_required — a cap you can skip by omitting state is decorative. Explicit zeros are an answer; an absent object is not. | |
| policy | No | Your own policy document, evaluated instead of ours | |
| request | Yes | ||
| policy_id | No | Built-in policy id; see policy_rules. "default-action-tiers-capped" adds a cumulative spend bound. |