Phone

Find a phone number

phone_search_numbers · Reads only · Markdown

Phone numbers the business can rent right now, each with the monthly price and a quote to rent it.

Free*

*Free up to 1,000,000 reads a month for the whole account, then $0.50 per 10,000 reads.

An example

Find us a Portland number, area code 503, to forward the shop's line to.

Your agent callsphone_search_numbersFree*

The example business is Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon. The reply is the one the tool really gives.

With these arguments
{
  "country": "US",
  "area_code": "503"
}
What comes back
{
  "country": "US",
  "type": "local",
  "monthly_usd": "$2.00",
  "per_minute_usd": "$0.25",
  "numbers": [
    {
      "number": "+15035550123",
      "locality": "Portland",
      "region": "OR",
      "quote": ".eJwtjUEKwyAQRe8y24aiCW48RaF0LWkUIjWOTMYUKb17J9LZfP5_D-YDjJjAQlkxB0chs8t1ewaCAd5Ir73MSwCrB_jPFi7aqMkYo_Q4ibVgzUxNwOMulVsRHxIuc5LaM_KJb0ic5uxlLYRH9IHchpnX1FzdvRj6qk2n8fw5qn7fHzzENEc:1xHLlE:WAXCgrxIOtc5vCHoOTW-b_R7TrUUfEBMtUXkgFimLts"
    },
    {
      "number": "+15035550124",
      "locality": "Portland",
      "region": "OR",
      "quote": ".eJwtjUEKwyAQRe8y24aiad14ikLpWqwKkRpHJpOUUHr3TqSz-fz_HswHGLGAhTZhTY5SZVfX-ZkIBngjvZbmQwKrB_jPFk7aqIsxRunxKlbAtTLtAh53qbw38aFg8EVqz8wHviFx8TXK2gi3HBO5GStPZXfrEsXQZ206zcfPUfX7_gA9KTRI:1xHLlE:jTesquZW-YB25KuLDg3OtXNvH2DeVn19iyHA0UwqiPg"
    }
  ],
  "available": true,
  "message": null
}

Use it when

The business wants its own number; pass a quote from the reply to phone_rent_number.

What it does

Numbers the business can rent right now, with the monthly price. Rent one by passing its quote to phone_rent_number (quotes last 30 minutes). Bots can rent numbers where the carrier needs no identity documents and answering a call costs less than the $0.25 a minute charged, which includes the US and Canada; for other countries this says why not.

What comes back

The country and type, the monthly and per-minute prices, available, and the numbers with their locality, region and a quote that lasts 30 minutes. For a country whose numbers need identity documents: needs_documents: true, no numbers and a message saying so; calls_too_costly: true where answering a call costs more than the per-minute price covers. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
countrystringTwo-letter country code, e.g. US or CA. Matches ^[A-Za-z]{2}$. Default: US.
typestringOne of: local,mobile. Default: local.
area_codestringDigits the number should start with after the country code, e.g. 503. Matches ^[0-9]{2,6}$.
citystringA city the local number should belong to. Up to 80 characters.

The call

Over MCP, call phone_search_numbers on https://api.conecto.chat/mcp/phone. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/phone_search_numbers \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country":"US","area_code":"503"}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
no_numbers404The carrier has no numbers of that type there right now, or does not serve the country.Try without area_code, with a city, or with type mobile.
phone_unavailable503The phone service is not switched on yet, or has no voices right now.Try again later; nothing was charged.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md