sms

v1.4.0
io.github.virtualsms-io/sms Checked 4 days ago Published 3 days ago

Real SIM numbers for AI agents: SMS verification, rentals, proxies, cloud browser, x402 deposits.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

virtualsms_list_proxy_catalog List Proxy Catalog

List available proxy pool types, countries, and price-per-GB. Use this before buying proxy traffic.

virtualsms_list_proxies List My Proxies

List all proxies on your account with remaining GB and login credentials. Returns proxy_id values for use with get_proxy_usage, rotate_proxy, set_proxy_targeting, and generate_proxy_endpoint.

virtualsms_buy_proxy Buy Proxy GB

Purchase proxy traffic (GB) for a selected pool type. Returns proxy credentials and remaining balance. country_code here is only a soft preference for provisioning. For actual per-connection targeting (country/state/city/zip/asn) or a ready-to-use connection string, use virtualsms_generate_proxy_endpoint after buying. To persist a default targeting on the sub-user, use virtualsms_set_proxy_targeting.

ParameterTypeDescription
gb *numberAmount of traffic to add in GB
pool_type *stringPool type: residential, residential_premium, mobile, datacenter
country_codestringOptional ISO-2 country preference (e.g. us, gb)
idempotency_keystringOptional key for safe retries without double charges

virtualsms_rotate_proxy Rotate Proxy IP

Request a fresh IP for an existing proxy. Useful when an endpoint flags the current exit IP.

ParameterTypeDescription
proxy_id *stringProxy ID returned by list_proxies or buy_proxy
portnumberOptional proxy port. Defaults to rotating HTTP port.

virtualsms_get_proxy_usage Get Proxy Usage

Get cached GB used/remaining and request count for one proxy. Cheap, no upstream call. Reads a cached value refreshed every ~5 minutes.

ParameterTypeDescription
proxy_id *stringProxy ID returned by list_proxies or buy_proxy

virtualsms_get_proxy_usage_history Get Proxy Usage History

Get a per-day traffic (GB) and request-count series for one proxy over the last 7 or 30 days.

ParameterTypeDescription
proxy_id *stringProxy ID returned by list_proxies or buy_proxy
rangestringHistory window (default: 7d)

virtualsms_set_proxy_targeting Set Proxy Default Targeting

Persist a default geo-targeting (country, and optionally cities/ASNs) on an existing proxy sub-user. Country-only is free. Adding cities or ASNs bills the GB on your OWN allocation at 2x (not on residential_premium, where refined targeting is included free). This changes the STORED default. For a one-off connection string with any targeting (including state/zip), use virtualsms_generate_proxy_endpoint instead.

ParameterTypeDescription
country_code *stringISO-2 country code (required)
proxy_id *stringProxy ID returned by list_proxies or buy_proxy
asnsarrayOptional ASN numbers. Triggers 2x billing on non-premium pools
citiesarrayOptional city slugs. Triggers 2x billing on non-premium pools

virtualsms_test_proxy Test Proxy Connectivity

Make one request through a proxy and report the exit IP, country, city, ISP, and latency. Proves the proxy works and which country it exits from. Consumes a small amount of the proxy's GB allocation. Rate-limited to about once per 20 seconds per proxy.

ParameterTypeDescription
country *stringISO-2 country to test the exit IP through (e.g. "us", "gb")
proxy_id *stringProxy ID returned by list_proxies or buy_proxy
protocolstringProtocol to test (default: http)
sessionstringConnection session type (default: rotating)

virtualsms_list_proxy_locations List Proxy Locations

List available cities, states, ASNs, or ZIP codes for a pool type + country. Use this to discover valid location_code values before calling virtualsms_generate_proxy_endpoint or virtualsms_set_proxy_targeting with sub-country targeting. Public endpoint, no purchase required. Not available for residential_premium (only residential, mobile, datacenter).

ParameterTypeDescription
country *stringISO-2 country code (e.g. "US", "DE")
kind *stringWhich location dimension to list
pool_type *stringPool type

