Skip to main content
Glama
weixin-grokbot-adapter

weixin-grokbot-adapter

by ma-pony

weixin_send_media

Uploads a local file or HTTP(S) URL to the Weixin CDN and sends it as an image, video, or file attachment, with an optional caption sent first.

Instructions

Upload a local file (or an http(s) URL) to the Weixin CDN and send it as an image, video, or file attachment. Optional caption is sent as a separate text message first. Requires a prior CLI login.

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": "weixin_send_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoRecipient id, usually id@im.wechat. Defaults to the last inbound peer.
urlNohttp(s) URL to download and then upload. Ignored if path is set.
pathNoAbsolute or relative path of a local file on this machine.
typeNoOverride automatic type detection from the file extension or bytes.
captionNoOptional text sent as a separate message before the media.
context_tokenNoOverride the cached context_token.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.8/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 disclose two non-obvious traits: the auth prerequisite (prior CLI login) and message ordering (caption is sent as a separate text message first, so the recipient receives two messages). It omits failure/partial-failure behavior and size limits, which matters for an external-side-effect tool.

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?

Three sentences, zero filler: capability first, then the caption side effect, then the auth prerequisite. Front-loaded and each sentence carries distinct information an agent needs.

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?

For a six-parameter all-optional tool with no output schema, the description covers the workflow (fetch-or-read then upload then send), the prerequisite, and the caption side effect. It does not say what is returned or what happens if the upload succeeds but the send fails, which is the main remaining gap.

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

Parameters3/5

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

Schema coverage is 100%, so all six parameters including the enum, default recipient, and url/path precedence are already documented in structured form. The description adds only the caption-ordering meaning, which is a modest supplement to an already complete schema.

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?

States a specific verb chain and resource: upload a local file or URL to the Weixin CDN and send it as image/video/file attachment. The media-sending scope implicitly separates it from weixin_send, but the description never names a sibling or explicitly contrasts text-only sending, so differentiation is left to inference.

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 media-sending purpose and reinforced by a stated prerequisite ('Requires a prior CLI login'), but there is no explicit when-to-use vs when-not guidance and no direction toward weixin_send for plain text. An agent can guess the context but must infer it.

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