# ClearTalk MCP

> Connect your AI assistant — what it can do with ClearTalk, how the MCP server works, and how to connect from Claude, Cursor, VS Code, and other MCP clients.

Source: https://docs.cleartalk.ai/docs/developers/ai-assistant

ClearTalk runs an **MCP server** — MCP (Model Context Protocol) is the open standard AI assistants use to work with outside systems. Connect it and your assistant stops being a chatbot that talks *about* ClearTalk and becomes one that can *work in it*: build and test agents, search contacts, read transcripts, book appointments, and — with your confirmation — place a single call or text.

<Summary
  items={[
  "One URL + your existing API key — no extra account, nothing to install on our side.",
  "55 focused tools, built around one workflow: build an agent, test it against simulated callers, refine it, then go live.",
  "Live actions (a real call, a real text, a real booking, publishing a Pathway) are marked so the assistant asks you before each one.",
  "Bulk outreach is impossible through this connection by design — no campaign starts, no batch dialing, no list removals, no deletes.",
]}
/>

## What it can do

The toolset is deliberately curated — not a machine translation of the whole API, but the workflows an assistant is actually good at. There are 55 tools in eleven areas, listed in full below.

Things people actually ask their assistant once it's connected:

* *"Build me an outbound agent that books solar consultations — then test it against an angry caller and a voicemail before we try it for real."*
* *"Why did yesterday's calls go badly? Read the failed transcripts and fix the agent's instructions."*
* *"Did anyone ask us to stop contacting them this week? Make sure they're on the do-not-call list."*
* *"Find the call with Jane Doe from Tuesday and summarize how it ended."*

<DoDont
  goodTitle="It can"
  badTitle="It never can"
  good={[
  "Create and edit agents, Pathways, tests, contacts, and bookings",
  "Run simulated test conversations that spend credits but dial no one",
  "Place ONE real call or text, book a meeting, or publish a Pathway — after asking you first",
  "Add numbers to the Do Not Call list and pause a campaign",
]}
  bad={[
  "Start a campaign or dial a contact list — bulk outreach stays in the dashboard",
  "Remove anyone from a do-not-contact list",
  "Delete anything — agents, Pathways, contacts, tests, bookings",
  "Change billing, credits, phone numbers, team members, or account settings",
]}
/>

## Every tool, and what it does in your account

Each tool is marked with what it does to your account:

* **Reads** — looks only. Nothing changes.
* **Changes** — creates or edits something inside ClearTalk. Nobody is contacted.
* **Credits** — runs a simulated conversation. It costs credits, but no phone rings.
* **Live** — reaches the real world: a phone rings, a text goes out, a meeting appears on the calendar, or callers start hearing a different Pathway. The assistant is told to confirm with you before every one of these.

### Agents and knowledge

| Tool                          | What it does                                                                                                                                                                                                                                                                                                                                            | Effect  |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| `list_agents`                 | Lists every agent across all five types — outbound, inbound, web, texting, and chatbot — with their ids.                                                                                                                                                                                                                                                | Reads   |
| `get_agent`                   | Shows one agent's full configuration, including its Agent Instructions.                                                                                                                                                                                                                                                                                 | Reads   |
| `create_agent`                | Creates an agent of any of the five types. Voice agents (outbound, inbound, web) need a voice and a language, and an inbound agent needs the number that routes to it. Texting agents and chatbots run on a Pathway, so they need one; a texting agent also needs its sending number.                                                                   | Changes |
| `update_agent`                | Changes an agent's name, Agent Instructions, voice, language, opening line, Pathway, phone number, Interruption handling or Listening sounds. Only the fields it sends change — everything else is left as it was. Voicemail, dialing strategy, transfer lists, and tools aren't editable here; the assistant will send you to the dashboard for those. | Changes |
| `list_voices`                 | Lists the voices available to your organization.                                                                                                                                                                                                                                                                                                        | Reads   |
| `list_knowledge_bases`        | Lists your knowledge bases, with search by name.                                                                                                                                                                                                                                                                                                        | Reads   |
| `create_knowledge_base`       | Creates a knowledge base from text the assistant writes — pricing, policies, FAQs. Text only: uploading files or pointing at a website is done in the dashboard.                                                                                                                                                                                        | Changes |
| `get_knowledge_base_content`  | Reads the text of a text knowledge base, one page at a time.                                                                                                                                                                                                                                                                                            | Reads   |
| `edit_knowledge_base_content` | Changes passages of a text knowledge base, re-indexes it and updates the Pathways that use it.                                                                                                                                                                                                                                                          | Changes |

