Sprawdź obszar
check_service_areaPURPOSE: Checks whether SzuruSzuru serves a Polish postal code. WHEN TO USE: When the customer asks whether we come to their town/postal code. WHEN NOT TO USE: Not needed before calculate_quote (calculate_quote checks the area itself). Never use it to reserve anything. REQUIRED: postal_code (NN-NNN). SIDE EFFECTS: none (read-only). RESULT: served -> success=true, available=true, city. Not served -> success=false, error="unsupported_postcode", available=false - tell the customer we do not serve this code; do not continue to quote or 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>"
},
"name": "check_service_area"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No | Optional, ignored by this tool. | |
| postal_code | Yes | Polish postal code NN-NNN, e.g. 80-180 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | ||
| code | No | ||
| error | No | Stable machine-readable error id when success=false, e.g. missing_required_fields, unsupported_postcode, no_availability | |
| message | No | ||
| success | Yes | true = operation done / data returned; false = see error | |
| postcode | No | ||
| available | No | ||
| session_id | No | ||
| postal_code | No | ||
| missing_fields | No |