Определение региона по номеру телефона как MCP-инструмент
Введите номер телефона в международном формате, чтобы узнать страну, регион, первоначального оператора, тип номера и текущее местное время — по данным Google libphonenumber.
Инструмент
phone_number_area_lookupLooks up where a phone number is from with Google's libphonenumber data (its number metadata, geocoding, carrier and time zone files, bundled with the site): the number isn't sent to any outside service, and nothing tells whether it's in use. phoneNumber is the number in international format, starting with + and the country calling code; language (default en) picks the language of the place and carrier names, falling back to English. Returns phoneNumber (E.164), countryCallingCode (digits, such as 1 or 44), country (ISO 3166-1 alpha-2 code of the region the number belongs to; null for global numbers such as +800), valid (whether the number matches its region's numbering plan), numberType (libphonenumber's type: FIXED_LINE, MOBILE, FIXED_LINE_OR_MOBILE, TOLL_FREE, PREMIUM_RATE, SHARED_COST, VOIP, PERSONAL_NUMBER, PAGER, UAN or VOICEMAIL; null when unknown), internationalFormat (the number grouped as dialed from abroad), location (the area the number's prefix is assigned to, such as a city or region; null when the data has none, as for most mobile and toll-free numbers), carrier (the carrier the number's mobile range was first assigned to; numbers can be ported to another carrier since, so it's not proof of the current one; null for non-mobile numbers or when unknown) and timeZones (IANA time zone names for the number's prefix; a country-wide number can list many). Location, carrier and time zones are only looked up for valid numbers. Fails when the number can't be read as an international number, or when the site's data can't be read.
phoneNumberstring · ОбязательныйPhone number in international format: + and the country calling code, then the number. Spaces, dots, hyphens and parentheses are ignored; without the leading +, the number is still read as starting with its country calling codeНе более 32 символовlanguagestring · НеобязательныйLanguage of the location and carrier names, one of ar, be, bg, bs, de, el, en, es, fa, fi, fr, hr, hu, hy, id, it, iw, ja, ko, nl, pl, pt, ro, ru, sq, sr, sv, th, tr, uk, vi, zh, zh_Hant (iw is Hebrew, zh_Hant traditional Chinese); English when the data has no name in it. Default enДопустимые значения:ar,be,bg,bs,de,el,en,es,fa,fi,fr,hr,hu,hy,id,it,iw,ja,ko,nl,pl,pt,ro,ru,sq,sr,sv,th,tr,uk,vi,zh,zh_HantПо умолчанию:"en"
Схема входных данных
Подключение
Каждому запросу нужен API-токен: его можно создать в учётной записи и отправить как Bearer-токен в заголовке Authorization.
На сайте
Определение региона по номеру телефона работает и в вашем браузере, без ИИ-ассистента.