### Pathways

A Pathway is versioned, and **saving is not publishing**. Every save becomes a new staging version; the version real callers hear only changes when `promote_pathway` runs.

| Tool                     | What it does                                                                                                                                                                                                                                   | Effect   |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| `list_pathways`          | Lists your Pathways with their ids.                                                                                                                                                                                                            | Reads    |
| `generate_pathway`       | Generates a complete Pathway from a written description of the conversation (at least 100 characters). Runs in the background and returns a job to check on.                                                                                   | Changes  |
| `get_pathway_generation` | Checks whether a generated Pathway is finished.                                                                                                                                                                                                | Reads    |
| `create_pathway`         | Creates an empty Pathway for the assistant to build step by step. Counts against your plan's Pathway limit.                                                                                                                                    | Changes  |
| `get_pathway_graph`      | Reads the working (staging) version: every step, every connection, and the Pathway-wide prompt — plus which version is live.                                                                                                                   | Reads    |
| `save_pathway_graph`     | Saves an edited graph as a new staging version, with a label and a note. Live conversations are unaffected.                                                                                                                                    | Changes  |
| `list_pathway_versions`  | Shows the save history, newest first, and which version is live.                                                                                                                                                                               | Reads    |
| `get_pathway_version`    | Reads the live version, or any past one — to see exactly what callers hear right now, or to restore an earlier version by saving it again.                                                                                                     | Reads    |
| `promote_pathway`        | Publishes the staging version, so real conversations use it immediately. Refused while any test marked required-to-publish is failing — there's no override here; publishing past a failing test is a decision for a person, in the dashboard. | **Live** |

### Testing

Tests work on a Pathway or on a prompt-based agent (outbound, inbound, or web). Each test is a simulated caller with a persona and a set of checks that decide pass or fail.

| Tool                               | What it does                                                                                                                                                                                                                         | Effect  |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------- |
| `list_test_scenarios`              | Lists the tests on a Pathway or agent, with each one's last result and score.                                                                                                                                                        | Reads   |
| `get_test_scenario`                | Reads one test in full: the persona, the step and variables it starts with, and every check.                                                                                                                                         | Reads   |
| `create_test_scenario`             | Creates a test: who the simulated caller is, what they want, how many turns it may run, and the checks it's scored on. On a Pathway, a test can start at a chosen step with preset variables, and can be marked required-to-publish. | Changes |
| `update_test_scenario`             | Edits a test, or switches it off. Changing the checks always sends the full list back, so no check is dropped by accident.                                                                                                           | Changes |
| `delete_test_scenario`             | Deletes a test and its run history.                                                                                                                                                                                                  | Changes |
| `generate_test_scenario_from_call` | Drafts a test from a real past call — the caller's side becomes the persona. The draft isn't saved until the assistant adds checks and creates it.                                                                                   | Changes |
| `run_test`                         | Runs one test against the agent. On a Pathway, runs against staging by default, or production if asked.                                                                                                                              | Credits |
| `run_all_tests`                    | Runs every enabled test (or up to 50 chosen ones) as one batch.                                                                                                                                                                      | Credits |
| `list_test_runs`                   | Shows run history, newest first, filterable by test and by result.                                                                                                                                                                   | Reads   |
| `get_test_run`                     | Reads one run in full: the transcript, each check's verdict, the score, the webhook calls it made, and where it stopped.                                                                                                             | Reads   |
| `get_test_batch`                   | Reads a whole batch at once — progress, pass/fail counts, and every finished run's detail.                                                                                                                                           | Reads   |
| `run_step_test`                    | Pathways only: replays one step against up to 10 past calls, with rewordings of what each caller said, to tune a single step without a full simulated call. Charged per reply.                                                       | Credits |
| `get_step_test`                    | Reads a step test: every reply the step gave, per call, for the caller's real words and each rewording.                                                                                                                              | Reads   |
| `get_promotion_readiness`          | Shows whether a Pathway's required tests allow it to be published, and which ones are blocking.                                                                                                                                      | Reads   |

### Contacts

