Skip to main content
Glama

mp_get_layout

Reads the WeChat editor viewport’s browser layout, image-loading statistics, and up to 40 paragraph bounding boxes in CSS pixels to diagnose rendering and placement issues.

Instructions

读取浏览器布局、图片加载统计和最多 40 个段落框(编辑器视口 CSS 像素)。

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_get_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden; it does contribute real behavioral facts — a hard cap of 40 paragraph boxes and coordinate units defined as editor-viewport CSS pixels — which an agent could not derive from the schema. It omits whether the call is a side-effect-free read with cost implications, and says nothing about truncation behavior when more than 40 paragraphs exist.

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?

A single front-loaded sentence with no filler: the return contents, the cap, and the coordinate system all appear before any reader could stop reading. Nothing is redundant with the schema or title.

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?

For a one-parameter, no-annotation, no-output-schema read tool, the description covers the essentials: what comes back, the size ceiling, and the unit system. The remaining gap is paging semantics for offset and the absence of any cue linking it to the fitting/verification siblings.

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?

Only one parameter (offset, default 0) with 0% schema description coverage, so the description must compensate; the '最多 40 个段落框' limit is what makes offset's paging role inferable at all. It still never states explicitly that offset is a paragraph-box cursor or what the increment should be.

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 verb (读取) and enumerates exactly what is retrieved: browser layout, image-loading statistics, and up to 40 paragraph boxes in editor-viewport CSS pixels. That is concrete enough to distinguish it from mutating siblings, though it never contrasts itself with the read-oriented siblings such as mp_get_regions or mp_visual_verify.

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?

There is no statement of when to call this tool, no preconditions (e.g. that an editor page must be open), and no indication of which sibling to use instead when the agent needs regions or a visual check. The agent must infer the use case from the return contents alone.

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