handset

v0.1.1
io.github.handset-hq/handset Checked 4 days ago Published 3 months ago

A business phone system for AI agents: send texts, place calls, read transcripts, buy numbers.

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

list_tenants

List tenants on this Handset account. A tenant is one of your customers' businesses — it owns numbers, conversations, and opt-out lists.

ParameterTypeDescription
limitinteger

create_tenant

Create a tenant (one customer business). Returns the tenant with its tnt_… id.

ParameterTypeDescription
name *stringDisplay name, e.g. 'Ridge Plumbing'
timezonestringIANA timezone, e.g. America/Phoenix

search_numbers

Search purchasable phone numbers by area code. Free and instant in test mode.

ParameterTypeDescription
area_code *string3-digit US area code, e.g. 415

buy_number

BILLABLE in live mode (monthly rental): purchase a phone number for a tenant. In test mode numbers are free and simulated. Confirm with the user before buying on a live key.

ParameterTypeDescription
phone_number *stringE.164 number from search_numbers
tenant_id *stringtnt_… id that will own the number

list_numbers

List the account's phone numbers, optionally for one tenant.

ParameterTypeDescription
tenant_idstring

send_message

OUTWARD-FACING: send an SMS (or MMS with media_urls) from a tenant number. In live mode this texts a real person and bills per segment — confirm with the user first. Test mode is simulated and free. Replies thread by conversation_id.

ParameterTypeDescription
body *string
from *stringnum_… id or the tenant's E.164 number
to *stringRecipient E.164, e.g. +14155550142
media_urlsarrayHTTPS media URLs (makes it an MMS)

list_conversations

List message threads, newest activity first.

ParameterTypeDescription
limitinteger
tenant_idstring

get_thread

Read one conversation's messages, oldest first.

ParameterTypeDescription
conversation_id *stringcnv_… id

make_call

OUTWARD-FACING: place a click-to-call — dials connect_to (the agent's phone) first, then to (the customer), and bridges them; both see the tenant number. Live mode rings real phones and bills per minute — confirm with the user first. Test mode simulates the whole lifecycle. Set transcribe for live transcript + AI summary.

ParameterTypeDescription
connect_to *stringAgent's E.164 — their phone rings first
from *stringnum_… id or tenant E.164 (the caller ID both parties see)
to *stringCustomer's E.164
transcribeboolean

get_call

Retrieve a call: status, duration, AI summary (arrives ~15s after a transcribed call ends), and the event timeline (gathers, keypresses, streams).

ParameterTypeDescription
call_id *stringcall_… id

list_calls

List calls with status and duration, newest first.

ParameterTypeDescription
limitinteger
tenant_idstring

get_transcript

Read a call's transcript so far — callable mid-call for live transcription.

ParameterTypeDescription
call_id *string

start_transcription

Turn on live transcription for an in-progress call (either direction). Idempotent. Billed per transcribed minute; an AI summary generates after hangup.

ParameterTypeDescription
call_id *string

list_voicemails

List voicemails with transcripts and time-limited audio URLs.

ParameterTypeDescription
tenant_idstring

get_usage

This month's usage by kind (segments, minutes, transcription, streams…). Test-mode usage is metered but never billed.