Reciprocal Ruler - quote lock (x402 paid)
ruler_quote_lockLocks agreed trade terms between two agents and returns a deterministic quote hash both sides can cite later; it rejects rule-version mismatches before charging.
Instructions
Lock the trade terms the two agents agreed on and get a deterministic quote_hash both sides can cite later. Costs $0.05 USDC on Base, paid with x402. Without a payment this tool returns the HTTP 402 payment challenge decoded into Base USDC instructions; pay it with an x402 wallet and pass the signed payload back as payment_header to complete the call. If the two agents run different rule versions the call is refused with VERSION_MISMATCH (409) and nothing is charged.
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": {
"buyer_version": "<buyer_version>",
"supplier_version": "<supplier_version>",
"buyer_id": "<buyer_id>",
"supplier_id": "<supplier_id>",
"terms": "<terms>"
},
"name": "ruler_quote_lock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| terms | Yes | Agreed terms, at minimum price_krw. Also useful: free_cancel_until, refund_ratio_on_cancel, holdback_ratio. | |
| buyer_id | Yes | Identifier of the buyer agent. | |
| supplier_id | Yes | Identifier of the supplier agent. | |
| buyer_version | Yes | Rule version the buyer agent runs, e.g. '1.0'. | |
| payment_header | No | Signed x402 payment payload for this request (sent as X-PAYMENT). Omit it to receive the payment challenge. | |
| supplier_version | Yes | Rule version the supplier agent runs; must match buyer_version. |