Skip to main content
Glama
mcp-group-chat

mcp-group-chat

create_group

Create a new group chat with configurable title, join permissions, history visibility, message retention, and lifetime, returning group details for immediate joining and management.

Instructions

创建群组。

新群组默认没有群主,第一位加入的成员会自动成为群主。创建后通常 应立即调用 join_group,并妥善保存返回的 token 与成员 ID。

Args: title: 群名,最长 64 个字符。 visitor_permissions: 未入群访客凭群 ID 可见的字段,可选值为 "title" 与 "member_count"。 allow_join: 是否允许新成员加入,默认 True。 history_visible: 新成员是否可以查看入群前的历史消息,默认 False。 message_ttl: 消息保留时间,单位秒,取值范围 (0, 604800]。 announcement: 群公告,最长 1024 个字符。 lifetime: 群组无活动自动解散时间,单位秒,取值范围 (0, 604800]。 fields: 可选的额外群组字段字典,键名必须属于上述字段;与显式 参数重复时以字典中的值为准。

Returns: 创建后的群组信息。

Raises: InvalidFieldError: fields 中存在不存在的字段名。 InvalidFieldValueError: 任一字段值不合法。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoNew Group
fieldsNo
lifetimeNo
allow_joinNo
message_ttlNo
announcementNo
history_visibleNo
visitor_permissionsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so well: it discloses the non-obvious ownership semantics (no owner at creation, first joiner becomes owner), the need to save the returned token and member ID, per-field defaults and value ranges, and the two exception types raised on invalid fields or values. That is materially more than the schema or annotations convey.

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?

The description is front-loaded with the behavioral facts an agent needs before the parameter list, then structured cleanly into Args/Returns/Raises sections. It is somewhat long and restates a couple of defaults already present in the schema (allow_join, history_visible), but no sentence is filler.

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 an eight-parameter creation tool with no annotations, the definition covers behavior, defaults, constraints, error conditions, and the follow-up call to join_group. Because an output schema exists, the brief Returns line is sufficient and nothing an agent needs in order to call it correctly is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must define all eight parameters, and it does: title capped at 64 characters, visitor_permissions restricted to "title" and "member_count", allow_join and history_visible defaults, message_ttl and lifetime bounded to (0, 604800] seconds, announcement capped at 1024 characters, and the precedence rule that values in fields override explicit arguments. This adds meaning the bare schema cannot.

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 opens with a specific verb and resource ("创建群组") and immediately distinguishes this tool's scope from the sibling join_group by explaining that a newly created group has no owner and that the first joiner becomes owner. An agent can tell exactly what this tool does and how it relates to the join flow without opening the 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?

It gives explicit sequencing guidance: after creation you should usually call join_group right away and persist the returned token and member ID. That is a real when-to-use instruction tied to a named sibling. It stops short of stating when *not* to use it (e.g. joining an existing group instead of creating a new one), so it is clear context rather than full routing guidance.

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