send_driver_contact
Email the booking's client their assigned driver's first name + phone. Pass email if you already have the client's address (e.g. from Zeplan get-booking); otherwise WP looks it up on the booking post. Returns { sent, to (masked), client_phone }. Voice agent use.
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": {
"booking_id": "<booking_id>",
"driver_first_name": "<driver_first_name>",
"driver_phone": "<driver_phone>"
},
"name": "send_driver_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Email language. | en |
| No | Client email to send to. If omitted, WP looks it up on the booking post. | ||
| channel | No | Caller channel for observability. | |
| booking_id | Yes | Booking / reservation ID (= the WP payment post ID). | |
| driver_phone | Yes | Driver's phone number. | |
| driver_first_name | Yes | Driver's FIRST NAME only (never last name/company). |