Skip to main content
Glama
wooter-s

weixin-devtools-mcp

by wooter-s

set_form_control

Set the value of form controls like picker, switch, and slider in WeChat mini-programs. Target an element and assign a new value to trigger the change event.

Instructions

设置表单控件的值(如picker、switch、slider等)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYes要设置的值
targetYes
triggerNo触发的事件类型,默认为changechange

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
codeYes
dataYes
metaYes
errorYes
warningsYes
nextActionsYes
observationYes
partialDataYes
schemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description must carry behavioral disclosure, but it only states that a value is set. It does not mention event triggering, side effects, supported control types beyond examples, or error behavior, leaving the mutation's behavior opaque.

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 description is a single front-loaded sentence with no filler and clear examples. It is appropriately concise, though it could use more structure to compensate for its brevity.

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?

Given the rich input schema and presence of an output schema, the description doesn't need to repeat parameter details. However, with no annotations and minimal description, it leaves behavioral and usage context under-specified, so it is minimally viable but not complete.

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?

The schema already documents target, value, and trigger with descriptions, so the baseline is 3. The description adds only the form-control framing and examples, not parameter-level detail beyond the schema.

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 names a specific operation ('设置...的值') and a concrete resource class ('表单控件') with examples (picker, switch, slider), which distinguishes it from siblings like click or navigate_to. It is not a tautology and makes the tool's core function immediately understandable.

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

Usage Guidelines2/5

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

No guidance is given about when to prefer this tool over siblings such as input_text or get_value. The examples imply form controls, but there is no explicit context, exclusions, or alternative routing, so the agent must infer usage.

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