get_balance
Wallet balance
Get the current wallet balance for the authenticated account.
無需輸入參數。

ai.asms由 asms.ai 發布官方發布者v1.1.0更新於 Oct 29, 2026
Phone numbers for AI agents: SMS verification codes and rented numbers that receive SMS.
ASMS 為 AI 助理提供手機號碼:可購買一次性簡訊驗證碼號碼,或租用可持續接收簡訊的號碼,費用從 asms 錢包扣款。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/ai.asms%2Fasms/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"asms": {
"type": "http",
"url": "https://asms.ai/mcp"
}
}
}Phone numbers for AI agents. Connect asms.ai to Claude, ChatGPT, Codex, Cursor, Grok or any MCP client, and your agent can:
Everything is paid from your asms wallet, and the tools that spend are marked so your client asks you first.
Remote server, Streamable HTTP. Sign in with your asms account (OAuth), or send an API key from your dashboard as Authorization: Bearer <key>.
Full step-by-step pages, including a prompt your agent can follow on its own, are at asms.ai/agents.
Most clients that take a URL and headers accept:
Connecting is free. Verification codes are priced per service and country and charged only when the code arrives; rentals are priced per country and period. See asms.ai/pricing.
MIT
來源:README.md,提交 6e08514
Wallet balance
Get the current wallet balance for the authenticated account.
無需輸入參數。
Verification code prices
Get the retail price per OTP activation for a service in a country. Omit `service` to list prices for every available service.
country必填serviceVerification number stock
Get how many numbers are in stock for a service in a country. Omit `service` to list stock for every available service.
country必填serviceOrder a verification number
Buy a number to receive an OTP: allocates a number, debits the wallet, and returns an orderId + phoneNumber. Then poll with poll_sms. If no code arrives, do NOT cancel to retry: simply call create_otp_order again for a fresh number and keep polling that one. Unfilled orders auto-refund within 10 minutes, so you only pay for codes that actually land and there is no penalty for ordering repeatedly. When a service keeps rejecting codes, order on the "us1" (Non-VoIP AT&T) pool, which has the highest delivery rate. WARNING: this spends real wallet balance.
country必填service必填Check for the verification code
Check for the SMS / OTP code on an order. Returns the code once it has arrived, otherwise an empty result: poll again after a few seconds. If nothing lands after a minute or two, the fastest path is to order a fresh number with create_otp_order (prefer the "us1" Non-VoIP pool) and leave the original: it auto-refunds within 10 minutes. Never cancel just to retry, and there is no charge for ordering again, you only pay for codes that arrive.
orderId必填List verification orders
List recent OTP orders for the account (awaiting a code or already received).
limitCancel a verification order
Rarely needed. To retry a verification do NOT cancel: just call create_otp_order again, because every unfilled order auto-refunds within 10 minutes on its own, and cancel is blocked for the first 10 minutes anyway. Only use this to release an order you are certain you no longer need once its 10-minute hold has passed.
orderId必填Number rental prices
List the rental periods and prices for a country (1 day to 12 months). A rented number is yours for the whole period and receives every SMS sent to it, unlike an OTP order, which is for one code. Omit `country` to list the countries numbers can be rented in.
countryRent a phone number
Rent a phone number in a country for a period (get the periods and prices from get_rental_offers first). Debits the wallet and returns the number and when the rental ends. Read its SMS with read_rental_sms. WARNING: this spends real wallet balance; confirm the country, period and price with the user first.
period必填country必填List rented numbers
List the account's rented numbers with their country, period and end date. Ended rentals are left out unless `includeEnded` is true.
includeEndedRead a rented number's SMS
Read the SMS a rented number has received during this rental, newest first. Poll again every few seconds while waiting for a message.
number必填Cancel a rental for a refund
Cancel a rented number and refund it. Only possible between 5 and 120 minutes after renting, and only if the number has received no SMS; after that the rental runs to its end date.
number必填已滿足適用檢查項的 100%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
https://asms.ai/mcp{ "mcpServers": { "asms": { "url": "https://asms.ai/mcp", "headers": { "Authorization": "Bearer <ASMS_API_KEY>" } } }}