---
docId: doc_bb248f538e4047e295fdbebf1909d2ff
title: Tools
description: Connect APIs, MCP servers, databases or functions so the agent can perform actions.
---

# Tools

A **tool** lets the agent perform an action during a conversation, such as checking an order, booking an appointment or reading a database.

## Four ways to create a tool

| Kind | Use it when |
|------|-------------|
| **Custom API** | You have your own HTTP endpoint and want the agent to call it. |
| **MCP server** | A service already exposes tools over MCP and you choose which to install. |
| **Database** | You want the agent to run read-only queries on PostgreSQL or MySQL. |
| **Custom function** | You need code: SOAP or XML, chained calls, unusual signatures or your own calculations. |

The workspace catalog also includes tools from apps installed from Platica and older HTTP tools.

## How it works

```mermaid
flowchart LR
  S[Secret] --> T[Tool in the catalog]
  T -- connect --> A[Agent]
```

- **Workspace catalog.** Create the tool in the catalog and connect it to the agent that should use it.
- **Credentials are stored in secrets.** The tool links a secret instead of including the token in its definition. This keeps the credential out of the code and configuration.
- **Connecting is live.** Connecting or pausing a tool for an agent applies right away, with no new version.

Connect the tool to each agent that needs it. Creating it in the catalog doesn't assign it automatically.

## Where to go next

- [Connect an API](/guides/connect-an-api), [Connect an MCP server](/guides/connect-an-mcp-server), [Connect a database](/guides/connect-a-database) and [Custom functions](/guides/custom-functions).
- [Tools](/api-reference/tools) and [Secrets](/api-reference/secrets) in the API reference.
- [Agents, drafts and versions](/concepts/agents).
