返品処理実行
process_returnFinalize a return for an eligible order by recording the return reason and sending a return confirmation email. Returns an error if the order is not eligible.
Instructions
check_return_eligibility で返品可能と判定された注文について、返品理由を受け取り返品処理を確定する。処理完了後、ユーザーの登録メールアドレス宛てに返品受付通知メールを送信する(本サンプルでは送信をシミュレートする)。返品不可の注文に対して呼び出された場合は RETURN_NOT_ELIGIBLE エラーを返す。
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": {
"order_id": "<order_id>",
"reason": "<reason>"
},
"name": "process_return"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | 返品理由(ユーザーからの聴き取り内容) | |
| order_id | Yes | 返品対象の注文ID |