> ## Documentation Index
> Fetch the complete documentation index at: https://docs.taskadmin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP endpoint

> Use TaskAdmin as tools from an AI agent.

TaskAdmin serves the Model Context Protocol at one address, so an AI agent can read your conversations as tools.

```text theme={null}
https://api.taskadmin.ai/mcp
```

Add it to your agent as a remote MCP server over HTTP, with an [API key](https://docs.taskadmin.ai/guides/api-keys.md) as the bearer token in an `Authorization` header. A person's sign-in is not accepted.

## Tools

Every tool only reads.

| Tool | What it answers |
| - | - |
| `get_context` | What the key is: your organization, the agents it reads, message retention, the time now. Call it first. |
| `search_conversations` | Conversations where a phrase was said, newest first, with the text around each match |
| `list_conversations` | A page of conversations in a period. With `includeTranscripts`, each carries its full transcript. |
| `get_conversation` | One conversation in order: what was said, and each tool the agent called |
| `list_tool_calls` | The calls the agent made to its tools. Calls to a lead-saving tool are the leads it captured. |
| `get_analytics` | Totals for a period: conversations, messages, tools, link clicks, busiest hours, by day |
| `list_link_clicks` | Links visitors clicked in the agent's answers |

Every conversation in an answer carries a `url` that opens it in the dashboard.

## Arguments the tools share

The tools read the public chat with your visitors. They never read the internal staff chat.

| Argument | Meaning |
| - | - |
| `agent` | The agent's name or ID, from `get_context`. Leave it out when the key reads only one agent. |
| `from` | Start of the period: `2026-11-01` or `2026-11-01T14:00:00Z`, in UTC. Defaults to 30 days before `to`. |
| `to` | End of the period. A date alone includes that whole day. Defaults to now. |
| `page` | Which page, starting at 0. Lists hold 25 a page. |

### search\_conversations

| Argument | Meaning |
| - | - |
| `phrases` | Required. One to ten phrases, each 2 to 200 characters. |
| `speaker` | `visitor` or `agent`, to match only what one of them said |
| `limit` | How many conversations to return: 1 to 50, default 20 |

A conversation matches when any phrase appears in a message. Matching is by the words as written, ignoring case. It is not by meaning, so give several wordings: for weekend appointments try `weekend`, `saturday`, `sunday`.

### list\_conversations

| Argument | Meaning |
| - | - |
| `includeTranscripts` | Include every message of every conversation |

Use it to read a period and judge something search cannot find, such as questions the agent could not answer.

### get\_conversation

| Argument | Meaning |
| - | - |
| `conversationId` | Required. From another tool's answer. |

### list\_tool\_calls

| Argument | Meaning |
| - | - |
| `toolName` | Only this tool, by its exact name. Leave out to see every tool. |

### get\_analytics

| Argument | Meaning |
| - | - |
| `timezone` | IANA time zone for days and hours, such as `America/Chicago`. Default UTC. |

### list\_link\_clicks

| Argument | Meaning |
| - | - |
| `urlContains` | Only links whose address contains this text |

## Check the address and the key

```sh theme={null}
curl -s https://api.taskadmin.ai/mcp \
  -H "Authorization: Bearer $TASKADMIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

## How it behaves

* **Transport.** Streamable HTTP without sessions. Each `POST` carries one JSON-RPC 2.0 message, or a batch of up to 10, and gets its answer back as JSON. There is no server-sent stream. `GET` and `DELETE` answer `405`.
* **Methods.** `initialize`, `ping`, `tools/list` and `tools/call`.
* **Problems.** A tool that cannot do its work answers with `isError: true` and a sentence that says why, such as `"from" must be before "to".`
* **Old conversations.** A conversation older than 60 days has lost its messages. It is listed with its counts and a note that says so.
* **Limits.** One tool call counts as one request against the key's 60 a minute. See [limits and errors](https://docs.taskadmin.ai/api/limits-and-errors.md).
* **The record.** Each tool call is in the key's record, marked as coming through MCP.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.