Skip to main content
Glama

Set a channel's AI level

colliedesk_channel_ai_set
Idempotent

Set what one AI feature (triage, draft, intake) does by itself on a channel or one of its scopes: off, suggest, auto, or null to follow the channel and the workspace. Drafts go up to suggest (AI never sends); intake exists only on a chat channel's scopes (intake_not_supported otherwise) and takes options. A level only decides the AI's own work; people can still ask by hand while the workspace has the feature on. A change that lets AI do more by itself (a higher level, a lower threshold, a source turned on, other instructions) acts on customers without a person: say so to the person you work for first.

Needs: ai_settings:update.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "channel_id": "<channel_id>",
      "slot": "<slot>",
      "scope": "<scope>",
      "level": "<level>"
    },
    "name": "colliedesk_channel_ai_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
slotYes
levelYes
scopeYes'' for the whole channel, or one of its type's scopes (a chat's direct, group): colliedesk_channel_ai_get lists them.
optionsNoIntake only; a field left out keeps its default.
channel_idYesFrom colliedesk_channels_list.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / description
      Added value: +"Same shape as colliedesk_channel_ai_get's output."
    • removedOutput schema / properties
      Removed value: -{
      -  "channel_ai": {
      -    "properties": {
      -      "channel_id": {
      -        "type": "string"
      -      },
      -      "scopes": {
      -        "items": {
      -          "properties": {
      -            "scope": {
      -              "type": "string"
      -            },
      -            "slots": {
      -              "items": {
      -                "properties": {
      -                  "effective_level": {
      -                    "enum": [
      -                      "off",
      -                      "suggest",
      -                      "auto"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  "level": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "off",
      -                          "suggest",
      -                          "auto"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ],
      -                    "description": "This scope's own level; null follows the channel, then the workspace."
      -                  },
      -                  "off_reason": {
      -                    "description": "workspace_off: the workspace has not turned the feature on, so nothing runs.",
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "options": {
      -                    "type": [
      -                      "object",
      -                      "null"
      -                    ]
      -                  },
      -                  "slot": {
      -                    "enum": [
      -                      "triage",
      -                      "draft",
      -                      "chat",
      -                      "intake"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  "source": {
      -                    "enum": [
      -                      "scope",
      -                      "channel",
      -                      "workspace"
      -                    ],
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "slot",
      -                  "level",
      -                  "effective_level",
      -                  "source",
      -                  "off_reason"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "scope",
      -            "slots"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "channel_id",
      -      "scopes"
      -    ],
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "channel_ai"
      -]
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (write, idempotent, non-destructive), the description adds real behavioral context: a level governs only the AI's own work while people can still reply by hand, intake emits a specific error outside chat scopes, and any change that increases AI autonomy acts on customers without a human, so the agent should first tell the person it works for. It also names the authorization scope required. Nothing here contradicts the declared hints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core set-and-values statement is front-loaded, and the closing escalation warning and the one-line 'Needs:' permission note are both load-bearing for a sensitive mutation. The middle sentences are dense and slightly repetitive in phrasing, but nothing is pure filler given the complexity of the options object.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation with a deeply nested, default-laden options object, the description covers the semantics an agent needs: inheritance via null, intake gating, permission requirement, and the human-consent obligation. The return value need not be explained because an output schema exists. The remaining gap is the missing 'chat' slot in the level list, which could mislead an agent reading only the prose.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 60%, and the description compensates by explaining that 'level=null' inherits from channel and workspace, that options are intake-only and that omitted fields keep defaults, and that a higher level, lower threshold, enabled source, or new instructions all count as escalation. It does not clarify the scope pattern's empty-string form (that lives only in the schema), which keeps it below a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and object: it sets what one AI feature (triage, draft, intake) does by itself on a channel or on one of that channel's scopes, with the values off/suggest/auto/null. That is far more precise than the title alone. It loses a point because the enumerated slot list omits 'chat', which is present in the schema enum, and it does not explicitly contrast itself with the read-side sibling colliedesk_channel_ai_get (only the schema points there for scope enumeration).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear conditions: level 'null' means follow the channel and the workspace, draft tops out at 'suggest' (AI never sends), and intake is rejected with intake_not_supported outside a chat channel's scopes and additionally takes options. It also discloses the required permission 'ai_settings:update'. It stops short of naming when to use this versus colliedesk_channel_ai_get or colliedesk_ai_slot_set, so no explicit alternative routing is given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources