Wycena
calculate_quotePURPOSE: Calculates the price of an order (unit prices, quantity discounts, add-ons, travel fee, minimum order) for a postal code. Returns quote_id (valid 30 minutes). WHEN TO USE: Whenever the customer asks how much a cleaning costs and you know the service(s), quantity and postal code. Also the first step before check_availability. WHEN NOT TO USE: Not for checking dates and never as a booking - it reserves nothing. REQUIRED: postal_code; items[] with service (id from list_upholstery_services) and quantity. Add-ons optional (names from the catalog; close spellings are matched, unknown ones return error unsupported_addon with allowed_addons). If postal code, service or quantity is unknown, ask the customer - do not guess. SIDE EFFECTS: none for the customer (stores a 30-minute quote only). CONSTRAINTS: Report total_from exactly; never estimate or adjust prices. Area not served -> error unsupported_postcode. below_min_order=true -> ask the customer to add a service before booking.
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": {
"postal_code": "<postal_code>",
"items": "<items>"
},
"name": "calculate_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Services to price | |
| session_id | No | Optional. session_id from the previous result, if you have it. The server also recovers the session from quote_id / slot_id / confirmation_id / customer_grant. | |
| postal_code | Yes | Polish postal code NN-NNN, e.g. 80-180 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| error | No | Stable machine-readable error id when success=false, e.g. missing_required_fields, unsupported_postcode, no_availability | |
| items | No | ||
| message | No | ||
| success | Yes | true = operation done / data returned; false = see error | |
| currency | No | ||
| quote_id | No | ||
| expires_at | No | ||
| session_id | No | ||
| total_from | No | ||
| delivery_fee | No | ||
| missing_fields | No | ||
| below_min_order | No | ||
| services_subtotal | No |