# Custom tools: HTTP actions your agent can call

> Give an agent tools it can call on any step of a call, such as checking an order or creating a ticket: how to define one, what Ladoo sends and reads back, and the limits.

Source: https://tryladoo.com/docs/developers/custom-tools · Updated 2026-11-21

A custom tool is an HTTP action your agent can decide to call on its own during a conversation, for example "check order status" or "create a ticket". A [Webhook step](https://tryladoo.com/docs/developers/webhook-and-code-steps) runs only where the workflow puts it. A tool can be called on any conversational step, when the caller's request calls for it.

You can also manage tools in the dashboard, on the agent's **Tools** tab.

## Define a tool

Each tool has:

- **`name`**: what the model calls it. Lowercase letters, digits and underscores, such as `order_status`. Ladoo's own tool names (such as `book_appointment`) are taken.
- **`description`**: when to use it and what it returns. The model reads this, so be specific: "Look up an order's status and delivery date by its order number."
- **`parameters`**: a JSON Schema object of flat parameters. Each is a `string`, `number`, `integer` or `boolean`, with an optional `description` and `enum`. List the ones the model must always fill in under `required`.
- **`method`**, **`url`**, **`headers`** and **`body`**: the request. The URL must be https on a public host. `{{args.x}}` puts in an argument, and `{{fields.x}}`, `{{variables.x}}` and `{caller_phone}` work as they do in Webhook steps. With no `body`, the arguments are sent as the JSON body, and a `GET` sends them as the query string.
- **`timeout_ms`**: 1,000 to 10,000. The default is 5,000.
- **`say_while_waiting`**: an optional line the agent says while the request runs, such as "Let me check that."
- **`response_fields`**: the dot paths in your JSON reply the agent may read, such as `status` or `eta.date`. Nothing else in the reply reaches the agent.

```bash
curl -X POST https://api.tryladoo.com/v1/agents/$AGENT_ID/tools \
  -H "Authorization: Bearer $LADOO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "order_status",
    "description": "Look up an order'\''s status and delivery date by its order number.",
    "parameters": {
      "type": "object",
      "properties": {
        "order_number": { "type": "string", "description": "The order number the caller reads out" }
      },
      "required": ["order_number"]
    },
    "method": "POST",
    "url": "https://api.example.com/orders/status",
    "headers": [{ "name": "Authorization", "value": "Bearer sk_live_..." }],
    "say_while_waiting": "Let me look that up.",
    "response_fields": [{ "path": "status" }, { "path": "eta.date" }]
  }'
```

`GET /v1/agents/{id}/tools` lists an agent's tools. `PATCH /v1/agents/{id}/tools/{tool_id}` changes one and `DELETE` removes it. Reading needs `agents:read`. Adding, changing and deleting need `agents:write` and `webhooks:write`, because a tool sends callers' details to your server, just as a webhook endpoint does. Each change is in the audit log as `agent.updated`.

An agent can have up to 20 tools. Tools take effect from the next call.

### Which steps offer a tool

Every conversational step (Conversation, Collect and Answer questions) offers all of an agent's tools. In the workflow editor, a step can turn off **Offer all custom tools** and pick the ones it offers, or none. In the [workflow file](https://tryladoo.com/docs/developers/workflow-file-format), that's the step's `custom_tools` list of names: absent means all, `[]` means none. A step that names a tool you've since deleted carries on without it. The goodbye and transfer steps offer none.

### Header values are secret

Once saved, header values are encrypted and never returned. Responses show them as `••••••••`. To change other parts of a tool, send `••••••••` back to keep a header's value. If you change the URL, send every header value again, so a key can't be pointed at a server it wasn't meant for.

### Tools aren't versioned

Tools belong to the agent, not to a published version. [Rolling back a version](https://tryladoo.com/docs/developers/versions-and-limits) doesn't restore a tool you deleted or changed.

## What your server receives

The request comes from Ladoo with your headers and a `Ladoo-Call-Id` header. Before anything is sent, Ladoo checks the model's arguments against your parameters. An unknown parameter, a missing required one, a wrong type, a value outside the `enum` or a string over 500 characters is refused, and your server never hears about it.

Reply within the timeout with a 2xx status and a JSON body. The reply can be up to 256 KB. Ladoo reads only your `response_fields`, and gives the agent each one as text of up to 500 characters (objects and lists as JSON).

## Limits and failures

- A tool can run up to 10 times per call and 2,000 times per workspace per day.
- Requests go only to https on port 443 of a public address. Private, loopback and cloud metadata addresses are refused at connect time, and redirects aren't followed.
- A timeout, a non-2xx reply or a refused address never ends the call. The agent tells the caller it couldn't get that information and carries on.
- A tool can't override the platform's guardrails, such as the AI disclosure, booking rules and what a caller can always ask for.
- Ladoo never puts header values in prompts, transcripts or logs.
