This documents the v1 product. It is kept for integrations already running
on it. If you are building something new, start with the
Quickstart.
_id in the assistant’s agent.tools.
API tools are a v1 capability. v2 has no equivalent yet.
Create a tool
201 Created
Parameters
type is string, number, boolean, object or array. Nested objects use
properties and their own required list; arrays use items. A property with
a fixed value is sent as-is rather than being asked of the model.
Writing tool descriptions
Thedescription is a prompt, not documentation. The model reads it to decide
whether to call the tool, mid-conversation, under latency pressure.
- Say when, not what. “Use this whenever the customer asks where their order is” beats “Returns order status.”
- Name the trigger phrases your customers actually use.
- Describe each parameter in the same terms.
orderId— “the order identifier, e.g. ORD-12345” — tells the model what shape to extract. - Keep the endpoint fast. A tool call happens between turns; a slow endpoint is dead air on a live phone call. Budget a few hundred milliseconds.
List tools
data.
Update a tool
isActive: false is the safe way to take a tool out of service — assistants
stop calling it without you having to edit each one.
Delete a tool
200 OK
_id from every assistant’s agent.tools first.