Skip to main content
Glama

mp_delete_draft

Delete a WeChat Official Account draft by its integer appmsgid after explicit confirmation. This irreversible action removes only the draft and does not recall already published content.

Instructions

Delete a draft from the 草稿箱. IRREVERSIBLE: requires confirm=true. The console asks 确定删除? in a popover and notes that 删除该内容不会删除已发表的内容, so an already published message stays up — this server cannot recall one. Reports whether the id disappeared from the list afterwards. 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。控制台会用气泡问「确定删除?」,并提示「删除该内容不会删除已发表的内容」,所以已经发出去的内容不会因此下线——本服务也无法召回它。会回报该 id 之后是否从列表里消失。硬性要求: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_delete_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNowhich console tab the draft lives in; pass the same kind mp_list_drafts reported / 草稿在哪个后台标签页;传 mp_list_drafts 报出来的那个 kindtietu
confirmNomust be true, otherwise the call is refused with -32602 before the browser opens; deletion cannot be undone / 必须为 true,否则在打开浏览器之前就返回 -32602;删除不可撤销
appmsgidYesrequired, integer draft id from mp_list_drafts; the title is not an id / 必填,整数草稿 id,来自 mp_list_drafts;标题不是 id

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 declares irreversibility, the exact console popover text, the semantic caveat that published content survives deletion, the error code (-32602) and that refusal happens before the browser opens, and what is reported afterwards. These are behaviors no structured field conveys.

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?

Content is front-loaded with the destructive warning and the confirm requirement before the softer caveats. The only inefficiency is full duplication of the same content in English and Chinese, which roughly doubles length, though that appears intentional for a bilingual audience.

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?

Despite an output schema existing, the description still notes that the call reports whether the id disappeared from the list, and it covers safety, preconditions, error behavior, and the scope limit on published content. Nothing an agent needs to invoke this destructive tool correctly 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 description coverage is 100%, so the schema already documents all three parameters including the id-from-mp_list_drafts constraint and the confirm/-32602 behavior. The description reinforces provenance ('not the title') and the kind tab selection, but adds little that the schema does not already state, so 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?

States a specific verb and resource ('Delete a draft from the 草稿箱') and implicitly contrasts with mp_list_drafts / mp_publish_draft by noting that published content is unaffected and cannot be recalled. An agent can distinguish this from the sibling publish/list tools without opening a schema.

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?

Gives concrete routing guidance: the appmsgid must come from mp_list_drafts / mp_publish_material, kind must match the tab mp_list_drafts reported, and confirm=true is mandatory. It also draws a clear boundary that already-published messages are not affected, which functions as a when-not condition. It stops short of naming a sibling to use instead for retracting published content, so 4 rather than 5.

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