Skip to main content
Glama

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

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging
kindNoChannel kind (public_api, embed, other, or one a plugin adds).
nameNoChannel name.
slugNoChannel slug (lowercase letters/digits/_-).
actionNoOperation to run: list | get | create | update | delete. The tool description lists what each action needs.list
configNoChannel config JSON.
confirmNofalse (default) = dry run, nothing changes; true = execute.
is_activeNoActive flag.
channel_idNoagent_channels UUID.
business_idNoTenant channel kinds: the business the channel belongs to.
descriptionNoFree-text description.
auth_requiredNoRequire a user JWT.
rate_limit_rpmNoRequests per minute allowed.
allowed_originsNoBrowser origins allowed to call (http(s)://host[:port]).
default_profile_idNoProfile served when the request names none.
allowed_agent_kindsNoAgents this channel may reach: an agent kind, or custom:<slug> for one generic agent.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses that delete is a soft delete (is_active=false) and never hard-deletes because channels are referenced by traces/log analytics, and that an unrecognized kind filter is silently ignored rather than erroring. It omits auth requirements, duplicate-slug behavior, and what update does to fields not supplied.

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

Conciseness3/5

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

The action list is front-loaded and dense in a useful way, but the closing sentence about the env-client-symmetry sweep and admin_service_client is internal engineering rationale that gives the agent little actionable value. The heavy nested-parenthetical style also slows parsing.

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 16-parameter multi-action tool with an output schema (so return values need no explanation) and full schema descriptions, this covers the operation-selection and destructive-action story adequately. Auth requirements and error conditions on create/update remain unspecified.

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 100%, so baseline is 3, and the description earns above that by tying parameters to actions and adding semantics the schema lacks — the silent-ignore behavior of the kind filter and the reason confirm=true exists (soft-delete execution). It doesn't explain the env branch's read/write implications beyond what the schema already says.

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

Purpose5/5

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

Names the concrete resource (agent_channels registry, mirroring /admin/channels*) and then enumerates every supported action with the identifier each one takes (get→channel_id, create→slug/name/kind, update→channel_id+fields, delete→channel_id+confirm). No sibling tool covers channels, so an agent can select it without ambiguity.

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 action-by-action parameter mapping tells the agent which action to pick and what each requires, and it flags that update follows the same validation as create. It stops short of explicit when-not guidance (e.g. when to use update vs create on an existing slug) or preconditions such as permissions.

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