virtualsms_generate_proxy_endpoint Generate Proxy Connection Endpoint

Build ready-to-use proxy connection string(s) for an owned proxy: country/state/city/zip/asn targeting, rotating or sticky session, HTTP or SOCKS5, in host:port:user:pass / user:pass@host:port / curl format. Nothing is purchased or changed server-side. This only composes a connection string from the proxy's existing credentials (same convention as the VirtualSMS dashboard's endpoint generator). Sub-country targeting (state/city/zip/asn) bills the proxy's own GB at 2x on non-premium pools, free on residential_premium.

ParameterTypeDescription
country_code *stringISO-2 country to target (e.g. "us", "gb")
proxy_id *stringProxy ID returned by list_proxies or buy_proxy
countnumberHow many endpoint strings to generate (default: 1)
formatstringOutput string format (default: host:port:user:pass)
location_codestringLocation value matching target_by. Required when target_by is not "country"
protocolstringProxy protocol (default: HTTP)
sessionstringrotating = new IP per connection (default). sticky = holds one IP per generated endpoint.
sticky_ttl_minutesnumberHow long a sticky session holds its IP, in minutes (default: 10)
target_bystringRefinement level (default: country)

virtualsms_start_manual_registration_session Start Manual Registration Session

Beta, invite-only. Start a country-matched cloud browser you drive yourself: returns a viewer_url, an authenticated live-viewer link you open to watch and drive the session (manual takeover), plus optional order phone number and timeline. Agent-driven navigation is the separate opt-in session tools. Pair with create_order for OTP + browser in one agent flow.

ParameterTypeDescription
countrystringISO-2 country for proxy match
device_modestringViewport profile
modestringSession attach mode
order_idstringActivation order UUID to attach
prep_presetstringPrep preset
run_prepbooleanRun prep after start
service_namestringService hint (telegram, whatsapp, …)
target_urlstringURL for generic prep
with_proxybooleanAttach matching VSMS proxy

virtualsms_list_services List Available Services

Get all available SMS verification services (Telegram, WhatsApp, Google, etc.). Use this to discover valid service codes before buying a number.

ParameterTypeDescription
searchstringFilter services by name (optional)

virtualsms_list_countries List Available Countries

Get all available countries for SMS verification. Use this to discover valid country codes before buying a number.

ParameterTypeDescription
servicestringFilter countries available for a specific service (optional)

virtualsms_get_price Check Service Price

Check the price and availability for a specific service + country combination. Always check price before buying to confirm availability.

ParameterTypeDescription
country *stringCountry ISO code (e.g. "US", "GB", "RU")
service *stringService code (e.g. "telegram", "whatsapp", "google")

virtualsms_get_balance Get Account Balance

Check your VirtualSMS account balance in USD. Requires VIRTUALSMS_API_KEY to be set.

ParameterTypeDescription
currencystringDisplay balance in specific currency (default: USD)

virtualsms_create_order Buy Virtual Number

Purchase a virtual phone number for SMS verification. Returns order_id and phone_number. Codes typically arrive within ~10-60 seconds after purchase. Use get_sms to poll for the verification code, or use wait_for_sms to block until it arrives.

ParameterTypeDescription
country *stringCountry ISO code (e.g. "US", "GB", "RU")
service *stringService code (e.g. "telegram", "whatsapp", "google")

virtualsms_get_sms Check SMS Code

Check if an SMS verification code has been received for an order. Returns status, phone_number, and (when delivered) messages[] array plus an extracted code. Poll this every 5-10 seconds after buying a number, or use wait_for_sms to block until delivery.

ParameterTypeDescription
order_id *stringOrder ID returned from create_order

virtualsms_cancel_order Cancel Order

Cancel an order and request a refund. Only works if no SMS has been received yet. Use this if the service is taking too long or you want to try a different number. **Cooldown:** cancel is only available 120 seconds after purchase. Check `cancel_available_at` on the order before calling. Calling earlier returns a `cooldown_active` error from this MCP server (no backend round-trip).

ParameterTypeDescription
order_id *stringOrder ID to cancel

virtualsms_wait_for_sms Wait for SMS on Existing Order

Wait (block) until the SMS arrives on an existing order_id, or until timeout. Codes typically arrive within ~10-60 seconds. This call BLOCKS for up to timeout_seconds (default 60, max 600) before returning. Uses real-time WebSocket delivery with automatic polling fallback. Pass an order_id from create_order. To buy AND wait in one step, call create_order then this tool.

ParameterTypeDescription
order_id *stringExisting order ID returned from create_order
timeout_secondsnumberHow long to wait for SMS in seconds (default: 60, min: 5, max: 600)

virtualsms_find_cheapest Find Cheapest Countries

Find the cheapest countries for a given service, sorted by price. Returns available countries with prices and stock levels so you can pick the best deal.

ParameterTypeDescription
service *stringService code (e.g. "telegram", "whatsapp", "google")
limitnumberNumber of cheapest options to return (default: 5)

virtualsms_search_services Search Service by Name

Find the right service code using natural language. Don't know the exact code? Just search "uber", "binance", "steam" etc. Returns matching services with similarity scores.

ParameterTypeDescription
query *stringNatural language search query (e.g. "uber", "whatsapp", "binance")

virtualsms_swap_number Swap Phone Number

Swap a phone number on an existing order. Gets a new number for the same service and country without additional charge. Use when the current number isn't receiving SMS. **Cooldown:** swap is only available 120 seconds after purchase. Check `swap_available_at` on the order before calling. Calling earlier returns a `cooldown_active` error from this MCP server (no backend round-trip).

ParameterTypeDescription
order_id *stringOrder ID to swap. Must be in waiting/created status with no SMS received

virtualsms_list_orders List Active Orders

List your active orders. Essential for crash recovery. If your session was interrupted, use this to find pending orders and their phone numbers, then use get_sms to retrieve codes.

ParameterTypeDescription
statusstringOptional status filter: "pending", "sms_received", "cancelled", "completed"

virtualsms_get_order Get Order Details

Get the full details of a specific order, including status, phone number, service, country, timestamps, and any received SMS code/text. Use this when you have an order_id and need the latest state beyond what get_sms returns.

ParameterTypeDescription
order_id *stringOrder ID to retrieve full details for

virtualsms_cancel_all_orders Cancel All Active Orders

Bulk-cancel every currently active order in your account. Returns the number of orders cancelled plus any failures. Useful for quick cleanup after a batch run or test session.

virtualsms_order_history Order History

List past orders with optional filters for status, service, country, and a lookback window in days. Returns up to 50 orders (server cap) ordered most-recent-first.

ParameterTypeDescription
countrystringOptional country ISO code filter (e.g. "US", "GB")
limitnumberMax orders to return (default: 20, server cap: 50)
servicestringOptional service code filter (e.g. "telegram", "whatsapp")
since_daysnumberOnly include orders from the last N days
statusstringOptional status filter: "completed", "cancelled", "expired", "sms_received", "waiting"

virtualsms_get_stats Get Account Stats

Account usage stats aggregated from your order history: total orders, success rate, total spend, top services/countries, and status breakdown over a configurable lookback window.

ParameterTypeDescription
since_daysnumberWindow in days for activity stats (default: 30)

virtualsms_get_profile Get Account Profile

Full account profile: email, Telegram link status, current balance, lifetime spend, total orders, active API keys, and account creation date.

virtualsms_get_transactions Get Transaction History

Transaction history for the account with optional filters for type, date range, and pagination. Types: "deposit", "purchase", "refund", "admin_credit".

ParameterTypeDescription
fromstringLower bound on created_at: RFC3339 or YYYY-MM-DD
limitnumberMax transactions (1-200, default: 50)
offsetnumberPagination offset (default: 0)
tostringUpper bound on created_at: RFC3339 or YYYY-MM-DD
typestringFilter by type: "deposit", "purchase", "refund", "admin_credit"

