Explain Spend Policy
paybond_explain_policyCheck if a proposed spend is allowed, requires approval, or gets denied under tenant spend control policy.
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 | Optional task scope hint for policy evaluation. | |
| currency | No | Optional ISO currency code for the proposed spend. | |
| intent_id | Yes | Canonical Harbor intent UUID. | |
| operation | No | Optional delegated operation or tool name. Defaults to * when omitted. | |
| tool_name | No | Optional tool name scope hint for policy evaluation. | |
| vendor_id | No | Optional vendor scope hint for policy evaluation. | |
| workflow_id | No | Optional workflow scope hint for policy evaluation. | |
| tool_call_id | No | Optional tool-call correlation id for policy evaluation. | |
| agent_subject | No | Optional agent subject for agent-scoped caps. | |
| approval_token | No | Optional approval token to evaluate against pending approval state (not consumed). | |
| requested_spend_cents | No | Optional proposed spend in cents for the dry-run evaluation. |
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. |