Skip to main content
Glama

Set post-publish WeChat notifications

set_publish_notify
Idempotent

Owner only. Control the three notifications this workspace sends after publishing, all sent to WeChat through the LivePage WeChat service account (people who messaged the service account in the last 48 hours get an article card, everyone else a reminder message), only to people in the workspace and never to clients — reader subscription reminders are not governed by these three switches, see ONE page and SUBSCRIBE CODES below: auto_push sends each new live version to WeChat automatically, one personal link per person; include_me decides whether that automatic push also reaches whoever triggered the publish; unread_remind tells the author once when a page has been published for seven days without anyone opening it (once per page). Pass only the switches you want to change; the others keep their current value. With auto_push off you can still send a specific page with push_to_wechat; with it on, publishing already sends it — no need to call push_to_wechat as well (each person gets a version once; repeat calls are deduplicated automatically). People who have not followed the service account cannot receive these: the switch being on does not mean delivery — the receipt from push_to_wechat is what tells you. When YOU have no WeChat binding or have not followed the service account, the receipt includes a binding QR code (an image plus bind_qr_image_url): the user scans it in WeChat, which follows the service account and links that WeChat to the current account in one step. Never tell the user to “sign in by scanning in WeChat” — that creates a separate account. Calling it with no arguments only reports the current state and hands out the code when needed; when the user says they have scanned, call it again to confirm. For ONE page only, also pass proposal_id: auto_push then sets that page (true = notify for this page even when the workspace is off; false = do not notify for this page, neither people nor subscribers; null = follow the workspace again); proposal_id alone reports whether the page is notified. include_me and unread_remind are workspace-wide and cannot be combined with proposal_id. For a single small edit, leave the switches alone and pass quiet: true to publish_file / finalize_upload / publish_version. SUBSCRIBE CODES (for clients, managers or family — not workspace members): whenever proposal_id is passed, the result also carries that page’s subscribe code (an image plus subscribe_code.qr_image_url). One WeChat scan follows the service account and subscribes that person to the page, so new versions reach them as WeChat reminders. The default code is the same one as in the publish receipt; for a code with a note for one person add subscribe_code_label (such as “for Mr. Wang”; the same label returns the same code). Passing proposal_id + subscribe_code_label without auto_push only issues the code, without reading or changing switches, and needs editor rather than owner. Pages that are private, suspended or published without signing in get no code, and the result says why. SUBSCRIBER LIST (who subscribed to the page, shown by get_engagement_summary as one line per person with a row number, grouped by source code): revoke_subscribe_code (a code_id) revokes a code — scanning it no longer subscribes anyone, and everyone who subscribed through it is unsubscribed; remove_subscriber (a row number) removes one person. Both need proposal_id and editor rather than owner; passing only them (without auto_push / subscribe_code_label) only edits the list and issues no code. Confirm with the user which code or row before doing either. SUBSCRIBE TO A FOLDER (for weekly or daily issues — no new code for every issue): pass folder_id (optionally with subscribe_code_label) to get that folder’s subscribe code. One scan subscribes the person to the whole folder: any page in it getting a new version, or a new page being added, sends a reminder (at most one a day per subscription); pages marked internal do not notify. folder_id cannot be combined with proposal_id or the switches; folders visible only to you get no code.

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

Input Schema

