All-in order quote
quote_orderPrice a set of tests/panels exactly as TestWell's checkout would: per-lab prices for the user's state (New York and New Jersey route to BioReference; Rhode Island is not served), the single $6 lab processing fee, the total, items that can't be ordered and why, and a prefilled cart URL. Use this before quoting any total to a user.
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": {
"items": "<items>"
},
"name": "quote_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lab | No | Preferred lab outside NY/NJ (default quest) | |
| items | Yes | Catalog slugs or ids, e.g. ['tsh', 'vitamin-d'] | |
| state | No | US state code or name where the user will be drawn, e.g. 'FL' or 'Florida' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| lab | No | ||
| error | No | Present when ok=false, e.g. state not served | |
| lines | No | ||
| notes | No | ||
| state | No | ||
| total | No | All-in total: subtotal + the single lab processing fee | |
| labFee | No | USD | |
| labName | No | ||
| currency | No | ||
| subtotal | No | USD | |
| checkoutUrl | No | Prefilled cart on test-well.com — purchases complete there; null when nothing is orderable | |
| unavailable | No | Requested items the routed lab cannot run in this state |