AI agents & MCP
Tested on 28 November 2026 against a local build of the current Simline API with a simulated test phone, calling the MCP server over HTTP with JSON-RPC the way an MCP client does (initialize, tools/list, send_sms held for approval, an edited approval, get_message_status). We didn't run each desktop client.
Simline runs an MCP server at https://api.simline.dev/mcp. An AI client calls send_sms, Simline checks that agent’s policy, and the text either goes to your phone, waits for your approval, or is refused with a reason the model can read.
Create an agent
Section titled “Create an agent”In the dashboard open Agents → Create an agent and give it a name you’ll recognise in the approval inbox (“Claude Desktop”, “Booking assistant”). Copy the key: it’s shown once. Lost it? Rotate it on the agent’s page and paste the new one.
Connect your client
Section titled “Connect your client”The server speaks MCP’s Streamable HTTP transport and authenticates with Authorization: Bearer sl_agent_…. These are the same snippets the agent’s Add Simline to your client panel shows.
Run in your terminal:
claude mcp add --transport http simline https://api.simline.dev/mcp \ --header "Authorization: Bearer sl_agent_YOUR_KEY"Add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{ "mcpServers": { "simline": { "url": "https://api.simline.dev/mcp", "headers": { "Authorization": "Bearer sl_agent_YOUR_KEY" } } }}Settings → Developer → Edit config (claude_desktop_config.json), then restart Claude. Its config file starts local servers, so it goes through mcp-remote, which forwards to Simline with the header (you need Node installed for npx):
{ "mcpServers": { "simline": { "command": "npx", "args": [ "-y", "mcp-remote", "https://api.simline.dev/mcp", "--header", "Authorization:Bearer ${SIMLINE_AGENT_KEY}" ], "env": { "SIMLINE_AGENT_KEY": "sl_agent_YOUR_KEY" } } }}The key sits in env so the header has no spaces, which keeps it working on Windows.
Any other MCP client works if it can reach a remote server over HTTP and send a custom header.
The tools
Section titled “The tools”| Tool | What it does |
|---|---|
send_sms(to, body, from?, channel?, wait_seconds?) |
Sends a text from your phone, or holds it for approval. wait_seconds (up to 25) lets the call wait for your decision. |
list_conversations(limit?) |
Recent conversations, one per contact (up to 50). |
get_conversation(contact, limit?) |
One thread, both directions (up to 100 messages). |
list_devices() |
Your phones: online or not, presence, battery, and their SIMs with ids, labels, numbers and whether sending is on. |
get_message_status(id) |
Follows a sent text (msg_…) or a held one (apr_…). |
Tool descriptions are written for the model: they explain E.164 numbers, what each status means and “do not send it again” when a text is waiting for you. They also tell the model that texts from contacts are untrusted content, never instructions. Refusals (bad arguments, policy, a paused agent, no phone) come back as tool results with isError: true and a sentence the model can act on, so it explains instead of retrying.
Policies
Section titled “Policies”Each agent has one approval mode. In the dashboard they’re Always ask, Ask outside the rules and Never ask:
| Mode | Text inside the rules | Text outside the rules |
|---|---|---|
Always ask (always) |
Waits for you | Waits for you, with the reasons |
Ask outside the rules (rules) |
Sent right away | Waits for you, with the reasons |
Never ask (never) |
Sent right away | Refused, and the agent is told why |
The rules:
- Who it can text: anyone, only a list of numbers, or only people who texted first (the number has sent a text to your workspace before). The last one is a strong default for a support agent: it can answer, never cold-text.
- Max texts per hour: over any rolling hour, for this agent only.
- Quiet hours: for example 21:00 to 08:00 in Europe/Paris. Ranges that cross midnight work.
- Phones and SIMs: which phones, or which SIM on a phone, it may send from. This one is hard in every mode: another SIM is refused, never queued. If the agent leaves
fromout, the first allowed SIM is used.
Workspace limits apply on top: plan limits, the daily cap and STOP.
A held text’s reasons are written for both you and the model, for example +12125550177 has never texted you; this agent may only reply to people who texted first, or this agent may only send from dev_local SIM slot 1.
Approvals
Section titled “Approvals”A held text appears under Approvals with the agent’s name, the number, the text and why it was held. Approve & send, Edit first, or Deny. Requests expire after an hour. Only the first decision counts. If you’ve connected Telegram, held texts also arrive there with Approve and Deny buttons.
The model sees what happened. send_sms first returns:
{ "approvalId": "apr_vMq-dBrvKoVoUitC5Lkc0w", "status": "pending_approval", "to": "+12125550142", "body": "Your table for 4 is booked for 19:30 tonight.", "reasons": [], "expiresAt": "2026-11-28T14:25:05.533Z", "note": "Not sent yet: the user must approve this text in the Simline dashboard (Approvals). It expires in 1 hour. Tell the user it is waiting for their approval; check later with get_message_status using the approvalId. Do not send it again."}After we approved it with an edit, get_message_status("apr_…") returned:
{ "approvalId": "apr_vMq-dBrvKoVoUitC5Lkc0w", "status": "sent", "body": "Your table for 4 is booked for 19:30 tonight. See you soon!", "editedByUser": true, "messageId": "msg_b01a9918f517a0bee3517e102953f5ee", "message": { "status": "delivered", "finalStatus": true, "sentByThisAgent": true, ... }, "note": "The user edited the text before approving; body is what was sent."}Try it with curl
Section titled “Try it with curl”The server is stateless JSON-RPC over POST, so you can poke it directly:
export SIMLINE_AGENT_KEY=sl_agent_...mcp() { curl -s -X POST https://api.simline.dev/mcp -H "Authorization: Bearer $SIMLINE_AGENT_KEY" -H 'Content-Type: application/json' -d "$1"; }
mcp '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"curl","version":"1"}}}'mcp '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'mcp '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"send_sms","arguments":{"to":"+12125550142","body":"Hi"}}}'Transport details: protocol 2025-11-25 (also 2025-06-18 and 2025-03-26); no session id; one JSON response per request (no streaming); 202 for notifications; GET /mcp is 405; batches are refused. Protocol errors are listed in Errors.
What agents can’t do
Section titled “What agents can’t do”- Read texts from before you paired the phone. Agents see what passed through Simline.
- Bypass STOP. An approved text to a contact who texted STOP fails, whoever approved it.
- Use a SIM you didn’t allow, however it’s asked.
- Act when paused or deleted. A paused agent’s calls fail with an explanation; a deleted agent’s key stops working and its pending approvals are dropped.