openentity_commerce_check
Verify an agent purchase before you accept it (Agent Commerce Check): returns allow, step_up or deny with reasons and an evidence_id kept 400 days. Send the agent's signed HTTP request (method, url, headers; add body or body_b64 when the request was signed over it), the cart/1, the merchant policy, and the mandate (or an OE-Mandate header). Free, no key.
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>",
"cart": "<cart>"
},
"name": "openentity_commerce_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart | Yes | cart/1: profile, merchant, agent_did, lines, total, currency, rail, mandate_id | |
| policy | No | agent_policy: min_level, require_owner, require_mandate, min_security_band, accept_issuers, min_owner_level; or {merchant: <did>} to use the policy that merchant published | |
| mandate | No | mandate/1, when not in an OE-Mandate header | |
| request | Yes | ||
| approval | No | {approval: approval/2.0, verifier_did, request_id}: the owner's approval of this exact cart, after a step_up |