Skip to main content
Glama

discord_set_channel_position

Idempotent

Sets a channel's display order among same-type channels in its category, using a zero-based position to determine where it appears.

Instructions

Set a channel's display order among the channels of its kind in its category. Text, announcement, forum and media channels sort together, voice and stage channels together, and categories among categories. A position equal to or above the number of channels in that group leaves the order unchanged. Use discord_move_channel to change which category it belongs to. Requires the Manage Channels permission. Returns a confirmation.

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>",
      "position": "<position>"
    },
    "name": "discord_set_channel_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
positionYesZero-based position among the channels of its kind in the category (0 = top).
channel_idYesID (snowflake) of the channel to reposition.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.4.0
    • changedInput schema / properties / position / description
      Previous value: -"Zero-based position within the category (0 = top)."New value: +"Zero-based position among the channels of its kind in the category (0 = top)."
  2. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed4 schema fields changedv2.0.0
    • addedInput schema / properties / channel_id / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / position / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / position / minimum
      Added value: +0
    • changedInput schema / properties / position / type
      Previous value: -"number"New value: +"integer"
  4. Changed2 schema fields changedv1.6.0
    • addedInput schema / properties / channel_id / description
      Added value: +"ID (snowflake) of the channel to reposition."
    • addedInput schema / properties / position / description
      Added value: +"Zero-based position within the category (0 = top)."
  5. Addedv1.5.0

TDQS

A4.7/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing the permission prerequisite (Manage Channels), the out-of-range no-op semantics, and that a confirmation is returned. Annotations already cover idempotency and non-destructiveness, so the remaining additions (auth requirement, edge-case behavior) are the meaningful ones; no return shape detail beyond 'confirmation'.

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

Conciseness5/5

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

Four short sentences, front-loaded with the core action, then the grouping rule, the edge case, the alternative, and the prerequisite in a logical order. No filler or redundant restatement of the name.

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 two-parameter mutation with no output schema, the description supplies everything an agent needs: what ordering means here, which channels compete for the same index, no-op behavior, required permission, sibling alternative, and a note that a confirmation is returned.

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; the description earns above baseline by explaining that 'position' is scoped to a subset — channels of the same kind within the category — which the schema's own wording only partially conveys. It does not add format details for channel_id, but none are needed given the pattern in the 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?

States a specific verb ('Set') and precise resource ('a channel's display order among the channels of its kind in its category'), and immediately clarifies the grouping model (text/announcement/forum/media vs voice/stage vs categories). An agent can distinguish this from discord_move_channel or discord_set_role_position without opening a schema.

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?

Explicitly routes the agent: 'Use discord_move_channel to change which category it belongs to,' naming the alternative and the condition that selects it. It also gives an in-tool exclusion rule — a position at or above the group size leaves the order unchanged — so the agent knows when the call is a no-op.

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

Deploy Server

Other Tools