KaiCalls

Agent Discovery (AID + MCP)

You want your AI assistant to find KaiCalls and connect by itself. No URL to paste, no config to hunt for. Give it the name kaicalls.com and it can look up our Model Context Protocol (MCP) server on its own.

This works through the Agent Identity & Discovery standard. Any MCP client that supports it can use it, such as Claude Desktop or OpenClaw.

  1. Your client reads one DNS TXT record. If DNS is blocked, it reads .well-known/aid.json instead.
  2. The record tells it where our MCP server lives and that it needs a Bearer key.
  3. Your client connects with your KaiCalls API key and can use the tools below.

Finding the server needs no key. You only need a key to call tools.

Discover the endpoint

Want to see what your client sees? Install the AID CLI and run discover. It reads our DNS record:

bash
npm install -g @agentcommunity/aid-doctor aid-doctor discover kaicalls.com # Output: # ✓ Found AID record # Protocol: mcp # URI: https://kaicalls.com/api/mcp # Auth: bearer # Docs: https://kaicalls.com/docs/api

Or fetch the .well-known fallback directly. It is plain JSON over HTTPS:

bash
curl https://www.kaicalls.com/.well-known/aid.json

The response starts like this (shortened):

json
{ "version": "aid1", "protocol": "mcp", "uri": "https://www.kaicalls.com/api/mcp", "auth": "bearer", "docs": "https://www.kaicalls.com/docs", "name": "KaiCalls", "tools": [ { "name": "...", "description": "..." } ] }

Both point to the same server. The DNS record uses kaicalls.com, which redirects to www.kaicalls.com.

DNS TXT record (reference)

This is the record we publish at _agent.kaicalls.com, so you can check it by hand:

dns
_agent.kaicalls.com. 300 IN TXT "v=aid1;p=mcp;u=https://kaicalls.com/api/mcp;a=bearer;d=https://kaicalls.com/docs/api"

Verify with dig _agent.kaicalls.com TXT. If you see p=mcp and a=bearer, discovery is working.

MCP endpoint

Once your client has found us, this is where it connects:

Endpoint
https://www.kaicalls.com/api/mcp
In the DNS record
https://kaicalls.com/api/mcp
Protocol
Model Context Protocol (MCP)
Auth
Bearer token. Use your KaiCalls API key (kc_live_...). A kc_test_ sandbox prefix is on the roadmap but not yet available.
Content-Type
application/json

Create an API key from the dashboard. Give it the scopes your tools need (calls:read, calls:write, agents:read).

Add to an AI client

If your client does not support discovery yet, add the server by hand. The AI Connectors install guide has steps for Claude, ChatGPT, Cursor, VS Code / GitHub Copilot, Windsurf, Mistral, Grok, and Perplexity.

HTTP routes

Building your own client? There are three top-level paths. The first is public. The other two need a Bearer API key.

  • POST /api/mcp/initialize: MCP handshake. Public.
  • POST /api/mcp/tools/list: list the tools. Needs a Bearer key.
  • POST /api/mcp/tools/call: run a tool. Needs a Bearer key plus the tool's scope.

Clients that speak the full MCP JSON-RPC spec can use the JSON-RPC 2.0 handler at POST /api/mcp.

Each tool definition lists its outputSchema. Each tool result has readable content plus structuredContent. The structured part holds IDs, counts, paging, status fields, and error details. Read those fields. Don't parse the text. When you sign in, the tool list only shows tools your key's scopes allow. The public discovery files show every tool and the scope it needs.

Available tools

Start with a read-only flow. Call get_business_info, then list_agents, then list_recent_calls. Use returned IDs with check_call_status and get_transcript. Only call make_call after the user says yes. It places a real phone call.

make_call

Initiate an outbound call. Scope: calls:write.

Arguments:

  • agent_id (string, required): must belong to the key's business
  • to (string, required): E.164 phone number
  • context (string, optional): free-form script hint
  • name (string, optional): caller name
  • first_message (string, optional): override greeting
  • lead_id (string, optional): existing lead to associate
bash
curl -X POST https://www.kaicalls.com/api/mcp/tools/call \ -H "Authorization: Bearer kc_live_..." \ -H "Content-Type: application/json" \ -d '{ "name": "make_call", "arguments": { "agent_id": "abc123", "to": "+19085551234", "context": "Follow up on inquiry" } }'

check_call_status

Get status of a call. Scope: calls:read.

bash
curl -X POST https://www.kaicalls.com/api/mcp/tools/call \ -H "Authorization: Bearer kc_live_..." \ -d '{"name":"check_call_status","arguments":{"call_id":"<uuid>"}}'

get_transcript

Get transcript + summary of a completed call. Scope: calls:read.

bash
curl -X POST https://www.kaicalls.com/api/mcp/tools/call \ -H "Authorization: Bearer kc_live_..." \ -d '{"name":"get_transcript","arguments":{"call_id":"<uuid>"}}'

list_recent_calls

List recent calls for the authenticated business. Scope: calls:read.

bash
curl -X POST https://www.kaicalls.com/api/mcp/tools/call \ -H "Authorization: Bearer kc_live_..." \ -d '{"name":"list_recent_calls","arguments":{"limit":10,"offset":0}}'

For pagination, call again with offset=structuredContent.next_offset when structuredContent.has_more is true.

list_agents

List KaiCalls agents available to the key. Scope: agents:read.

bash
curl -X POST https://www.kaicalls.com/api/mcp/tools/call \ -H "Authorization: Bearer kc_live_..." \ -d '{"name":"list_agents","arguments":{"limit":50,"offset":0}}'

get_business_info

Basic metadata about businesses the key can access. Scope: agents:read.

bash
curl -X POST https://www.kaicalls.com/api/mcp/tools/call \ -H "Authorization: Bearer kc_live_..." \ -d '{"name":"get_business_info","arguments":{}}'

Security & multi-tenancy

  • HTTPS-only. HTTP requests are rejected at the edge.
  • Every tool call is scoped to the business(es) the API key belongs to. make_call cannot use an agent from another tenant.
  • Invalid, revoked, or expired keys return 401.
  • Missing scopes return 403.
  • Rate limits apply the same way as the rest of the /api/v1 surface.

Ready to connect?

Create your account, make an API key, and your client can find and use KaiCalls on its own.

Finding the server needs no key. You only need a key to call tools.

Questions? Email support@kaicalls.com or see the full API reference.