channels
Manage agent-channel registry entries: list, create, update, or soft-delete access configs across staging and prod, with filters and dry-run confirmation.
Instructions
agent_channels registry (mirrors /admin/channels*). action: list (optional kind filter — an unrecognized kind is silently ignored, same as the portal's chip filter) | get (channel_id) | create (slug, name, kind, ...) | update (channel_id + fields — same validation as create) | delete (channel_id, confirm=true — soft is_active=false; channels are referenced from traces/log analytics so this never hard-deletes).
Reads AND writes go through the env-branch client (client_for_env),
matching the portal, whose channel writes follow the env switcher
(admin_service_client) since the env-client-symmetry sweep.Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "channels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Config branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves. | staging |
| kind | No | Channel kind (public_api, embed, other, or one a plugin adds). | |
| name | No | Channel name. | |
| slug | No | Channel slug (lowercase letters/digits/_-). | |
| action | No | Operation to run: list | get | create | update | delete. The tool description lists what each action needs. | list |
| config | No | Channel config JSON. | |
| confirm | No | false (default) = dry run, nothing changes; true = execute. | |
| is_active | No | Active flag. | |
| channel_id | No | agent_channels UUID. | |
| business_id | No | Tenant channel kinds: the business the channel belongs to. | |
| description | No | Free-text description. | |
| auth_required | No | Require a user JWT. | |
| rate_limit_rpm | No | Requests per minute allowed. | |
| allowed_origins | No | Browser origins allowed to call (http(s)://host[:port]). | |
| default_profile_id | No | Profile served when the request names none. | |
| allowed_agent_kinds | No | Agents this channel may reach: an agent kind, or custom:<slug> for one generic agent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |