Twilio MCP server tools: which ones buy numbers and send messages, and how to make your agent ask
The tools of Twilio Labs' MCP server (@twilio-alpha/mcp 0.7.0), checked by running it against a local stand-in for Twilio's API: the 197 tools you get with no flags, why a read tool can be sent to your account record, how a delete tool can be aimed at an API key, and the Claude Code settings that make the rest ask.
Checked on by running @twilio-alpha/mcp 0.7.0 (npm, run with node, calls sent to a local stand-in) from twilio-labs/mcp and reading its tools/list answer. Each tier is the tool risk checker’s reading, with our reason wherever we changed it. Written by the people who make VariantGate.
The short answer
It has no read-only mode and its tools give no hints. With no flags it loads 197 tools of Twilio's core API, sending texts, placing calls and buying numbers among them. Load only the tags you need and use a Standard API key, which Twilio keeps away from the account and its keys; 2 of the 10 tools in the README's own example can then run unasked.
- Can run on their own
- 2
- Should ask a person
- 8
Which Twilio server this is
This page is about Twilio Labs’ server, twilio-labs/mcp, published on npm as @twilio-alpha/mcp. Its README calls it a proof of concept. It turns Twilio’s OpenAPI files into one tool per API call, and --services and --tags pick which. We ran 0.7.0, the latest release, with fake credentials. It has no setting for the API address, so a small hook in Node sent every request to a local stand-in that recorded it, and nothing reached Twilio. It sends no telemetry, has no read-only mode, and gives no tool a read-only or destructive hint.
With no flags, 197 tools
The README’s first setup passes only the credentials. The server then loads all of Twilio’s core API, twilio_api_v2010: 197 tools, of which 103 send a GET, 62 a POST and 32 a DELETE. Among them:
CreateMessagesends a text andCreateCallplaces a call, to the number the model gives.CreateIncomingPhoneNumberand its Local, Mobile and TollFree versions buy a number. Our call went out as one POST, with nothing to confirm.CreateNewKeyandCreateNewSigningKeymake an API key, and Twilio’s spec says the answer carries its secret. The server hands the model each answer as it came.FetchAccountandListAccountare reads, but the account record carries the auth token, by Twilio’s own spec.
The tools below are the README’s narrower example: two tags.
A Sid goes into the URL unchecked
The server pastes each path value into the URL as the model wrote it. Only the AccountSid is checked; a bad one is swapped for yours. Any other Sid can carry ../, and the URL is tidied before it is sent:
FetchIncomingPhoneNumberwith Sid../../AC…sent a GET for the account record, the one with the auth token. With../../AC…/Keysit asked for the list of API keys.DeleteIncomingPhoneNumberwith Sid../Keys/SK…sent a DELETE for that API key.FetchFlowwithFW…/Revisionsasked for the flow’s revisions. It stays onstudio.twilio.com, but that includes each execution’s context, by the spec the server ships: the message that started it, the caller’s number and the answers it collected.
So a rule that lets a fetch run unasked lets it fetch anything on that host, which is why FetchIncomingPhoneNumber and FetchFlow ask below.
Reads ignore their filters
A GET carries no query string at all. ListMessage with a To number and PageSize 5 requested the plain message list, which brings back the first page of every message, bodies and phone numbers included. ListIncomingPhoneNumber, asked for one number, did the same. Page and PageToken are dropped too, so a plain call only ever returns the first page.
A safer setup
claude mcp add twilio -- npx -y @twilio-alpha/mcp@0.7.0 YOUR_ACCOUNT_SID/YOUR_API_KEY:YOUR_API_SECRET --tags Api20100401IncomingPhoneNumber,StudioV2FlowName the tags you need; each tag loads the whole resource, deletes included. Use a Standard API key, not a Main one: Twilio’s docs say a Standard key cannot reach /Accounts or the Keys resources, which keeps the auth token and key changes out of reach of the path trick above. We did not run against Twilio, so we have not seen that refusal ourselves. Restricted keys go further, down to single endpoints. The server takes its credentials only as an argument, so the secret sits in Claude Code’s config and in the process list. Make a key for this alone and delete it when you stop.
All 10 tools
Hard to undo2 toolsAsk a person every time. Consider two people, or deny it if the agent never needs it.
TwilioApiV2010--DeleteIncomingPhoneNumberDelete a phone-numbers belonging to the account used to make the request.
Server gives no read-only or destructive hint · toolset Api20100401IncomingPhoneNumber
Our call: Gives the number up. Its Sid goes into the URL unchecked: one call with a Sid of ../Keys/SK… sent a DELETE for an API key instead.
TwilioStudioV2--DeleteFlowDelete a specific Flow.
Server gives no read-only or destructive hint · toolset StudioV2Flow
Moves money1 toolSend the amount. A rule lets small amounts through; above the limit a person decides.
TwilioApiV2010--CreateIncomingPhoneNumberPurchase a phone-number for the account.
Server gives no read-only or destructive hint · toolset Api20100401IncomingPhoneNumber
Our call: Buys the phone number it is given, which Twilio charges for. Our one call went straight out as a purchase, with nothing to confirm.
Reaches people1 toolAsk a person: once it reaches someone, it cannot be unsent.
TwilioApiV2010--UpdateIncomingPhoneNumberUpdate an incoming-phone-number instance.
Server gives no read-only or destructive hint · toolset Api20100401IncomingPhoneNumber
Our call: Can set the number's SmsUrl and VoiceUrl to any address, and Twilio then sends every text and call to that number there, including any login codes sent to it.
Not sure2 toolsAsk a person until you have checked what it does.
TwilioApiV2010--FetchIncomingPhoneNumberFetch an incoming-phone-number belonging to the account used to make the request.
Server gives no read-only or destructive hint · toolset Api20100401IncomingPhoneNumber
Our call: Its Sid goes into the URL unchecked. A Sid of ../../AC… sent GET for the account record itself, which Twilio's spec says carries the auth token.
TwilioStudioV2--FetchFlowRetrieve a specific Flow.
Server gives no read-only or destructive hint · toolset StudioV2Flow
Our call: Reads one flow, but its Sid goes into the URL unchecked, so it can reach any Studio read, such as an execution's context: the message that started it, the caller's number and the answers it collected.
Changes data2 toolsAsk a person. Once it is routine, a standing rule can answer.
TwilioStudioV2--CreateFlowCreate a Flow.
Server gives no read-only or destructive hint · toolset StudioV2Flow
TwilioStudioV2--UpdateFlowUpdate a Flow.
Server gives no read-only or destructive hint · toolset StudioV2Flow
Only looks2 toolsLet it run. It only looks.
TwilioApiV2010--ListIncomingPhoneNumberRetrieve a list of incoming-phone-numbers belonging to the account used to make the request.
Server gives no read-only or destructive hint · toolset Api20100401IncomingPhoneNumber
Our call: Only lists your numbers. Its filters are never sent: asked for one number with PageSize 1, it requested the whole first page. The AccountSid it takes is checked.
TwilioStudioV2--ListFlowRetrieve a list of all Flows.
Server gives no read-only or destructive hint · toolset StudioV2Flow
Our call: Only lists your Studio flows. It takes no path value, so nothing can be slipped into its URL.
Let the reads run in Claude Code
Claude Code asks before every MCP tool it has no rule for. Added as twilio, this server’s tools are named mcp__twilio__<tool>. These allow rules, in .claude/settings.json or ~/.claude/settings.json, let the tools that only look run without a prompt. Everything else keeps asking, including any tool a later version of the server adds.
{
"permissions": {
"allow": [
"mcp__twilio__TwilioApiV2010--ListIncomingPhoneNumber",
"mcp__twilio__TwilioStudioV2--ListFlow"
]
}
}The command that adds the server:
claude mcp add twilio -- npx -y @twilio-alpha/mcp@0.7.0 YOUR_ACCOUNT_SID/YOUR_API_KEY:YOUR_API_SECRET --tags Api20100401IncomingPhoneNumber,StudioV2FlowSend the rest to a person, not the terminal
A prompt in the terminal only works while someone is watching it. With this hook, every other tool of the server becomes a request in your VariantGate inbox, on your phone or in Slack, and Claude Code waits for the answer. The matcher names the look-only tools, so a tool added later is sent too. Put the key in VARIANTGATE_KEY, or run the one-command setup for Claude Code first.
{
"hooks": {
"PreToolUse": [
{
"matcher": "mcp__twilio__(?!(TwilioApiV2010--ListIncomingPhoneNumber|TwilioStudioV2--ListFlow)$).*",
"hooks": [
{ "type": "command", "command": "variantgate hook claude-code", "timeout": 180 }
]
}
]
}
}Disagree with a tier, or run the server with other flags? Open these tools in the tool risk checker, change what you like, and copy the settings for your own setup. It runs in your browser and starts from its own reading, so a tool we marked as only looking by hand asks there until you change it.
Any MCP client: put the proxy in front
Claude Desktop, Cursor and most other MCP clients have no hook to send a call to a person. The VariantGate MCP proxy does it in the server’s place: it starts the server, lets the look-only tools above through, and holds every other call until someone approves it in the inbox. Run npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz login once to save a key, then use this in claude_desktop_config.json or ~/.cursor/mcp.json:
{
"mcpServers": {
"twilio": {
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz",
"mcp-proxy",
"--name",
"twilio",
"--look-only",
"TwilioApiV2010--ListIncomingPhoneNumber,TwilioStudioV2--ListFlow",
"--",
"npx",
"-y",
"@twilio-alpha/mcp@0.7.0",
"YOUR_ACCOUNT_SID/YOUR_API_KEY:YOUR_API_SECRET",
"--tags",
"Api20100401IncomingPhoneNumber,StudioV2Flow"
],
"command": "npx"
}
}
}Already have it in Claude Desktop? One command rewrites the file for you, with these look-only tools filled in, and keeps the old one (setup vscode does the same for VS Code; how it works):
npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz setup claude-desktopThe same in Claude Code, instead of the hook. The proxy now asks about every call that matters, so an allow rule for the whole server, mcp__twilio, keeps Claude Code from asking a second time in the terminal:
claude mcp add twilio -- npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz mcp-proxy --name twilio --look-only TwilioApiV2010--ListIncomingPhoneNumber,TwilioStudioV2--ListFlow -- npx -y @twilio-alpha/mcp@0.7.0 YOUR_ACCOUNT_SID/YOUR_API_KEY:YOUR_API_SECRET --tags Api20100401IncomingPhoneNumber,StudioV2FlowWhen the agent should write
Buying a number, sending a text and pointing a number’s SmsUrl somewhere new should each wait for a person. The person who answers sees the number, the message and the full Sid, so a Sid with ../ in it is easy to catch. For an agent that sends texts, load only Api20100401Message. That tag also brings UpdateMessage and DeleteMessage, so keep all three on ask. Keep ListMessage on ask too: it ignores its filters and returns the first page of all the account’s messages, which can hold login codes.
See it before you decide.
The playground runs the whole approval loop in your browser, no account needed. When it fits, the free plan covers 100 requests a month.