Skip to main content
Glama
weapp-driver-mcp

weapp-driver-mcp

by Gao12123

Observe the current mini program page

mp_page

Inspect the current WeChat Mini Program page to retrieve route, query, page data, viewport, scroll offset, and page stack; optionally request WXML markup when a selector is unknown.

Instructions

Describe the current page: route path and query, page data (optionally one branch via data_path), viewport size, scroll offset and the page stack. Pass include ["wxml"] to see the markup when a selector cannot be guessed from what is on screen. Large data is truncated with an explicit marker.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mp_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
includeNoWhat to include. Defaults to ["data"]. `wxml` returns the page markup and is large; request it only when a selector could not be guessed.
selectorNoWith include ["wxml"], return that element's WXML instead of the whole page.
data_pathNoPath inside the page data, e.g. "list.items" or "form".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose key behavior: includes default to ["data"], the wxml payload is large, and oversized data is truncated with an explicit marker. It never explicitly frames the call as a non-mutating observation, but the verb "Describe" plus the size/truncation warnings make the read-only nature and cost profile clear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with what the tool returns, then the opt-in flags, then the truncation caveat. Every clause contributes; nothing is redundant with the title or with the schema.

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

Completeness4/5

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

The tool has no output schema, so the description effectively serves as the return-value contract and does so by listing the five observable facets. The only shortfall is that the truncation marker format and the shape of the page-stack result are not described, but for a three-optional-parameter read tool this is close to complete.

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 on top: it explains that data_path narrows to one branch ("optionally one branch via data_path") and reinforces when wxml/selector are worth using. This is more than restating 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?

"Describe the current page" gives a specific verb and resource, and the sentence enumerates exactly what comes back: route path and query, page data, viewport size, scroll offset and the page stack. It is clearly distinct from element-level readers like mp_element_read or mp_query, though it never names a sibling to draw that boundary explicitly.

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

Usage Guidelines3/5

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

Guidance exists but only for the optional flags: request "wxml" when a selector cannot be guessed from what is on screen, and use data_path for one branch of data. There is no statement of when to call this tool versus mp_query, mp_element_read, mp_screenshot or mp_status, so overall tool selection is left implied.

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