virtualsms_rentals_pricing List Rental Pricing Tiers

List all active rental pricing tiers (Full Access tier: local SIM inventory, durations and prices). This is a raw catalog dump and may list rows that are not purchasable today, so confirm against rentals_available (authoritative per country) before creating a rental. Use rentals_price for platform-tier (per-country, per-service) pricing instead.

virtualsms_rentals_available List Rental Country Availability

List countries with rental stock, available counts, and pricing. tier=full_access (default) shows local-SIM inventory; tier=platform shows countries available via our global supplier network (with per-country service counts and popular services). Use this before creating a rental.

ParameterTypeDescription
countrystringOptional ISO-2 country filter
servicestringOptional service filter (full_access tier only)
tierstringWhich tier to list (default: full_access)
typestringOptional full_access sub-type filter

virtualsms_rentals_services List Platform-Tier Rental Services

List services available for platform-tier rental in a given country, with physical stock counts and retail price. Platform-tier rentals are locked to ONE chosen service per number. Use this to pick a valid service code before creating one.

ParameterTypeDescription
country_code *stringISO-2 country code (e.g. "GR")
duration_hoursnumberDuration in hours (default: 24)

virtualsms_rentals_price Get Platform-Tier Rental Price

Get the catalog-driven retail price for a (service, country, duration) platform-tier rental combo.

ParameterTypeDescription
country_code *stringISO-2 country code
duration_hours *numberDuration in hours
service *stringService code

virtualsms_create_rental Create Rental

Rent a phone number for an extended period (as opposed to a one-off number via create_order). Two tiers: "full_access" = local SIM inventory, works across ANY service on that number. "platform" = sourced via our global supplier network, locked to ONE chosen service, durations 1/3/7 days only. Both tiers carry the same refund terms: a full refund within 20 minutes of purchase and before the first SMS arrives. Check rentals_available and rentals_price/rentals_pricing first to confirm country/service/duration and cost.

ParameterTypeDescription
country *stringISO-2 country code
duration_hours *numberDuration in hours (platform tier: 24, 72, or 168 only)
tier *stringRental tier
auto_renewbooleanfull_access tier only. Auto-renew at expiry (default: false)
servicestringService code. Required for platform tier; optional for full_access

virtualsms_list_rentals List My Rentals

List your rentals across both tiers, optionally filtered by status. Returns rental_id, tier, country, phone number, status, and expiry for each. Use get_rental for full detail on one.

ParameterTypeDescription
statusstringOptional status filter: "active", "cancelled", "completed", "expired", or "all" (default: "active")

virtualsms_get_rental Get Rental Details

Get the full details of a specific rental by ID, including tier, phone number, country, service lock, status, expiry, and any received SMS. Use list_rentals first if you do not have the rental_id.

ParameterTypeDescription
rental_id *stringRental ID to retrieve

virtualsms_extend_rental Extend Rental

Extend an active rental by an additional duration. Charges your balance at the current catalog price for that duration.

ParameterTypeDescription
duration_hours *numberAdditional duration in hours to add
rental_id *stringRental ID to extend

virtualsms_cancel_rental Cancel Rental

Cancel a rental for a full refund. Only eligible within 20 minutes of purchase AND before any SMS has been received. Works for either tier. Past that window a rental runs to its natural expiry.

ParameterTypeDescription
rental_id *stringRental ID to cancel

virtualsms_retry_order Retry Order (Resend SMS)

Ask the provider to resend the SMS to the SAME phone number on an existing order (order must be in waiting/created status). Not all order types support this. Some providers only support swap_number instead, which returns a NEW number.

ParameterTypeDescription
order_id *stringOrder ID to retry

virtualsms_check_number Check Phone Number

Public carrier + line-type lookup for an arbitrary E.164 phone number (mobile/landline/VoIP, spam risk). No API key required.

ParameterTypeDescription
number *stringPhone number in E.164 format (e.g. "+447911123456")