Skip to main content
Glama

mp_publish_draft

Publish or schedule an existing WeChat draft by its integer draft id, with human approval and confirm=true required. Submits the draft editor, then polls 发表记录 until a new msgid verifies visibility.

Instructions

Publish or schedule an existing draft. IRREVERSIBLE and publicly visible: requires confirm=true, and the human must have approved this exact draft id. Opens the draft in the composer, presses 发表, waits for the confirmation dialog (发表贴图无需开启群发通知 / 定时发表) and presses its 发表 button. action=publish submits now, action=schedule turns on 定时发表 and submits for now+schedule_minutes. After submitting, the console shows a 扫码 page that the admin must scan with WeChat; the item then lands in 发表记录 about two minutes later. verified=true only when a NEW msgid appears in that list, so wait_publish_s controls how long the call polls for it. Limits: appmsgid must be the integer id from mp_list_drafts / mp_publish_material, not the title; kind selects which console tab is used; publishing and deleting need confirm=true and are refused with -32602 before anything is opened.

【中文】发布或定时发布一条已有草稿。不可撤销且公开可见:需要 confirm=true,并且必须由人确认过这个具体的 draft id。它会打开草稿编辑器、点发表、等确认弹窗(发表贴图无需开启群发通知 / 定时发表)再点弹窗里的发表按钮。action=publish 立即提交;action=schedule 打开定时发表,提交到 schedule_minutes 分钟之后。提交后控制台会出现扫码页,必须由管理员用微信扫,约 2 分钟后内容才落到发表记录。只有发表记录里出现「新」msgid 时 verified=true,wait_publish_s 控制轮询多久。硬性要求:appmsgid 必须是 mp_list_drafts / mp_publish_material 返回的整数 id,不是标题;kind 决定用哪个后台标签页;发表和删除都需要 confirm=true,否则在打开任何页面之前就返回 -32602。

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": {
      "appmsgid": "<appmsgid>"
    },
    "name": "mp_publish_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNowhich console tab the draft is opened in; pass the same kind mp_list_drafts reported / 草稿在哪个后台标签页打开;传 mp_list_drafts 报出来的那个 kindtietu
actionNopublish submits now; schedule uses 定时发表 / publish 立即提交;schedule 走定时发表publish
confirmNomust be true, otherwise the call is refused with -32602 before the browser opens; publishing cannot be undone / 必须为 true,否则在打开浏览器之前就返回 -32602;发表不可撤销
appmsgidYesrequired, integer draft id from mp_list_drafts / mp_publish_material (for example 100000250), not the title and not a string / 必填,整数草稿 id,来自 mp_list_drafts / mp_publish_material(例如 100000250),不是标题、不要传字符串
screenshotNosave a full-page PNG after the submit / 提交之后存一张整页 PNG
wait_publish_sNo0-900 seconds to poll 发表记录 for the new msgid; 0 returns verified=false at once / 轮询发表记录等新 msgid 的秒数,取值 0–900;0 表示立刻返回 verified=false
schedule_minutesNoaction=schedule only, 1-10080 minutes from now; the console picker only offers today, so a value past midnight cannot be honoured — keep it within the same day / 仅 action=schedule,取值 1–10080 分钟;控制台选择器只提供「今天」,超过今天 24 点的值无法兑现——请控制在当天内

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it flags irreversibility, public visibility, the console/WeChat scan handoff, the ~2 minute propagation delay, and the precise meaning of verified=true. It also discloses the -32602 refusal path and that refusal happens before any page is opened, which is exactly the kind of operational detail an agent needs.

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?

The safety-critical facts (irreversible, confirm=true, human approval) are front-loaded before the procedural detail, which is good structure. The cost is verbosity: the same content is repeated in a full Chinese paragraph, which is redundant for a machine reader but arguably intentional for a bilingual user base.

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 a seven-parameter mutation tool with side effects, the definition covers preconditions, execution flow, async verification, and failure modes. An output schema exists, yet the description still explains what verified actually signals, so nothing an agent needs before calling is missing.

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 every parameter already has its own description including the same-day limit on schedule_minutes and the enum meanings. The prose restates action, confirm, wait_publish_s and appmsgid semantics rather than adding new constraints, so the baseline 3 applies.

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

Purpose5/5

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

The first sentence gives a specific verb pair (publish/schedule) and a precise resource constraint ('existing draft'), which separates it from mp_publish_material and mp_list_drafts. It reinforces the distinction by stating appmsgid must be the integer id returned by those siblings, not a title.

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

Usage Guidelines4/5

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

It clearly routes action=publish vs action=schedule, states prerequisites (confirm=true, prior human approval of this exact draft id), and points to the sibling tools that produce the required appmsgid. It stops short of explicitly saying when to prefer mp_publish_material or mp_create_tietu instead, leaving that inference to the agent.

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