edit_order_delivery_address

edit_order_delivery_address

Description

Updates the shipping address of a validated order, after confirming a normalized version of the address. Only works when items remain editable.


When to Use

  • Shipping address contains an error (street, ZIP, city).

  • Customer moved after placing the order.

  • Carrier requires a corrected address for delivery.


Workflow

  1. Collect address components.

  2. Validate address using validate_address.

  3. Confirm normalized lines with customer.

  4. Apply cascading rules.

  5. Call tool.

  6. Handle success/error message.


Arguments

Field

Type

Required

Field

Type

Required

order_id

string

Yes

line1

string/null

Optional

line2

string/null

Optional

line3

string/null

Optional

city

string/null

Optional

zip_code

string/null

Optional


Input Schema (simplified)

{ "order_id": "string", "line1": "string", "line2": "string", "line3": "string", "city": "string", "zip_code": "string" }

Output

{ "result": "string" }

Sample Prompts

  • “Correct the delivery address for order 10302”

  • “Update order 7211 shipping city to Marseille.”