Skip to main content
Glama

mp_create_tietu

Create WeChat Official Account image messages by uploading local images, adding a title and description, then saving as a draft or publishing/scheduling with confirmation.

Instructions

Create a 贴图 (image message) in the WeChat Official Account console: upload one or more local PNG/JPEG images, write the title and the description, save it as a DRAFT, and optionally publish or schedule it in the same call. action=draft (default) stops at the draft; action=publish submits it immediately; action=schedule submits it for now+schedule_minutes. Publishing is irreversible and publicly visible, so it needs confirm=true, and the console then shows a 扫码 page the human must scan with WeChat before the message goes out. verified=true only once a new entry appears in 发表记录. Limits, enforced before the browser is touched: • images is required, 1-20 files, each a local gif/jpeg/jpg/png/webp file given as an absolute path that exists, at most 10 MB each (raise WXMP_MAX_IMAGE_BYTES to allow bigger files); the first one becomes the cover. • title is required, 1-64 characters; empty or longer is rejected with -32602. • description is clipped to 1000 characters and the reply reports desc_clipped=true; the console's own counter is returned as desc_counter and is not a 1:1 character count. • action=publish or action=schedule needs confirm=true. • schedule_minutes is 1-10080, but the time picker only offers today, so a large value cannot be honoured — keep it within the same day. Reply fields: appmsgid, state, verified (a NEW msgid in 发表记录), warning.

【中文】在公众号后台创建一条贴图:上传 1–20 张本地 PNG/JPEG 图片、写入标题和描述、存成草稿,并可在同一次调用里直接发布或定时发布。action=draft(默认)停在草稿;action=publish 立即提交;action=schedule 提交到 schedule_minutes 分钟之后。发布不可撤销且公开可见,需要 confirm=true;随后控制台会出现扫码页,必须由管理员用微信扫过,内容才会发出去。只有发表记录里出现新条目,verified 才会是 true。硬性要求(在碰浏览器之前就校验):• images 必填,1–20 个文件,每个都要是本地 gif/jpeg/jpg/png/webp 文件,必须写绝对路径且文件存在,单张最多 10 MB(要更大就调 WXMP_MAX_IMAGE_BYTES);第一张作封面。• title 必填,1–64 个字符;空或超长返回 -32602。• description 超过 1000 字截断,回包给 desc_clipped=true;控制台自己的计数以 desc_counter 返回,它和字数不是 1:1。• action=publish 或 action=schedule 需要 confirm=true。• schedule_minutes 范围 1–10080,但时间选择器只提供今天,所以太大的值无法兑现——请控制在同一天内。回包字段:appmsgid、state、verified(发表记录里出现新 msgid)、warning。

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": {
      "images": "<images>",
      "title": "<title>"
    },
    "name": "mp_create_tietu"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesrequired, 1-64 characters as the console counts them; empty or longer is rejected with -32602 / 必填,1–64 个字符(后台计数口径);空或超长返回 -32602
actionNodraft keeps it in 草稿箱; publish submits it now; schedule turns on 定时发表 and submits for now+schedule_minutes. publish and schedule need confirm=true and a human: 发表 shows a 扫码 page that the admin must scan with WeChat. / draft 留在草稿箱;publish 立即提交;schedule 打开定时发表,提交到 schedule_minutes 分钟之后。publish 和 schedule 需要 confirm=true,而且需要人:发表时会出现扫码页,必须由管理员用微信扫。draft
imagesYesrequired, 1-20 pictures: each must be a local gif/jpeg/jpg/png/webp file given as an absolute path that exists, at most 10 MB each (raise WXMP_MAX_IMAGE_BYTES to allow bigger files); the first one becomes the cover / 必填,1–20 张:每张都要是本地 gif/jpeg/jpg/png/webp 文件,必须写绝对路径且文件存在,单张最多 10 MB(要更大就调 WXMP_MAX_IMAGE_BYTES);第一张作封面
confirmNomust be true for action=publish or action=schedule / action=publish 或 action=schedule 时必须为 true
screenshotNosave a full-page PNG of the composer / 把编辑器的整页 PNG 存下来
descriptionNonewlines become paragraphs. No maxLength: the code clips instead of refusing, so text longer than 1000 characters is trimmed and the reply reports desc_clipped=true / 换行会分成段落。不设 maxLength:行为是截断而不是拒绝,超过 1000 字会被裁掉,回包给 desc_clipped=true
wait_publish_sNohow long to poll 发表记录 for the new msgid before answering; 0 skips the poll and returns verified=false / 回答之前轮询发表记录等新 msgid 的秒数;0 表示不轮询,直接返回 verified=false
schedule_minutesNominutes from now for action=schedule; the time picker only offers today, so keep it small / action=schedule 时表示从现在起多少分钟;控制台的时间选择器只提供「今天」,别设太大

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/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 thoroughly: publishing is irreversible and publicly visible, requires confirm=true, and triggers a 扫码 page a human must scan before the message goes out. It also discloses that limits are enforced before the browser is touched, that description is silently clipped rather than rejected (desc_clipped, desc_counter not a 1:1 character count), and that verified=true only when a new entry appears in 发表记录.

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 — a one-sentence summary of the flow, then mode semantics, then a bulleted constraint list — so an agent can extract the critical rules quickly. The main inefficiency is that the entire block is repeated verbatim in Chinese, roughly doubling length with no new information for a single reader.

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 eight-parameter, multi-mode, irreversible-action tool this is essentially complete: limits, preconditions, human-in-the-loop step, clipping behavior, polling semantics, and reply fields (appmsgid, state, verified, warning) are all covered. Because an output schema exists, the return-value detail is bonus rather than a gap.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: the first image becomes the cover, description overflow is trimmed rather than refused with desc_counter being a console-specific count, schedule_minutes is practically capped by a today-only time picker despite a 10080 maximum, and confirm is mandatory for publish/schedule. These are behavioral nuances the field descriptions alone would not fully convey.

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 description opens with a specific verb+resource: create a 贴图 (image message) in the WeChat Official Account console by uploading local images, writing a title/description, saving a draft, and optionally publishing or scheduling in the same call. That is unambiguous about what the tool does and its scope. It stops short of naming a sibling (e.g. mp_publish_draft) to route against, so it is clear but not sibling-differentiated.

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 explicitly separates the three modes — 'action=draft (default) stops at the draft; action=publish submits it immediately; action=schedule submits it for now+schedule_minutes' — and states the preconditions for each (confirm=true, human QR scan). What it does not provide is guidance on choosing this tool versus siblings such as mp_publish_draft or mp_create... alternatives, so the agent must infer that from context.

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