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

# Agents

> What an agent is in an xcale account, how it is created and switched on, and what an AI app can change about it.

An agent is an AI worker that belongs to a business. Each agent has its own instructions and rules, the skills it carries, the documents it keeps in view and the WhatsApp number it can answer on.

## Created switched off

A new agent starts switched off, whether you create it from scratch or install one of the ready-made templates. When you install a template, the result says what the agent still needs to work, such as a connection.

* [`list_agent_templates`](https://docs.xcale.app/mcp/tools/agents) lists the templates the account can install.
* [`create_agent`](https://docs.xcale.app/mcp/tools/agents) and [`create_agent_from_template`](https://docs.xcale.app/mcp/tools/agents) create one.

## Switching on and off

Switching an agent on is its own step. [`get_activation_quote`](https://docs.xcale.app/mcp/tools/activation) returns what switching the agent on would cost, as the dashboard shows it, and a `quoteDigest`. [`set_agent_active`](https://docs.xcale.app/mcp/tools/activation) takes that digest. If the account changed since the quote, the refusal carries the current one.

[`switch_off_agent`](https://docs.xcale.app/mcp/tools/activation) switches an agent off: it stops answering on its channels, which stay mute until it is switched on again. By default the agent keeps its WhatsApp number.

## What an agent carries

* **Skills.** [`attach_skill`](https://docs.xcale.app/mcp/tools/agents) adds a skill of the account to an agent, and [`detach_skill`](https://docs.xcale.app/mcp/tools/agents) removes it. The skill stays in the account. Skills are managed with the [skills tools](https://docs.xcale.app/mcp/tools/skills.md).
* **Documents.** [`pin_document`](https://docs.xcale.app/mcp/tools/agents) puts a document of the account in front of one agent in every conversation. [`unpin_document`](https://docs.xcale.app/mcp/tools/agents) takes it off. The [knowledge tools](https://docs.xcale.app/mcp/tools/knowledge.md) manage the documents themselves.
* **Configuration.** [`update_agent`](https://docs.xcale.app/mcp/tools/agents) changes only the fields you send. Sending `rules` or `tools` replaces the whole list.

## Deleting

[`delete_agent`](https://docs.xcale.app/mcp/tools/agents) takes two calls: the first says what would be lost and returns a `confirmationToken`, and the second, with the token, deletes. See [Access](https://docs.xcale.app/mcp/access.md).


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