Skip to main content
Glama
mcp-group-chat

mcp-group-chat

join_group

Join a group chat and receive a unique member token for identity-required actions; the first member to join becomes the group owner.

Instructions

加入群组。

如果群组还没有群主,本次入群的成员会自动成为群主。返回的 token 是该成员在群内的唯一身份凭证,后续所有需要身份的操作都要传入。

Args: group_id: 群组 ID。 name: 群内昵称,长度 1 到 16 个字符;省略时由服务端自动生成。

Returns: 成员信息,包含昵称、成员 ID、token、所属群组 ID 与入群时间戳。

Raises: GroupNotFoundError: 群组不存在。 JoinNotAllowedError: 该群不允许新人加入。 InvalidFieldValueError: 昵称不合法。

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": {
      "group_id": "<group_id>"
    },
    "name": "join_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
group_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the first-joiner-becomes-owner side effect, that the returned token is a required identity credential for later calls, and three named error conditions. It stops short of stating any permission or invite requirements for joining.

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 behavior and the critical ownership rule, then organized into Args/Returns/Raises. The Returns block partially duplicates the output schema, but the structure is easy to scan and nearly every line adds information.

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?

An output schema exists so return values are already covered, yet the description still explains the token's downstream significance, which the schema cannot. Error conditions and the nickname constraint fill the remaining gaps for a two-parameter mutation tool.

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 0%, so the description must compensate, and it does: name gets a length constraint (1-16 chars) and a default-generation rule, group_id is identified as the group identifier. The group_id entry is thin beyond restating the field name.

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 ('加入群组') and immediately explains the ownership side effect, so an agent can distinguish it from create_group or get_group 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 Guidelines3/5

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

Usage is implied by the semantics of joining and by the JoinNotAllowedError disclosure, but the description never says when to prefer this over create_group, or that the group must already exist (though GroupNotFoundError hints at it). No explicit exclusions.

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