Skip to main content
Glama

发送消息(通用)

send_msg

Send private or group messages by specifying message_type, target ID, and content as plain text or message segments.

Instructions

通用发送消息。需通过 message_type 指定 private/group,再提供对应的 user_id 或 group_id。message 可为纯文本或消息段数组。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYes消息内容:纯文本或消息段数组
user_idNo私聊目标QQ号
group_idNo群聊目标群号
auto_escapeNo是否作为纯文本发送
message_typeYes消息类型

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior2/5

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

Annotations already indicate this is not read-only, not idempotent, and not destructive, but the description adds little behavioral context beyond that. It does not mention delivery semantics, authorization requirements, rate limits, or whether the message is actually dispatched immediately, so an agent gets minimal insight into side effects beyond the word 'send'.

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?

Two short sentences contain only essential information: the tool's generic purpose, the type/id pairing rule, and the message format options. There is no repetition, filler, or unnecessary detail.

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 what an agent needs to construct a valid call: required message_type and message, plus the conditional ID choice. It does not explain the return value, but no output schema exists, and it could be stronger by pointing to sibling tools for dedicated private/group sending.

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. The description adds valuable cross-parameter semantics by explaining that message_type selects between user_id and group_id, and by clarifying that message can be plain text or a segment array. This relationship is not fully explicit in the schema alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a clear action ('send message') and explicitly scopes it as a generic/universal sender that handles both private and group targets. It is clear, though it does not name or differentiate itself from the dedicated siblings send_private_msg and send_group_msg.

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?

The description gives clear operational guidance: choose message_type and provide the matching user_id or group_id. However, it offers no guidance about when to prefer this generic send_msg over the dedicated send_private_msg or send_group_msg siblings, and no exclusions are stated.

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