# Tools and MCP Servers

The tools an AI agent can use while it answers — built-in tools, web browsing, and your own MCP servers with per-tool permissions

import Shot from "../../../../components/shot.astro";

Tools let an AI agent do more than answer from memory: look things up in your knowledge base, read a website a customer shares, or call your own systems — for example to check an order's status — in the middle of a conversation.

<Shot name="agent-tools" alt="An AI agent's Channels & Tools tab" />

Tools are set up per agent in **AI Agents → [Your agent] → Channels & Tools**, below **Channel Attachments**. You need permission to edit AI agents to change them.

## Tools every agent has

These need no setup:

| Tool | What the agent does with it |
|------|-----------------------------|
| Knowledge search | Searches your [knowledge base](/en/chatbots/knowledge-base) again with a focused question when the excerpts it already has don't cover what the customer asked |
| Hand off to a human | Releases the chat to your team. Only available when **Auto-handoff to Human** is on (see [Handoff and Routing](/en/chatbots/handoff-and-routing)) |

## Built-in tools

The **Built-in tools** card lists optional tools you turn on per agent.

### Web browsing

Turn on **Web browsing** to let the agent read, screenshot, and deep-scan websites a customer shares, so it can understand what a site is about. With it, the agent can:

- **Read a page** — fetch one page and use its text, for facts such as prices or specifications
- **Look at a page** — take a screenshot and describe how the page looks, for questions about design or layout
- **Scan a site** — read the home page plus up to five of the most relevant pages (about, services, pricing, contact and so on) and summarize the whole site

Web browsing is available on the Enterprise plan; on other plans the card says so and the switch is unavailable. Only public HTTPS addresses can be opened. Each organization can take up to 100 screenshots and scan up to 500 pages a day; past that, the agent is told the daily limit is reached and answers without it.

## External tools (MCP)

The **External tools (MCP)** card connects the agent to servers that speak the Model Context Protocol (MCP). Each server offers a set of tools, and the agent can call them during a conversation. This depends on your plan (Enterprise); without it, the card shows an upgrade prompt.

### Adding a server

1. Click **Add server**
2. Fill in the form:

   | Field | What to enter |
   |-------|---------------|
   | **Name** | A name your team will recognize, for example "Order lookup" (up to 100 characters) |
   | **Transport** | **HTTP** or **SSE**, whichever the server supports |
   | **Server URL** | The server's address. Must be a public `https://` URL — local and private addresses are refused |
   | **Auth token / API key (optional)** | A token or key, if the server uses one. Leave blank for servers that sign in with SSO |
   | **Custom header name (optional)** | For servers that expect the key in a custom header. Leave blank to send it as a Bearer token |
   | **Enabled** | Whether the agent may use this server |

3. Click **Add server**

An agent can have up to 10 MCP servers. Qwetty connects to the server straight away to work out how it signs in:

- With a token and a custom header name, the key is sent in that header (**API key**)
- With a token only, it is sent as `Authorization: Bearer …` (**Bearer**)
- With no token, the server is either open (**Open**) or asks for sign-in, in which case it is marked **Needs auth** and shows a **Connect** button (**SSO**)

### Signing in with SSO

For a server marked **Needs auth**:

1. Click **Connect**
2. Sign in to the service in the window that opens, and approve access
3. The window closes and the server shows **Connected**

If a server that uses SSO wasn't detected as one, open its **⋮** menu and choose **Connect with SSO** to start sign-in anyway. Sign-in tokens refresh on their own; if access is revoked, the server shows **Error** and **Reconnect**.

### Server status

| Status | Meaning |
|--------|---------|
| **Connected** | Signed in and ready. The row shows how many tools the server offers |
| **Open** | The server needs no sign-in |
| **Needs auth** | Click **Connect** to sign in with SSO |
| **Error** | Qwetty couldn't connect. Hover over the badge for the reason. For a key-based server, click **Fix key** to enter a new one; for SSO, click **Reconnect** |

A server's switch can only be turned on once it is connected. A server that isn't connected, is switched off, or fails during a conversation is simply skipped — the agent still replies, just without that server's tools.

### Managing a server

Open the **⋮** menu on a server's row:

| Action | What it does |
|--------|--------------|
| **Tools & permissions** | Choose which of the server's tools the agent may call (connected servers only) |
| **Reconnect** | Sign in with SSO again |
| **Connect with SSO** | Start SSO sign-in for a server that wasn't detected as SSO |
| **Check connection** | Test the server now and refresh its tool list |
| **Edit** | Change the server's details. Leave the token blank to keep the current one, or enter a new value to replace it |
| **Disconnect** | For SSO servers: sign out and clear the stored sign-in. The server and its tool permissions are kept, so you can connect again later |
| **Remove** | Delete the server from this agent |

### Tool permissions

Click **Tools & permissions** to see every tool the server offers, split into two groups:

- **Read-only tools** — tools the server marks as only reading data. **Allowed** by default.
- **Write & destructive tools** — tools that can change data, plus any tool the server doesn't mark as read-only. **Blocked** by default; destructive ones carry a **destructive** label.

Turn tools on or off one at a time, or use **Allow all** / **Block all** for a group. Use **Search tools** to find one, then click **Save**. Blocked tools are removed before the agent sees them, so it can't call them at all.

:::caution
Only allow write tools you are comfortable letting the agent call on a customer's behalf. Tools also run for real when you chat with the agent in the **Playground**.
:::

## Next steps

- [Testing and Analytics](/en/chatbots/testing-and-analytics) — Try tool calls in the Playground
- [Handoff and Routing](/en/chatbots/handoff-and-routing) — Turn on the handoff tool
- [Knowledge Base](/en/chatbots/knowledge-base) — What the knowledge search reads