| Tool              | What it does                                                                                   | Effect  |
| ----------------- | ---------------------------------------------------------------------------------------------- | ------- |
| `search_contacts` | Searches contacts by name, email, or phone, filtered by list, tag, or lifecycle stage.         | Reads   |
| `get_contact`     | Shows one contact, and optionally their activity timeline — calls, texts, notes, and bookings. | Reads   |
| `create_contact`  | Adds a contact, with list, tags, lifecycle stage, and custom fields.                           | Changes |
| `update_contact`  | Edits a contact. Only the fields it sends change.                                              | Changes |

### Campaigns

| Tool             | What it does                                                                                                                                               | Effect  |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| `list_campaigns` | Lists your Outbound Calls, Text Messages, and Batch Calls campaigns.                                                                                       | Reads   |
| `get_campaign`   | Shows one campaign's configuration, status, and agent.                                                                                                     | Reads   |
| `pause_campaign` | Pauses a running campaign. For a Text Messages campaign it can either stop new outreach only, letting live threads keep replying, or stop the replies too. | Changes |

There is no tool to start or resume a campaign — starting one contacts its whole list, which this connection never does.

### Conversations

| Tool                      | What it does                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Effect |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ |
| `list_conversations`      | Lists conversations across calls, texts, web chat, and web agent sessions. Filters by channel, campaign, agent, Result, text search, date range, who replied last on a text thread, and minimum call length (to skip voicemail drops).                                                                                                                                                                                                                                       | Reads  |
| `get_conversation`        | Reads one conversation in full. Calls include the transcript, recording link, analysis answers, and Result; text threads include every message; web chat and web agent sessions include the transcript. For a call it can return a short summary instead — the Result, length, summary, whether it was recorded, and the opening and closing turns — and reads a long transcript 40 turns at a time.                                                                         | Reads  |
| `get_call_diagnostics`    | Explains why a call went wrong: a one-line verdict, who answered and who hung up, whether it hit its maximum length or was transferred, the Pathway version it ran, and the first step that failed, with its error. Beta; calls from the last 90 days. Needs a key created with **Allow troubleshooting** ticked (Integrations → API access); the dashboard Assistant already has it.                                                                                        | Reads  |
| `get_call_timeline`       | Steps through one call's Pathway in order: when each step ran, which operation it was (a tool, a Send data to your system call, a knowledge base lookup, a transfer), how it ended and how long it took, with a one-line verdict and the first failure up top. Filters to failures, one step, one operation or a stretch of the call. Never shows payloads, variables or what the caller said. Beta; calls from the last 90 days. Needs the same troubleshooting permission. | Reads  |
| `list_webhook_deliveries` | Shows what happened to the data sent to your system (Send data to your system): how many deliveries were accepted, failed or skipped on purpose, when failures began, the answers your system gave, and each delivery with a plain-language reason. Filters by call, status and date. Never shows addresses, payloads or responses. Beta; the last 90 days. Needs the same troubleshooting permission.                                                                       | Reads  |
| `get_number_health`       | Checks whether texts are getting through, per sending number: sent, delivered and failed counts, the undelivered rate, the top carrier reasons in plain language, the number's business-texting registration and its last rotation. Give it a contact's number to see whether they are blocked (why, and who blocked them) and how their last 5 texts ended. Never shows message text. Beta; the last 90 days. Needs the same troubleshooting permission.                    | Reads  |

If your organization has HIPAA encryption turned on, `get_call_diagnostics`, `get_call_timeline` and `list_webhook_deliveries` answer with the structure only — no error text, step names or destination names — because that wording can quote what a caller said.

### Calls and texts

One person at a time, through a campaign you already have — the campaign decides the agent, the calling hours, and the number used.

| Tool           | What it does                                                                                                                                                                                         | Effect   |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| `trigger_call` | Places one real call through an Outbound Calls or Batch Calls campaign. Adds or updates the contact first. A call outside the campaign's calling hours waits until the window opens. Spends credits. | **Live** |
| `send_text`    | Starts one real text conversation through a Text Messages campaign. Adds or updates the contact first. Retrying with the same idempotency key never texts the person twice. Spends credits.          | **Live** |

### Appointments

| Tool                  | What it does                                                                                                                   | Effect   |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------ | -------- |
| `list_event_types`    | Lists your bookable meeting types.                                                                                             | Reads    |
| `get_available_slots` | Shows open times for a meeting type in a date window, from your real availability.                                             | Reads    |
| `book_appointment`    | Books a meeting on your calendar, optionally linked to a contact. It's recorded as a manual booking, not one your agents made. | **Live** |
| `list_bookings`       | Lists bookings, filtered by date window, status, meeting type, or contact.                                                     | Reads    |

