Rent number (credits)
ucode_sms_rent_with_creditsPrimary rental — charges Ucode credits. Always use rentalFlowVersion: 2 and packageId from ucode_sms_rent_packages (matches mobile). Never mention wholesale/provider IDs or dollar amounts to the user.
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": {
"service": "<service>",
"country": "<country>"
},
"name": "ucode_sms_rent_with_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes | ||
| service | Yes | ||
| packageId | No | ||
| clientCredits | No | ||
| rentalFlowVersion | No | Use **2** (default flow); matches mobile package picker. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| code | No | ||
| data | No | ||
| error | No | ||
| phone | No | ||
| uiView | No | ||
| credits | No | ||
| endDate | No | ||
| smsCode | No | ||
| summary | Yes | ||
| rentalId | No | ||
| billingUrl | No | ||
| httpStatus | No | ||
| countryName | No | ||
| phoneNumber | No | ||
| serviceName | No | ||
| neededCredits | No | ||
| providerRentalId | No | ||
| remainingSeconds | No |