Skip to main content
Glama

channels_move_chat

↪️ Move ONE chat (a DM or a group) of a channel this workspace owns into another workspace, for example a client's chat into that client's own workspace, where its agents answer it.

The chat's history goes with it; replies still go out through this workspace's account. The other workspace sees the chat in a channel named relay_name (default: this account's name). This workspace keeps seeing the chat and can still write into it. Queued work on the chat (drafts, reminders, agent jobs) is cancelled and listed in the answer. Calls stay here.

By default the other party of a DM is pinned to that workspace: their NEW chats with this channel are created there. A group pins nobody unless named in pin. Chats they already have stay; the answer lists them. Needs owner or admin in both workspaces. Undo with channels.unmove_chat; rename the channel later with channels.rename_relay.

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": {
      "thread_id": "<thread_id>",
      "target_workspace_id": "<target_workspace_id>"
    },
    "name": "channels_move_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
pinNoPeople whose NEW chats follow it, by their DM's channel_ref on this account, e.g. ['telegram:123456']. OMIT for the default (the other party of a DM, nobody for a group); [] pins nobody.
thread_idYesThe chat to move (thread_id from search.threads or the inbox).
relay_nameNoThe channel's name as that workspace sees it, e.g. 'Team assistant'. OMIT to keep the current one (default: this account's name).
in_workspaceNoRun this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.
target_workspace_idYesThe workspace to move it to (workspace.list).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations by disclosing that history moves with the chat, that replies still go out through this workspace's account, that both workspaces continue to see and write into it, and that queued work (drafts, reminders, agent jobs) is cancelled and reported. The pinning semantics — DM partner pinned by default, groups pin nobody unless named — are behavior an agent could not infer from destructiveHint=false/idempotentHint=false.

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 the effect, then grouped into short thematic sentences (visibility, queued work, pinning, permissions, follow-ups). Dense but nearly every clause carries distinct information; the paragraphing could be tightened slightly but nothing is padding.

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 mutation tool with no output schema, the description covers the state transition, side effects on queued work, cross-workspace visibility, permission requirements, default pinning, and the undo path. An agent has enough to call it correctly and set expectations for the response without further schema reading.

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 the baseline is 3, but the description adds real meaning about `pin` (whose NEW chats follow, and that existing chats stay) and about `relay_name` defaulting to this account's name as the other workspace sees it. `thread_id` and `in_workspace` are left entirely to the schema, which is acceptable given the schema describes them.

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 and resource ('Move ONE chat ... into another workspace') plus the scope constraint that the channel must be owned by this workspace. The 'ONE chat (a DM or a group)' phrasing separates it from a bulk/message-level move such as messages_move without needing the sibling schema.

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 a concrete when-to-use scenario ('a client's chat into that client's own workspace, where its agents answer it'), a prerequisite ('Needs owner or admin in both workspaces'), and names the complementary tools channels.unmove_chat and channels.rename_relay. It never states when an agent should prefer messages_move or a different tool instead, so it stops short of full routing guidance.

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