rental_command
Execute rental lifecycle operations like start, park, drive, end, open tailbox, or renew reservation, returning the updated rental.
Instructions
Execute an operation on a rental and return the updated rental.
operation_type (case-sensitive) is one of:
START start a reserved rental
PARK pause driving while keeping the rental active
DRIVE resume driving after a park
END end the rental (triggers final checks and billing)
OPEN_TAILBOX open a configured tailbox / helmet box / saddle compartment
RENEW_RESERVATION extend a reservation where supported Other operation types configured for the tenant are passed through as-is.
Optional fields are forwarded when relevant (mainly for END): file_id (e.g. a
parking photo uploaded via POST /files), parking_report, vehicle_code, reason.
Note: ending may be blocked by end-checks (parking/station/photo/surcharge). This tool does not pre-run POST /rentals/{id}/check/end; an END that fails a requirement surfaces the API error.
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": {
"rental_id": "<rental_id>",
"operation_type": "<operation_type>"
},
"name": "rental_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rental_id | Yes | ||
| operation_type | Yes | ||
| file_id | No | ||
| parking_report | No | ||
| vehicle_code | No | ||
| reason | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||