Cancelling or rescheduling a booking isn't available here — do that in the dashboard.

### Do-not-contact

| Tool                    | What it does                                                                                                                                        | Effect  |
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| `check_do_not_contact`  | Checks a number against both lists — Do Not Call (voice) and text opt-outs. Any match means don't contact.                                          | Reads   |
| `add_to_do_not_contact` | Adds a number to the Do Not Call list, with an optional reason, so voice agents never dial it. Removing a number is only possible in the dashboard. | Changes |

### Account

| Tool                   | What it does                                                                                                                                                        | Effect |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ |
| `get_account`          | Shows which organization the connection acts in, its plan, and who the caller is. An API key acts as the organization's owner, and the assistant is told to say so. | Reads  |
| `get_credit_balance`   | Shows the credit balance — this period's plan grant, purchased credits and the total — and the auto-recharge settings. Saved card details are never included.       | Reads  |
| `get_activity_summary` | Headline numbers for the last 7, 30 or 90 days, 12 months, or all time: calls, minutes, appointments, texts, spend, and calls by Result.                            | Reads  |

### Best-practice guides

| Tool        | What it does                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Effect |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------ |
| `get_guide` | Returns ClearTalk's full guide to one kind of work — the complete working instructions, writing Agent Instructions, building a Pathway, designing tests, texting, keeping outreach healthy, setting an agent up, reading your results, or tracking down a problem: a call that went wrong, data that didn't reach your system, or texts that aren't being delivered. The assistant reads the matching guide before it builds or reviews something. It looks at nothing in your account and costs no credits. | Reads  |

## How it works

The server is a thin, deliberately forgetful layer in front of the same API this documentation describes. It holds no data and no credentials of its own — your API key, sent with every request, is the only thing that identifies and authorizes the connection.

<Sequence
  caption="One tool call, end to end"
  steps={[
  {
    title: "You ask your assistant for something",
    note: "\"Test my solar agent against an impatient caller.\"",
  },
  {
    title: "The assistant picks a tool and calls the MCP server",
    note: "Your API key rides along on the request, straight from your client's settings.",
  },
  {
    title: "The server forwards the call to the ClearTalk API with your key",
    note: "Nothing is stored — the key and the request die together. Permissions, organization boundaries, and rate limits are enforced by the API, exactly as for any other API caller.",
  },
  {
    title: "The result comes back as plain data",
    note: "Scored transcripts, contact records, booking confirmations — the assistant reads them and answers you.",
  },
]}
/>

Three consequences worth knowing:

* **The key is the whole relationship.** The assistant reaches exactly what the key's organization owns — nothing else — and revoking the key (**Integrations → API access**) kills the connection instantly.
* **Nothing persists between requests.** There's no session on our side, no stored conversation, no cached data.
* **The server also teaches.** It ships built-in instructions every assistant reads before its first tool call: how ClearTalk's pieces fit together, the test-first workflow, the craft of writing instructions and Pathways that perform, and the rule that live actions need your explicit go-ahead every time. Longer guides, with worked examples, are a tool call away. Expect your assistant to have opinions: it is told to point out what will cost you conversations, not just do as asked.

## Connect it

You need two things: the server address, and an API key ([create one](/docs/developers/authentication) under **Integrations → API access**).

```text
https://mcp.cleartalk.ai/mcp
```

### Claude Code

One command:

```bash
claude mcp add --transport http cleartalk https://mcp.cleartalk.ai/mcp \
  --header "Authorization: Bearer ct_your_key"
```

### Claude Desktop

**Settings → Developer → Edit Config**, then add under `mcpServers`:

```json
{
  "mcpServers": {
    "cleartalk": {
      "type": "http",
      "url": "https://mcp.cleartalk.ai/mcp",
      "headers": { "Authorization": "Bearer ct_your_key" }
    }
  }
}
```

### Cursor

**Settings → MCP → Add new server**, or add to `.cursor/mcp.json` in your project:

```json
{
  "mcpServers": {
    "cleartalk": {
      "url": "https://mcp.cleartalk.ai/mcp",
      "headers": { "Authorization": "Bearer ct_your_key" }
    }
  }
}
```

### VS Code (Copilot agent mode)

Add `.vscode/mcp.json` to your workspace:

```json
{
  "servers": {
    "cleartalk": {
      "type": "http",
      "url": "https://mcp.cleartalk.ai/mcp",
      "headers": { "Authorization": "Bearer ct_your_key" }
    }
  }
}
```

### Any other MCP client

The server speaks standard **streamable HTTP**. Point the client at the URL above and have it send either header on every request — that's the entire contract:

```text
Authorization: Bearer ct_your_key
      — or —
X-API-Key: ct_your_key
```

### For agencies

Agencies connect once and work across every customer account. Use the agency address with a key from the agency portal (**API access**):

```text
https://mcp.cleartalk.ai/agency/mcp
```

```bash
claude mcp add --transport http cleartalk-agency https://mcp.cleartalk.ai/agency/mcp \
  --header "Authorization: Bearer ct_your_agency_key"
```

It's the same toolset with two differences. There's one extra tool, `list_customer_accounts`, which lists your customers and their ids. And every other tool that touches an account takes an `organization_id` naming the customer to act in. The assistant is told to list your customers first, confirm which one you mean, and say which customer it's working in. A customer you don't manage can't be reached; the API refuses it.

<Callout type="warn" title="claude.ai and ChatGPT in the browser">
  Browser-based connectors (claude.ai's custom connectors, ChatGPT's) require an OAuth sign-in flow this server doesn't offer yet, so they can't connect today. The connection works everywhere a key header can be configured: Claude Code, Claude Desktop, Cursor, VS Code, and other desktop/CLI MCP clients. OAuth support is planned.
</Callout>

<Key>
  The key has full access to its organization — treat the client config file it lives in like a password. Team members should each use their own named key, so access can be revoked per person.
</Key>

## The skill (recommended for Claude)

Alongside the connection, we publish a **skill** — a short file that tells your assistant to load ClearTalk's full guidance from the server before it starts: how to structure Agent Instructions that perform, how to build Pathways, how to design test scenarios that catch real failures, and how to read results. The guidance itself lives on the server and stays current, so there's nothing to re-download. Some assistants only read the first part of a server's built-in instructions; the skill makes sure yours gets all of it.

<Steps>
  <Step>
    Download [SKILL.md](/skills/cleartalk/SKILL.md).
  </Step>

  <Step>
    Place it in a `cleartalk` folder inside your skills directory — for Claude Code, `.claude/skills/cleartalk/` in your project.
  </Step>

  <Step>
    That's it. The assistant loads the skill automatically whenever ClearTalk work comes up.
  </Step>
</Steps>

## Safety model

* **Live actions announce themselves.** The tools that touch the real world — placing a call, sending a text, booking a meeting, publishing a Pathway — are marked as live operations, and the assistant is instructed to state what will happen and get your confirmation before each one, every time.
* **Test runs are simulated.** Agent testing spends credits but never places a call — that's the point: agents earn their way to real conversations.
* **The dangerous surface doesn't exist.** No campaign start, no batch dialing, no do-not-contact removals, no deletes — those aren't restricted, they're absent, and an automated check keeps them absent.
* **Everything is attributable.** Actions taken through the connection are ordinary API calls under the key's organization, visible in the same places any API activity is.

## Troubleshooting

<Accordions>
  <Accordion title="The assistant says no valid API key reached the server">
    The key isn't arriving on the request. Check the client config sends it as a header — `Authorization: Bearer ct_…` (or `X-API-Key`) — with no quotes around the whole header line, and that the key wasn't revoked. Keys are shown once at creation; if it's lost, create a new one.
  </Accordion>

  <Accordion title="The tools don't appear in my client">
    Confirm the URL ends in `/mcp` and the client is using HTTP transport (not stdio, not SSE-only). A quick health check from any terminal: `curl https://mcp.cleartalk.ai/health` should answer `{"ok":true}`.
  </Accordion>

  <Accordion title="Every tool call fails with a permissions message">
    The key belongs to an organization; if that organization's plan or role setup doesn't allow a resource, the API refuses and the assistant relays the reason. The message names what to change in the dashboard.
  </Accordion>

  <Accordion title="I want to cut off access right now">
    Revoke the key: **Integrations → API access → Revoke**. The connection dies with it, immediately.
  </Accordion>
</Accordions>
