Usage history
nxtl_usage_historyUse this when the signed-in customer asks how much data one of their eSIMs used over some days. Up to 31 days per call, by session or by day. Read only.
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": {
"line_ref": "<line_ref>",
"from": "<from>",
"to": "<to>"
},
"name": "nxtl_usage_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Exclusive calendar date in the account timezone, YYYY-MM-DD. Maximum 31 days after from. | |
| from | Yes | Inclusive calendar date in the account timezone, YYYY-MM-DD. | |
| daily | No | When true, return one row per day in the account timezone instead of individual sessions. | |
| cursor | No | Opaque page cursor. Omit for the first page. | |
| period | No | Preferred for relative ranges, in the account timezone (from and to are then ignored): today, yesterday, last_7_days, last_30_days (any last_N_days up to 31) or this_month. "Last N days" always includes today. Without period, to is EXCLUSIVE, so a range that should include today must end tomorrow. | |
| line_ref | Yes | Opaque line reference from nxtl_list_esims. |