Skip to main content
Glama

mp_device_preview

Preview WeChat draft body layouts by rendering passages in an isolated Edge viewport for iPhone 13, Pixel 7, or iPad Mini, with optional landscape, and return a JPEG image.

Instructions

按设备视口在独立 Edge 中重排草稿正文并返回 JPEG。可指定唯一段落和横屏。

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

Input Schema

NameRequiredDescriptionDefault
deviceNoiPhone 13
passageNo
landscapeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does usefully disclose the mechanism (an isolated Edge render, implying an external browser launch and non-trivial latency) and the output format (JPEG). It does not say whether the draft must already exist or be saved, whether the call mutates anything, or how the JPEG is delivered back.

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?

Two compact sentences with the core action and output front-loaded and no filler. The second sentence is terse enough to be slightly under-specified rather than wasteful.

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?

For a tool with no annotations, no output schema, and 0% schema coverage, the definition omits key prerequisites (draft existence/saved state), return shape for the JPEG, and any error or latency expectations. It is a correct one-line summary but not sufficient for confident invocation.

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 0%, so the description must compensate; it clarifies that 'passage' selects a single passage and that 'landscape' is an orientation toggle, and implies 'device' drives the viewport. It still leaves the passage argument's format ambiguous (ID vs. text) and never explains the device enum values or defaults.

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?

States a specific action (re-layout draft body per device viewport in an isolated Edge instance) plus the concrete output (JPEG), so an agent knows this is a rendering/preview tool. It does not name or distinguish itself from the closest sibling, mp_visual_verify, leaving overlap unresolved.

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 when-to-use or when-not-to-use guidance is given, and no alternative is named. The second sentence about passage and landscape is parameter scoping, not usage guidance, so an agent must infer that this is for device-specific visual previews.

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