Explain Spend Policy
paybond_explain_policyCheck if a proposed spend is allowed, requires approval, or is denied under tenant spend-control policy. Provides a read-only explanation without authorizing spend.
Instructions
Use this when you need a read-only explanation of whether a proposed spend would allow, require approval, or deny under the tenant spend-control policy. Do not use this to authorize spend or create approval requests; call paybond_authorize_agent_spend to persist a decision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | No | ||
| currency | No | ||
| intent_id | Yes | ||
| operation | No | ||
| tool_name | No | ||
| vendor_id | No | ||
| workflow_id | No | ||
| tool_call_id | No | ||
| agent_subject | No | ||
| approval_token | No | ||
| requested_spend_cents | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome | Yes | Normalized policy outcome: allow, approval_required, or deny. | |
| explanation | Yes | Human-readable explanation derived from reason codes. | |
| reason_codes | No | Stable policy reason codes from the dry-run evaluation. | |
| remaining_cents | No | Remaining spend budget in cents for the evaluated scope, when available. | |
| approval_threshold_exceeded | No | True when the dry-run indicates the request is at or above the approval threshold. |