haggl_hotel_cashback_add_trip
Optional, before asking a hotel's agent for a rate: prove one past trip to San Francisco (last 12 months) with its signed flight booking, hotel booking or hotel post-stay email, one email per call, to raise the user's cashback tier (1+ trips: returning, 3+ trips: frequent). Only with the user's go-ahead to send that email. The email itself is not kept.
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": {
"haggl_id": "<haggl_id>",
"raw_mime_b64": "<raw_mime_b64>"
},
"name": "haggl_hotel_cashback_add_trip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| haggl_id | Yes | The user's haggl ID. | |
| raw_mime_b64 | Yes | Base64 (standard or url-safe) of the original email, byte for byte (Gmail format=RAW, or Show original → Download original). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Present only when the call failed: a machine-readable error code, e.g. quote_uncertain or rate_limited. | |
| trip | No | The trip as read from the email. | |
| error | No | Present only when the call failed: what went wrong. | |
| trips | No | Trips that count, per destination. | |
| recovery | No | When the outcome is uncertain: the tool and session_id to read before retrying. | |
| retryable | No | Whether the same call may be retried. | |
| retry_after_seconds | No | When rate limited: seconds to wait before retrying. |