calculate_x402_topup
Calculate the cost of adding traffic and duration to a mobile proxy session. Duration extensions are free; traffic costs $4/GB shared or $8/GB private.
Instructions
Calculate the cost to top up a session with additional traffic and/or duration. Duration extensions are free, traffic costs $4/GB (shared) or $8/GB (private).
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": {
"sessionToken": "<sessionToken>"
},
"name": "calculate_x402_topup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionToken | Yes | Session token from purchase response | |
| addTrafficGB | No | Additional traffic in GB (min 0.1) | |
| addDurationSeconds | No | Additional duration in seconds (min 3600 = 1 hour) |