Quote a China to USA shipment
generate_offerPrices a real shipment from China to a US address, 100 g to 2,000 kg, on Plain Freight's live pricing engine. Returns door to door prices in USD: each option covers freight, US customs clearance and delivery, and says whether US import duty is included (DDP) or paid at import. Carton dimensions affect the price: for light, bulky cargo the volumetric weight sets it. Side effects: each call records a separate quote request with Plain Freight, and if an email is given the written offer is emailed to that address once a second check settles (at most one offer email per address per day). Nothing is booked or charged. The result carries a quote_id, by which the second check's verdict can be read.
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": {
"product": "<product>",
"weight_kg": "<weight_kg>"
},
"name": "generate_offer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional. The name to address the offer email to | |
| No | Optional. Address the written offer is mailed to; replying to that email is one way to book. | ||
| notes | No | Optional shipment facts: HS code, Amazon FBA requirements, delivery constraints, certifications held | |
| origin | No | Pickup city or supplier's city in China | |
| product | Yes | What is being shipped, e.g. 'LED desk lamps, 500 units' | |
| urgency | No | ||
| weight_kg | Yes | Total weight in kg (0.1 to 2000) | |
| dimensions | No | Cartons and size, e.g. '4 cartons, 60x40x35 cm each' | |
| destination_zip | No | US destination ZIP code of the shipment |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| contact | No | ||
| options | No | ||
| summary | No | ||
| book_url | No | plainfreight.com booking form, prefilled with this shipment and quote | |
| quote_id | No | Reference for the offer's second check and for booking | |
| shipment | No | ||
| next_step | No | ||
| questions | No | ||
| valid_days | No | ||
| agent_review | No | ||
| needs_review | No | true: prices withheld until a person clears the goods |