MCP connector

The agent API, spoken natively: an MCP server at https://www.ai2ndline.com/mcp that gives Claude — or any client that speaks MCP — five tools on your own number. Live now, included in every plan.

Connect a client

Claude Code

claude mcp add --transport http ai2ndline https://www.ai2ndline.com/mcp \
  --header "Authorization: Bearer $KEY"

Any client with a JSON config (Cursor, project .mcp.json, …)

{
  "mcpServers": {
    "ai2ndline": {
      "type": "http",
      "url": "https://www.ai2ndline.com/mcp",
      "headers": { "Authorization": "Bearer a2l_live_..." }
    }
  }
}

The console generates this config for you, key included, when you mint a key.

Auth is your API key in a header — Authorization: Bearer or X-API-Key, either works. There is deliberately no OAuth flow: the key already is the bounded, revocable credential, and a second identity path would mean two ways to revoke access and therefore one way to forget. A client that cannot send a custom header cannot connect yet.

The tools

ToolDoesArguments
list_numbersThe lines this key may act on, with the numberId every other tool needs. Call it first.—
place_callPlaces a real call. An AI speaks on it, works to the stated objective, and hangs up when it's met or clearly can't be.numberId, to, objective (required), mode?
check_callStatus + transcript so far. Only finalised speech — interim text gets revised.room
send_textSends an SMS that lands in the user's normal thread, visible in the app.numberId, to, body
read_messagesReads recent SMS/MMS, oldest first — how an agent sees replies. waitSeconds long-polls so a reply arrives the moment it lands, no timer loop.numberId?, counterparty?, limit?, since?, waitSeconds?

Calling and texting tools are annotated non-idempotent and destructive — a client that treats place_call as retryable will phone somebody twice. check_call and read_messages are honestly read-only: reading messages does not clear the user's unread badge.

Protocol details

  • Transport is Streamable HTTP with plain JSON responses: POST https://www.ai2ndline.com/mcp. The server never initiates streams, so GET /mcp returns 405 rather than opening an SSE channel that would only ever sit idle.
  • Protocol versions: 2025-06-18, 2025-03-26, 2024-11-05.
  • JSON-RPC batches are accepted; an all-notification batch gets a 202 with no body.
  • Refusals come back as tool results with isError, carrying { error, code, retryAfterSeconds } — information the model should read and act on (add an objective, wait out a rate limit), not a transport fault it never sees.

One rulebook, two doors

MCP here is a transport, not a second implementation. Every rule that decides whether traffic may leave — the required objective, E.164 validation, ownership checks that 404 rather than confirm existence, the A2P texting gate, 30-calls/100-texts-per-hour rate limits, AI-minute metering — lives in one place and runs for both the REST API and MCP. There is no way in through MCP that skips a rule HTTP enforces, or vice versa.

What your agent may do with a phone

These tools place real calls and send real texts from a number registered to you, on a shared carrier registration. Only contact people who expect to hear from you, honour opt-outs immediately, and read the Acceptable Use Policy — keys that put the registration at risk get revoked.