Skip to main content
Glama
BlogDistiller · 博萃 MCP Server

BlogDistiller · 博萃 MCP Server

by yibeigen

sync_platform_auth

Synchronize or reset local login state for Zhihu and Weibo via browser credential sync, QR-code login, or logout.

Instructions

同步或重置平台本地登录态。sync_browser 从本机 Edge/Chrome 解密同步(推荐零摩擦,仅 Windows);qr_login 弹本机浏览器窗口扫码(需图形界面,最多等 120 秒);logout 清除本地凭证。所有返回均脱敏。调用前请征得用户同意。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "platform": "<platform>",
      "method": "<method>"
    },
    "name": "sync_platform_auth"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodYessync_browser 从本机 Edge/Chrome 解密同步(推荐零摩擦);qr_login 弹本机浏览器窗口扫码(最多等 120s);logout 清除本地凭证
platformYes目前支持知乎与微博的本机浏览器自动同步与官方扫码登录

Output Schema

NameRequiredDescriptionDefault
messageYes
platformYes
usernameNo
authenticatedYes
next_step_hintNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that sync_browser decrypts credentials from the local Edge/Chrome store, that this only works on Windows, that qr_login needs a GUI and has a 120-second ceiling, that logout wipes local credentials, and that all return values are redacted. The user-consent requirement is a meaningful operational constraint an agent would otherwise miss. Minor tension: 'logout 清除本地凭证' is a state-clearing action while destructiveHint=false, though it is the tool's intended, re-login-recoverable behavior rather than a contradiction.

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?

Purpose is front-loaded in the first clause, followed by a compact mode-by-mode breakdown, then the redaction guarantee and consent precondition. There is no filler, and the semicolon-separated structure makes each mode easy to scan.

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?

An output schema exists, so return values need no explanation, and the description covers the platform scope, environment requirements, and consent gate. It is silent on failure behavior (for example, when no supported browser is installed or qr_login times out), which an agent would need for recovery.

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 both parameters are enums already documented, so the baseline is 3. The description adds only a little beyond the schema — '仅 Windows' and '需图形界面' are real selection constraints tied to the method parameter, but the per-mode explanations largely restate the schema text verbatim.

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 resource ("同步或重置平台本地登录态") and then breaks the tool into three named modes (sync_browser / qr_login / logout) with a one-line explanation of each. This lets an agent distinguish the modes without opening the schema. It does not distinguish itself from the sibling check_auth_status, so it stops short of a 5.

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?

Each mode has an explicit selection cue: sync_browser is labeled the recommended zero-friction path but Windows-only, qr_login requires a graphical interface and may wait up to 120 seconds, and logout is the credential-clearing path. It also states a precondition that the user must consent before the call. The gap is that it never mentions check_auth_status as the cheaper alternative for deciding whether a sync is needed at all.

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