Operations
Operations

Set tool channels

Choose where the agent is offered a tool: on calls (`["voice"]`), in chats (`["text"]`), or both (`["voice", "text"]`, the default). On a channel the tool doesn't name, it is left out of the tools the model sees, so the model cannot call it there. Use this whenever a tool only makes sense on one channel: the model can miss "only in chat" or "never on a call" written in the prompt or the tool's description, but it cannot call a tool it was never offered. Example: an agent that serves calls and website chat, whose calls already email their notes after the call, keeps take_a_message for chats only with `channels: ["text"]`, so a caller never gets a second email. A transfer that rings a person is a calls-only tool. A tool offered on no channel the agent serves never runs, and Health flags it. A pre-call or post-call function that runs the tool still runs it. Builtin and HTTP tools only. Saved on the draft, live when you publish. Identify the tool by toolName (its snake_case name) or toolId.

POST
/operations/set_tool_channels

Authorization

bearerAuth
AuthorizationBearer <token>

A personal access token from Settings > API tokens.

In: header

Header Parameters

Idempotency-Key?string

A key you choose, such as a UUID, that makes this POST safe to retry. Within 24 hours the same key and request answers with the first successful answer and runs nothing, the same key with a different request answers 422 idempotency_key_reused, and a key whose request is still running answers 409 idempotency_key_in_use. A failed request keeps nothing, so the same key runs it again.

Length1 <= length <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/operations/set_tool_channels" \  -H "Content-Type: application/json" \  -d '{    "channels": [      "voice"    ],    "agent": "string"  }'
{}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "errors": [
    {
      "path": "string",
      "message": "string"
    }
  ],
  "estimate": {},
  "retryAfterSeconds": 0
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "errors": [
    {
      "path": "string",
      "message": "string"
    }
  ],
  "estimate": {},
  "retryAfterSeconds": 0
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "errors": [
    {
      "path": "string",
      "message": "string"
    }
  ],
  "estimate": {},
  "retryAfterSeconds": 0
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "errors": [
    {
      "path": "string",
      "message": "string"
    }
  ],
  "estimate": {},
  "retryAfterSeconds": 0
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "errors": [
    {
      "path": "string",
      "message": "string"
    }
  ],
  "estimate": {},
  "retryAfterSeconds": 0
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "errors": [
    {
      "path": "string",
      "message": "string"
    }
  ],
  "estimate": {},
  "retryAfterSeconds": 0
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "errors": [
    {
      "path": "string",
      "message": "string"
    }
  ],
  "estimate": {},
  "retryAfterSeconds": 0
}

Set tool background-safe POST

Mark whether an HTTP tool is a read-only / parallel-safe lookup or a write. Identify the tool by toolName (its snake_case name) or toolId. This is the single signal the runtime and the readiness validator both key off: a `backgroundSafe: true` tool runs without holding up the conversation, and on a slow lookup the agent tells the caller it is still working rather than going quiet; the validator treats it as a harmless read. A `backgroundSafe: false` tool is treated as a write that should usually require `verify_customer` first. **Use this to clear a false 'write tool with no preconditions' warning**, if the tool only fetches data and changes nothing (a plan catalogue, a coverage check, a usage lookup), the warning is firing because the tool is wrongly marked as a write; set `backgroundSafe: true` rather than adding `requires`. Only set `false` for tools that genuinely mutate customer state.

Edit tool description POST

Update an existing tool's `description` and/or `displayName`. Identify the tool by toolName (its snake_case name) or toolId. The description is the highest-leverage prompt surface, the LLM reads it every turn. Most behaviour tweaks ('only call this after the caller has confirmed their phone', 'falls back to email if SMS fails') belong here, not in the system prompt. It also takes a connected-app tool (an app's action in lowercase, such as googlecalendar_create_event) or an MCP server's tool: the text is saved on the draft version, goes live when you publish, and the model reads it after the app's own description, so a calendar's booking rules can live on the calendar tool. get_agent returns these as connectedToolDescriptions.