Skip to main content
Glama

mp_account_login

Open the WeChat Official Account console and capture a QR code for a human to scan, returning a session token after redirect. Use it to authenticate MCP sessions without handling credentials.

Instructions

Start the QR-code login: opens the console, writes a screenshot of the QR code into the out/ directory and waits for a human to scan it with WeChat. Returns as soon as the console redirects with a session token. The login is manual by design — no credential is ever handled by the server. Limits: timeout_s is 15-600 seconds (default 180); when it runs out the call raises LoginRequired and the reply carries the QR path, so call it again rather than retrying blindly. If the profile already holds a session the call returns immediately with already_logged_in=true.

【中文】启动扫码登录:打开后台、把二维码截图存到 out/ 目录,然后等人用微信扫。控制台一旦带着 session token 跳转就立即返回。登录按设计只能人工完成,服务端从不接触任何凭据。限制:timeout_s 取值 15–600 秒(默认 180);超时会抛 LoginRequired,回包里带二维码路径,所以再调一次即可,不要盲目重试。如果 profile 里已有会话,会立刻返回 already_logged_in=true。

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

Input Schema

NameRequiredDescriptionDefault
timeout_sNohow long to wait for the human scan, 15-600 seconds; the call answers early when the redirect happens / 等待人工扫码的秒数,取值 15–600;一旦跳转就提前返回

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the side effects (console opens, screenshot file written to out/), that the call blocks on a human, the security posture (server never handles credentials), the timeout error contract (LoginRequired carrying the QR path), and the already-logged-in fast path.

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?

Front-loaded with the action and effects, then the limits and failure contract, with zero filler sentences. It loses a point because the entire text is duplicated in Chinese, doubling length without adding information for a single reader.

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

Completeness5/5

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

For a blocking, side-effecting, human-in-the-loop tool this covers everything needed to invoke it correctly: what it touches on disk, how long it blocks, how it fails, and how to recover. An output schema exists, yet the description still calls out the two return signals that change agent behavior (already_logged_in, LoginRequired).

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?

The single parameter is fully documented in the schema including bounds, default, and the early-return semantics, so the schema already does the work. The description restates the same 15-600 range and early-return behavior rather than adding new meaning, so the high-coverage baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Start the QR-code login') and immediately enumerates the concrete effects: opens the console, writes a QR screenshot to out/, waits for a WeChat scan. That behavior is distinguishable from the sibling status/draft tools without opening any schema.

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

Usage Guidelines4/5

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

Gives clear conditions for calling it (need a session, human present to scan) and explains the outcome paths: immediate return when the profile already holds a session, and re-calling after a timeout instead of blind retries. It does not name an alternative tool for checking session state, which keeps it below a 5.

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