Skip to main content
Glama
weixin-grokbot-adapter

weixin-grokbot-adapter

by ma-pony

weixin_send

Send a plain text message to a Weixin user via the ilink bot API, defaulting to the last inbound peer and attaching a cached context token when available.

Instructions

Send a text message to a Weixin user via ilink/bot/sendmessage. Defaults to the last inbound peer. A cached context_token is attached when available.

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": {
      "text": "<text>"
    },
    "name": "weixin_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoRecipient id, usually from an inbound From field (id@im.wechat).
textYesPlain text to send.
context_tokenNoOverride the cached context_token.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/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 disclose two real behaviors: recipient defaulting to the last inbound peer and automatic attachment of a cached context_token. It says nothing about permissions/auth, rate limits, delivery guarantees, failure modes, or what a successful send returns — significant gaps for a mutation tool with zero annotation coverage.

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?

Three short sentences, front-loaded with the action and recipient, with default behavior following. The internal endpoint path "ilink/bot/sendmessage" is borderline noise for an agent deciding how to call the tool, but everything else earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple three-parameter send tool with no output schema, the description covers the recipient and token mechanics adequately. It does not describe the return value (e.g., a message id) or error conditions, which an agent may need in order to confirm delivery or handle failure.

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 meaning beyond the schema by explaining what happens when `to` is omitted (falls back to the last inbound peer) and when `context_token` is omitted (cached token is used automatically). The schema only says "Override the cached context_token," so the default-path behavior is genuinely new information.

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?

"Send a text message to a Weixin user" gives a specific verb and resource, and the word "text" implicitly separates it from weixin_send_media. It stops short of explicitly naming any sibling or contrasting behavior, so the differentiation is inferential rather than stated.

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?

"Defaults to the last inbound peer" tells the agent that omitting `to` is a reply-to-last-sender scenario, which is useful implied guidance. However, there is no explicit statement of when to use this versus weixin_send_media, weixin_poll, or weixin_typing, and no prerequisites or exclusions are given.

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