Skip to main content
Glama

Detach a channel

detach_channel
DestructiveIdempotent

Detach a channel from an agent, ending the binding attach_channel made. The channel itself stays in the organization for other agents. The agent stops receiving the channel's events, which is the intended outcome. Detaching a channel that is not attached changes nothing. Slack detaches by removing the agent's Slack app, so for Slack this gives the step to take and detaches nothing. Requires connecting a Valet account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesRequired. The agent's name.
channelYesRequired. The name the channel is attached under, from list_channels.
org_nameNoThe Valet organization the agent belongs to. Omit to use the organization the account joined first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: explains that the channel persists for other agents (bounding the destructive scope), states the concrete effect on event delivery, confirms the unattached case is a no-op, and discloses two things annotations cannot carry — the Slack-specific detach-by-app-removal behavior and the requirement to connect a Valet account. Nothing here contradicts destructiveHint=true or idempotentHint=true.

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?

Front-loaded with the core action and effect, and most sentences carry real information (Slack caveat, auth requirement, idempotency). Minor waste in 'which is the intended outcome' and the idempotency sentence partially restating idempotentHint=true.

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

Completeness5/5

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

For a simple binding-mutation tool with no output schema and full schema coverage, the description covers the outcome, the entity-survival nuance, idempotency, auth prerequisites, and the platform-specific Slack behavior. An agent has everything needed to call it correctly and interpret the result.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters (name, channel, org_name) are already documented in the schema, including that channel is the attach-time name from list_channels. The description adds no syntax, format, or disambiguation beyond that, so the baseline 3 applies.

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?

States a specific verb (detach) and resource (channel) scoped to an agent, and explicitly names attach_channel as the binding it reverses, which separates it from detach_connector/detach_resource/detach_skill. It even clarifies that the channel entity itself survives, which preempts confusion with destroy_channel.

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?

Gives clear when-to-use context (to end an attach_channel binding so the agent stops receiving events) and names the counterpart tool, plus a no-op case for unattached channels. It does not explicitly route the agent away from the sibling detach_* tools, so it falls short of full alternative coverage.

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