Skip to main content
Glama

mp_set_field

Sets a single metadata field—title, author, or summary—for the current WeChat article draft and reads it back; check writable regions first with mp_get_regions.

Instructions

设置当前图文的一项元数据并回读;先用 mp_get_regions 检查 writable。

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": {
      "field": "<field>",
      "text": "<text>"
    },
    "name": "mp_set_field"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
fieldYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It usefully discloses two traits beyond the schema: the operation reads the value back (回读) and there is a writability gate checked via mp_get_regions. It does not say what happens when writable is false, whether the field is overwritten, or how errors surface, which are important gaps for an unannotated mutation tool.

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?

A single compact sentence with two clauses: the action first, then the prerequisite check. Every phrase carries information and there is no filler, though the ordering of action-before-prerequisite slightly buries the gating requirement that must happen first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation tool with no annotations and no output schema, the description covers the writability prerequisite and the read-back confirmation, which is the core of correct invocation. It is still incomplete on failure behavior and on the semantics of the text value, both of which an agent would need before safely calling it.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate and largely does not. The field enum in the schema is self-explanatory, but the description adds nothing about the text parameter — no length limits, no plain-text vs markup expectations, no indication of whether an empty value clears the field.

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?

"设置当前图文的一项元数据" names a concrete verb (set), a concrete target (one metadata field of the current article/image-text), and a scope constraint (one field at a time), which maps cleanly onto the field/text parameters. It does not explicitly distinguish itself from other write siblings such as mp_write_body or mp_replace_passage, so it stops short of a 5.

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 gives an explicit precondition and names the exact sibling to call first: "先用 mp_get_regions 检查 writable". That is real, actionable when-to-use guidance. It lacks any when-not-to-use or exclusion guidance, which keeps it below 5.

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