NameRequiredDescriptionDefault
auto_pushNoPush each new live version to WeChat automatically; with proposal_id it changes this page only, and null returns the page to the workspace setting
folder_idNo拿某个文件夹的订阅码时传(`list_folders` 里的 folder_id):扫了订上整个文件夹,夹里有新版本或新的一页都提醒。不能和 proposal_id / 开关一起传
include_meNo自动推送也发给触发发布的那个人本人
proposal_idNo只管这一页时传(`list_proposals` 里的 proposal_id):看 / 改这一页的提醒,并附上这一页的订阅码;不传 = 改整个工作区
unread_remindNo发布七天没人打开时提醒作者一次
remove_subscriberNoRemove one person from the subscriber list (row number, from the subscriber list in get_engagement_summary); future updates of this page will not remind them. Requires proposal_id; confirm with the user first
subscribe_code_labelNo订阅码的备注(≤ 20 字,如「给王总」),只有作者自己看得到;不传 = 这一页的默认码。需要同时传 proposal_id
revoke_subscribe_codeNoRevoke one of this page’s subscribe codes (code_id, from the subscriber list in get_engagement_summary): scanning it no longer subscribes anyone, and everyone who subscribed through it is unsubscribed. Requires proposal_id; confirm with the user first

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / show_update_note
      Removed value: -{
      -  "description": "从更新提醒点进这一页时,顶部出不出「本次更新」横条(+「看改了哪」)。默认关 = 直接看最新版;true = 打开,false = 关回去。需要同时传 proposal_id",
      -  "type": "boolean"
      -}
  2. Changed1 schema field changed
    • addedInput schema / properties / show_update_note
      Added value: +{
      +  "description": "从更新提醒点进这一页时,顶部出不出「本次更新」横条(+「看改了哪」)。默认关 = 直接看最新版;true = 打开,false = 关回去。需要同时传 proposal_id",
      +  "type": "boolean"
      +}
  3. Changed8 schema fields changed
    • addedInput schema / properties / auto_push / anyOf
      Added value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / auto_push / description
      Previous value: -"有新版本发布时自动推到微信"New value: +"Push each new live version to WeChat automatically; with proposal_id it changes this page only, and null returns the page to the workspace setting"
    • removedInput schema / properties / auto_push / type
      Removed value: -"boolean"
    • addedInput schema / properties / folder_id
      Added value: +{
      +  "description": "拿某个文件夹的订阅码时传(`list_folders` 里的 folder_id):扫了订上整个文件夹,夹里有新版本或新的一页都提醒。不能和 proposal_id / 开关一起传",
      +  "maxLength": 26,
      +  "minLength": 26,
      +  "type": "string"
      +}
    • addedInput schema / properties / proposal_id
      Added value: +{
      +  "description": "只管这一页时传(`list_proposals` 里的 proposal_id):看 / 改这一页的提醒,并附上这一页的订阅码;不传 = 改整个工作区",
      +  "maxLength": 26,
      +  "minLength": 26,
      +  "type": "string"
      +}
    • addedInput schema / properties / remove_subscriber
      Added value: +{
      +  "description": "Remove one person from the subscriber list (row number, from the subscriber list in get_engagement_summary); future updates of this page will not remind them. Requires proposal_id; confirm with the user first",
      +  "maxLength": 16,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / revoke_subscribe_code
      Added value: +{
      +  "description": "Revoke one of this page’s subscribe codes (code_id, from the subscriber list in get_engagement_summary): scanning it no longer subscribes anyone, and everyone who subscribed through it is unsubscribed. Requires proposal_id; confirm with the user first",
      +  "maxLength": 40,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / subscribe_code_label
      Added value: +{
      +  "description": "订阅码的备注(≤ 20 字,如「给王总」),只有作者自己看得到;不传 = 这一页的默认码。需要同时传 proposal_id",
      +  "maxLength": 40,
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations: owner-only gating, 48-hour messaging window, workspace-only/never-clients scope, dedup of repeated pushes, the caveat that a switch being on does not guarantee delivery, the binding QR returned in the receipt, and explicit permission downgrades (editor instead of owner) for code/subscriber operations. It also warns against instructing users to 'sign in by scanning in WeChat'. One tension: it describes revoking a code as unsubscribing everyone who used it, while destructiveHint=false — the effects are disclosed rather than contradicted, but the annotation understates mutation severity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is largely load-bearing, but it is delivered as one dense block with inline ALL-CAPS headers rather than scannable sections, and key routing facts (don't also call push_to_wechat, quiet:true alternative) sit mid-paragraph. Some repetition exists between the description and the schema descriptions for proposal_id/auto_push. It is front-loaded with the 'Owner only' constraint, which is the right lead.

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 8-parameter, zero-required, multi-mode tool with no output schema, the definition covers all modes (workspace switches, per-page, code issuance, subscriber list edits, folder codes), permissions, failure explanations, and return artifacts such as the QR images and code URLs. An agent could pick the correct call shape and warn the user appropriately without further information.

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 coverage is already 100%, so the baseline would be 3, but the description adds real meaning: proposal_id true/false/null semantics for a single page vs workspace fallback, proposal_id alone reports state, proposal_id + subscribe_code_label issues a code without touching switches, and partial-update semantics ('pass only the switches you want to change'). It also documents edge behavior the schema cannot, such as private/suspended/un-signed pages receiving no code and internal folder pages not notifying.

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 opening states a specific action and resource: control the three switch notifications this workspace sends after publishing, delivered to WeChat. It also distinguishes itself from siblings (push_to_wechat, publish_file with quiet:true, get_engagement_summary). However, the description then expands into three additional capabilities — issuing subscribe codes, revoking codes/removing subscribers, and folder-level codes — so the stated purpose covers only part of what the tool actually does and the title undersells it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing is given throughout: don't call push_to_wechat as well when auto_push is on, use quiet:true on publish_file/finalize_upload/publish_version for a small edit, call with no arguments to only report state, call again after the user says they scanned. It also states required permission levels (owner vs editor) per operation and instructs to confirm which code or row before revoking or removing. Exclusions and mutual-exclusion constraints (include_me/unread_remind cannot combine with proposal_id; folder_id cannot combine with proposal_id or switches) are spelled out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources