Skip to main content
Glama
wooter-s

weixin-devtools-mcp

by wooter-s

switch_tab

Switches to a specified tab page in WeChat mini-program during automated testing, with configurable timeout and optional wait for page load.

Instructions

切换到指定Tab页

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesTab页路径
timeoutNo等待超时时间(毫秒),默认5000ms
waitForLoadNo是否等待页面加载完成,默认true

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 present, so the description carries the full burden of behavioral disclosure. It only restates the action and does not mention side effects, waitForLoad/timeout behavior, or failure semantics.

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 concise sentence with no filler, and the core action is front-loaded. However, it is somewhat under-specified rather than genuinely 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?

With no annotations and a sibling list containing navigation tools, the description lacks context about tab semantics, when switching is appropriate, and what waiting for load entails. The output schema may cover return values, but usage and behavior context are incomplete.

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%, and the description adds no parameter detail beyond what the schema already provides for url, timeout, and waitForLoad. It neither compensates for gaps nor adds format/example guidance.

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-resource pair: 'switch' to 'specified Tab page'. It is self-explanatory but does not explicitly differentiate it from sibling navigation tools like navigate_to or get_current_page.

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 provided on when to use switch_tab versus alternatives such as navigate_to, navigate_back, or get_current_page. Prerequisites, context, and exclusions are all left to inference.

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