> ## 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.

# Agentes

> Referencia de las herramientas de Agentes del MCP de xcale: qué hace cada una, si cambia algo y qué necesita.

*Generada del código que corre en producción — no editar. Los nombres, títulos y descripciones de las herramientas están en inglés en todos los idiomas.*

## `list_agents`

**List the agents**

List the AI agents of this account: name, whether each one is on, its WhatsApp number, how many skills and tools it has. Filter by status and page through them. Use get\_agent to read one in full.

Solo lectura · Idempotente: Sí

**Entradas**

| Nombre | Tipo | Obligatoria | Descripción |
| - | - | - | - |
| `status` | string | No | Una de: active, switched\_off, all |
| `page` | integer | No | |
| `limit` | integer | No | |

## `get_agent`

**Get an agent**

Read one agent in full: its instructions, rules, skills and tools, what it is connected to, which documents it actually reads, its vertical and the verticals this account can choose. Use it before changing an agent. A null recentChanges means the history could not be read now; it says nothing about whether the agent changed.

Solo lectura · Idempotente: Sí

**Entradas**

| Nombre | Tipo | Obligatoria | Descripción |
| - | - | - | - |
| `agentId` | string | Sí | |

## `list_agent_templates`

**List the agent templates**

List the ready-made agent templates this account can install: what each one is for, its category and the integrations it needs. Filter by category and page through them.

Solo lectura · Idempotente: Sí

**Entradas**

| Nombre | Tipo | Obligatoria | Descripción |
| - | - | - | - |
| `category` | string | No | |
| `page` | integer | No | |
| `limit` | integer | No | |

## `create_agent_from_template`

**Create an agent from a template**

Install one of the templates list\_agent\_templates returns as a new agent of this account, switched off, optionally under another name. The result says what the agent still needs to work, such as a connection.

Escritura · Idempotente: No

**Entradas**

| Nombre | Tipo | Obligatoria | Descripción |
| - | - | - | - |
| `templateId` | string | Sí | |
| `name` | string | No | |

## `create_agent`

**Create an agent**

Create a new AI agent in this account, switched off. Its vertical and its linkedConnections are set afterwards with update\_agent.

Escritura · Idempotente: No

**Entradas**

| Nombre | Tipo | Obligatoria | Descripción |
| - | - | - | - |
| `name` | string | Sí | |
| `description` | string | No | |
| `systemPrompt` | string | No | |
| `rules` | string\[] | No | |
| `skillIds` | string\[] | No | |
| `tools` | string\[] | No | |
| `linkedWhatsAppPhoneNumber` | string | No | |
| `timezone` | string | No | |
| `language` | string | No | |
| `icon` | string | No | |

## `update_agent`

**Update an agent**

Change an agent's configuration: send only the fields to change. rules replaces the whole list, and tools the whole set. A get\_agent result marked truncated does not hold the whole prompt or the whole rule list, so saving back what it returned loses the text it left out. vertical is one of get\_agent's availableVerticals, or null for automatic resolution. A number another agent holds is moved with reassign\_whatsapp\_number.

Escritura · Idempotente: Sí

**Entradas**

| Nombre | Tipo | Obligatoria | Descripción |
| - | - | - | - |
| `agentId` | string | Sí | |
| `name` | string | No | |
| `description` | string | No | |
| `icon` | string | No | |
| `systemPrompt` | string | No | |
| `rules` | string\[] | No | |
| `tools` | string\[] | No | |
| `linkedConnections` | object | No | |
| `linkedWhatsAppPhoneNumber` | string \| null | No | |
| `timezone` | string | No | |
| `language` | string | No | |
| `vertical` | string \| null | No | |

Entradas anidadas, como JSON Schema:

```json theme={null}
{
  "linkedConnections": {
    "type": "object",
    "additionalProperties": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
```

## `attach_skill`

**Give an agent a skill**

Add one skill of this account to an agent, keeping the skills it already has.

Escritura · Idempotente: Sí

**Entradas**

| Nombre | Tipo | Obligatoria | Descripción |
| - | - | - | - |
| `agentId` | string | Sí | |
| `skillId` | string | Sí | |

## `detach_skill`

**Take a skill off an agent**

Remove one skill from an agent, keeping the others. The skill stays in the account.

Escritura · Idempotente: Sí

**Entradas**

| Nombre | Tipo | Obligatoria | Descripción |
| - | - | - | - |
| `agentId` | string | Sí | |
| `skillId` | string | Sí | |

## `pin_document`

**Pin a document on an agent**

Pin a document of this account on one agent, so that agent has it always in view: it reads it in every conversation, up to a length the result reports when a document passes it. An agent with the knowledge tools can already find and open any document without a pin. Pinning also starts the agent reading any document it held as knowledge without a pin; the result names them.

Escritura · Idempotente: Sí

**Entradas**

| Nombre | Tipo | Obligatoria | Descripción |
| - | - | - | - |
| `agentId` | string | Sí | |
| `documentId` | string | Sí | |

## `unpin_document`

**Unpin a document from an agent**

Take a document off one agent, wherever the agent holds it, pinned or assigned in the dashboard. The document stays in the account, and a skill of the agent may still bring it; the result says so.

Escritura · Idempotente: Sí

**Entradas**

| Nombre | Tipo | Obligatoria | Descripción |
| - | - | - | - |
| `agentId` | string | Sí | |
| `documentId` | string | Sí | |

## `reassign_whatsapp_number`

**Move a WhatsApp number to another agent**

Move a WhatsApp number from the agent of this account that holds it to another agent; the holder stops receiving its messages, and a target that answers on another line stops answering there. phoneNumber is a number from list\_whatsapp\_numbers, by its phoneNumber or its phoneNumberId, or the whatsAppNumber of get\_agent. Call once to get what is lost and a confirmationToken; call again with the token to move it. Nothing moves when no other agent holds the number (update\_agent links it), when the target already has it, or when the holder's link is not an active line of this account; the answer says which.

Escritura · Idempotente: No · confirmación en dos pasos

**Entradas**

| Nombre | Tipo | Obligatoria | Descripción |
| - | - | - | - |
| `agentId` | string | Sí | |
| `phoneNumber` | string | Sí | |
| `confirmationToken` | string | No | |

## `delete_agent`

**Delete an agent**

Delete an agent. Call once to get what would be lost and a confirmationToken; call again with the token to delete.

Escritura · Idempotente: No · confirmación en dos pasos

**Entradas**

| Nombre | Tipo | Obligatoria | Descripción |
| - | - | - | - |
| `agentId` | string | Sí | |
| `confirmationToken` | string | No | |


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