Tools

Let an agent perform tasks during a conversation: look up an order, book an appointment or read a database. Find a tool in the catalog or create one using the options below, then connect it to the agent. Connecting or pausing it applies immediately, without publishing.

Four ways to create tools

TypeWhen to use itSection
Custom APIYou have your own HTTP endpoint and want the agent to call itCustom APIs
MCP serverThe service already exposes tools over MCP and you choose which to installMCP servers
DatabaseYou want the agent to run read-only queries on PostgreSQL or MySQLDatabases
Custom functionYou want to run TypeScript logic: transform data, apply business rules or call servicesCustom functions

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

Quick example

// 1. Store the credential as a secret (it never goes in the tool definition)
const secret = await platic.secrets.create({
  name: "Orders API",
  kind: "bearer",
  value: process.env.ORDERS_API_TOKEN!,
});

// 2. Create the API, test it, publish it to the catalog and connect it to the agent
const api = await platic.tools.apis.create({
  name: "order_status",
  description: "Looks up an order status by its number.",
  request: { method: "GET", url: "https://api.example-store.com/orders/{{order}}", auth: { type: "bearer" } },
  variables: [{ name: "order", type: "string", description: "Order number", required: true, mode: "ai" }],
  secrets: { "auth.token": secret.id },
});
const test = await platic.tools.apis.test(api.id, { input: { order: "1001" } });
if (test.success) {
  const { toolId } = await platic.tools.apis.enable(api.id);
  await platic.agents.tools.connect(agentId, toolId);
}

What you need to know

  • Credentials go in secrets: no API or MCP server stores tokens in its definition; if you send a credential directly it answers 400 SECRET_REFERENCE_REQUIRED with the slot where to bind the secret.
  • Being in the catalog does not connect it to the agent: publishing an API, syncing tools from an MCP server or connecting a database only adds them to the catalog. Then give them to each agent with Connect a tool.
  • Three different states: the source's (draft/enabled/paused or connected), each secret slot's (authorized/needs_authorization/missing) and the connection on the agent's (active/paused).
  • Permissions: requires Integrations (and secret permissions when managing credentials).

Where to go next