Skip to main content
Glama

Delete channel

delete_channel
Destructive

Delete a Discord channel or category with a two-step confirmation: first call previews the deletion, second call with token executes it. Categories leave channels uncategorized.

Instructions

Delete a channel or category. Safe to call directly: the first call deletes nothing and returns a preview plus a confirm_token, and the deletion only happens when the call is repeated with that token. When the user asks to delete something, call this and relay the preview for their go-ahead instead of sending them to do it manually in Discord; the gate exists exactly so deletion can be approved through the conversation. Deleting a category leaves its channels in place, uncategorized.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelYesChannel or category name or ID.
guildNoGuild (server) name or ID. Omit to use the default guild.
reasonNo
dry_runNo
confirm_tokenNo
Behavior5/5

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

The description fully explains the non-destructive first call and the confirm_token mechanism, adding behavioral context beyond the annotations (readOnlyHint=false, destructiveHint=true). No contradiction.

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?

Four sentences front-loaded with purpose. It is reasonably concise, though some minor redundancy could be trimmed. Overall effective.

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?

The description covers the deletion behavior, safety mechanism, and category effect. It lacks details on the preview return format, but given no output schema, it provides sufficient context for an agent to use the tool correctly.

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?

The description adds meaning to dry_run and confirm_token by explaining their role in the two-step process. However, it does not elaborate on channel, guild, or reason beyond their schema descriptions, leaving some gaps for a low-coverage (40%) schema.

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?

The description states 'Delete a channel or category' with a specific verb and resource, and distinguishes it from sibling tools like delete_message or delete_role by explicitly targeting channels and categories.

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

Usage Guidelines5/5

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

The description provides clear guidance: it explains the two-step dry-run/confirm pattern, instructs the agent to call this directly and relay the preview, and notes that deleting a category leaves channels uncategorized.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OrygnsCode/Omnicord'

If you have feedback or need assistance with the MCP directory API, please join our Discord server