create-tool
Installation
SKILL.md
create-tool
A tool (function) lets the agent act during a session — query an order, book an appointment, log an event. You create a tool once with POST /public/functions, then attach its ID to an agent's functions array ([[create-agent]]). Tools are reusable across agents.
If the capability already exists as an MCP server — a vendor's server, or Gmail/Calendar/Drive-style access — attach it with [[add-mcp-servers]] instead. You define no schema and execute no calls. (MCP needs a Realtime API key — not Cascade — and doesn't run on VoIP or SIP.)
Execution flow — choose one per tool
| Flow | Where the call is delivered | Use when |
|---|---|---|
implicit |
To the connected client (the Web SDK in the browser, or your WebSocket client). Your client runs the logic and returns the result. | The action lives client-side — update the UI, read local state. |
explicit |
To a url you specify (HTTP or WebSocket on your server). |
The action needs your backend — a database, an internal API, a third-party system. |
You can mix both in one session.
Create a tool
Explicit (server-side) example: