Get the user a dedicated IP for sites that need one
lease_ipSome sites (LinkedIn, marked š in get_library) only accept a login from the address it signed in from. A dedicated IP is one address that only this account uses, and once the account holds one, every sign-in link and every later call on that login uses it automatically.
Pass the required site provider id (for example, linkedin) so Bowmark can check the matching saved login. If that login is usable, or the account already holds a dedicated IP, it says so and nothing is bought. Otherwise it returns priceCents and a message with the price for termDays days in country (default US). The price is charged up front and is not refundable. If something must happen first (a card on file, a one-time identity check), mustFirst names it with the link that fixes it: give your user that link and stop.
Never buy without asking. Tell your user the exact price and buy only if they agree, by calling again with confirmPriceCents set to the price they agreed to. A live price above that is refused before any charge, and repeating the same call cannot buy two. Pass another: true only when your user asked for a second IP.
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": {
"site": "<site>"
},
"name": "lease_ip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | The provider id whose saved login this checks, e.g. `linkedin` (required). | |
| another | No | Buy a second IP although the account holds one. Only when your user asked. | |
| country | No | Two-letter country code for the IP, e.g. "US" (the default). | |
| termDays | No | How many days the IP is held, paid up front (default 30). | |
| confirmPriceCents | No | The price in US cents your user agreed to, from the unconfirmed call. Only this buys. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Why it failed, when it did. | |
| status | No | The HTTP status of the lease: below 400 succeeded. | |
| message | No | What happened, in words. |