Skip to main content
Glama
wooter-s

weixin-devtools-mcp

by wooter-s

assert_state

Assert UI element states in WeChat mini-programs by checking visibility, enabled, checked, or focused conditions against expected values.

Instructions

断言元素的各种状态

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYes
checkedNo期望选中状态(checkbox/radio)
enabledNo期望启用状态
focusedNo期望焦点状态
visibleNo期望可见状态

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 are provided, so the description carries the full behavioral burden. '断言' implies a check, but it does not disclose whether the tool returns a boolean, throws on failure, retries, waits, or what happens on mismatch. This is a significant gap for an assertion 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?

The description is a single compact sentence with no redundant content. It is appropriately short, though the phrase '各种状态' is vague and slightly under-informative.

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

Completeness2/5

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

The tool has a complex nested target schema and no annotations, yet the description only says 'assert various states of the element.' It does not enumerate the states, mention the locator mechanics, or clarify assertion behavior. This is incomplete for an agent to call the tool correctly.

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 80%, and the schema already explains target, checked, enabled, focused, and visible. The description adds no extra parameter meaning, but at high schema coverage the baseline of 3 applies.

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 states a clear verb ('断言' / assert) and resource ('元素' / element), and the scope is '各种状态' (various states). This distinguishes it from assertion siblings focused on attributes or text, though it does not explicitly name them or enumerate the states.

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?

The description provides no guidance on when to use this tool versus alternatives like assert_attribute or assert_text. No exclusions, prerequisites, or sibling comparisons are given; the agent must infer usage entirely from the tool name and context.

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