Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WECHAT_APP_IDYes公众号 AppID
WECHAT_APP_SECRETYes公众号 AppSecret
WECHAT_API_BASE_URLNo微信 API 基础 URL。若本机 IP 不固定,可指向一台已加入白名单的反向代理https://api.weixin.qq.com

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
wechat_upload_article_imageA

上传文章正文内使用的图片(仅 jpg/png,≤1MB),返回可直接写入 的微信图片 URL。不占用素材库数量限制。

wechat_upload_image_materialA

上传永久图片素材到素材库,返回 media_id(可作为草稿封面 thumb_media_id)和 url。type=image 支持 bmp/png/jpeg/jpg/gif(≤10MB);type=thumb 仅 jpg(≤64KB)。

wechat_create_draftA

新建图文草稿(可包含多篇文章),返回草稿 media_id。支持 Markdown 正文;默认会把正文中的本地/外链图片自动上传到微信并替换链接;封面可传已有 thumb_media_id 或图片来源 thumb_image。

wechat_update_draftA

整体替换草稿中指定位置(index,从 0 开始)的一篇文章。参数与新建草稿中的单篇文章一致。

wechat_get_draftB

获取草稿详情(包含每篇文章的标题、正文、封面、预览链接等)。

wechat_list_draftsA

分页获取草稿列表,按更新时间倒序。默认不返回正文内容以节省篇幅。

wechat_count_draftsC

获取草稿总数。

wechat_delete_draftA

删除指定草稿。此操作不可撤销。

wechat_list_materialsC

分页获取永久素材列表。

wechat_count_materialsB

获取各类型永久素材的数量。

wechat_delete_materialA

删除指定永久素材。此操作不可撤销,使用该素材的草稿封面可能失效。

wechat_publish_draftA

将草稿提交发布(发布后内容对外可见,且不会推送给粉丝/不占群发次数)。发布是异步的,返回 publish_id,请用 wechat_get_publish_status 查询结果。仅在用户明确要求发布时调用。

wechat_get_publish_statusB

根据 publish_id 查询发布状态;成功时返回 article_id 与文章链接。

wechat_list_publishedB

分页获取已成功发布的文章列表。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 14 tools

Disambiguation4/5

Most tools target a distinct resource+action pair, but two upload tools (wechat_upload_article_image vs wechat_upload_image_material) could be momentarily confused, though their descriptions clearly separate inline images from permanent materials. The near-trivial wechat_count_materials and wechat_count_drafts are distinguishable but add slight noise to the draft/material distinction.

Naming Consistency5/5

All 14 tools follow a uniform wechat_<verb>_<noun> snake_case pattern (create/get/list/update/delete/publish/count). Minor variation in noun ordering between the two upload tools does not break predictability.

Tool Count5/5

14 tools is well within a healthy range for a WeChat MP publishing workflow and each maps to a real operation. Nothing feels padded beyond the two optional count helpers.

Completeness4/5

Draft lifecycle is fully covered (create/update/get/list/delete/count plus publish and status polling) and materials have upload/list/count/delete. Gaps are minor: no get-material-by-media_id and no update of an existing material, which agents can work around by re-uploading.

Maintenance

ActivityMaintained
ResponsivenessNo issues