Prepare Repair
prepare_repairUse ONLY for the normal repair flow after quote_repair has already returned a quoteId and the caller explicitly chooses that existing quote. This tool does not create a quote: with confirm=true it records acceptance of that quote and creates checkout instructions on exactly one rail offered by it. Do NOT use this tool for owner/platform-preauthorized autonomous purchasing where the agent is allowed to choose one of the four capped micro-services and create its own quote; use request_delegated_purchase for that separate flow. APPLE_PAY returns a human handoff URL for buyer authorization; BASE_USDC and TRON_USDT return payer transfer instructions. It never sends funds, charges the caller, verifies payment or directly starts repair execution. After the buyer completes the required payment action, use verify_repair with the returned checkoutId and the same rail.
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": {
"quoteId": "<quoteId>",
"confirm": "<confirm>",
"rail": "<rail>"
},
"name": "prepare_repair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rail | Yes | Choose exactly one id from the descriptors in quote_repair.paymentRails. Saudi quotes normally offer APPLE_PAY only. | |
| source | No | Optional attribution label for the calling agent or integration. | |
| confirm | Yes | Must be true to record explicit acceptance before checkout instructions are created. | |
| quoteId | Yes | Exact quoteId returned by quote_repair and explicitly accepted by the caller. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rail | No | Selected payment rail. | |
| error | No | Present when quote acceptance or checkout preparation failed. | |
| phase | No | PREPARE_REPAIR on success. | |
| quoteId | No | Accepted quote identifier. | |
| checkout | No | Checkout record/instructions returned for the selected rail; includes the checkout identifier used by verify_repair. | |
| nextTool | No | verify_repair after the buyer completes the payment action. | |
| fundsSent | No | False; this tool does not send funds. | |
| nextAction | No | For APPLE_PAY, human handoff information; for wallet rails, payer transfer instructions. | |
| automaticJob | No | False; this preparation step does not start a repair job. | |
| paymentVerified | No | False until verify_repair confirms an existing payment. | |
| quoteAcceptance | No | Commerce acknowledgement that the quote was accepted. | |
| automaticPayment | No | False; no automatic charge or transfer occurs. | |
| automaticExecution | No | False; this preparation step does not directly execute repair. |