Check a proposed spend against limits
trust_check_spendCompare a proposed spend with a remaining budget, transaction ceiling and merchant allowlist, returning ALLOW/BLOCK with reasons. Budget and ceiling are independent: amount=4, remaining_budget=10, per_transaction_limit=3 returns BLOCK; equality passes. Use one currency/unit, and update remaining_budget in your application after each actual purchase: this tool neither tracks cumulative spending nor converts currencies. Omitting allowed_merchants skips merchant checks; supplying it requires an exact merchant match, and [] blocks all merchants. Use trust_check_action to include evidence or data checks. Enforce BLOCK before paying; this tool never accesses a wallet or executes payment. Free, unauthenticated, stateless pilot: rules apply only to this call. Usage metadata is recorded; request bodies are not stored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Proposed non-negative amount. Use the same currency/unit as both limits. | |
| merchant | No | Merchant identifier; required when allowed_merchants is supplied. | |
| remaining_budget | Yes | Caller-supplied remaining budget; never read from a wallet or persisted by this service. | |
| allowed_merchants | No | Optional exact, case-sensitive merchant allowlist. An empty list blocks every merchant. | |
| per_transaction_limit | No | Optional inclusive maximum amount per transaction. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | The operation completed; does not imply the verdict is ALLOW. | |
| reasons | Yes | All failed checks; empty when ALLOW. | |
| service | Yes | Service that evaluated the request. | |
| verdict | Yes | Advisory verdict. The integrator must prevent execution on BLOCK or any error. | |
| version | Yes | Deployed implementation version. | |
| warning | Yes | Advisory-only payment limitation. |