Skip to main content
Glama
微信公众号文章解析 MCP Server

微信公众号文章解析 MCP Server

by Xiaojun928

Parse Wechat Article

parse_wechat_article
Read-only

Extract title, author, body, images, and videos from WeChat public account article URLs, outputting structured JSON or Markdown with concise or detailed content modes.

Instructions

解析微信公众号文章并提取内容

这是一个完整的工作流工具,支持:

  • URL验证:自动验证和解析微信公众号文章URL

  • 内容提取:提取标题、作者、正文、图片、视频等

  • 格式化输出:支持JSON和Markdown格式

  • 详细程度控制:concise模式节省上下文,detailed模式提供完整信息

使用场景:

  • 快速获取文章核心内容(concise模式)

  • 需要完整文章内容进行分析(detailed模式)

  • 提取文章中的图片和视频资源

示例:

错误处理:

  • URL无效:会提示正确的URL格式

  • 访问受限:会建议使用浏览器方法或检查登录状态

  • 解析失败:会提供降级方案建议

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": {
      "input": "<input>"
    },
    "name": "parse_wechat_article"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes解析微信公众号文章的输入模型 - Agent-Centric 设计

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

The description goes meaningfully beyond the annotations by documenting failure behavior: invalid-URL messaging, access-restriction advice to switch to a browser method or check login, and downgrade suggestions on parse failure. However, it labels the browser extract method as 'Phase 3功能' (not yet available) while the schema separately advertises it as a stable option, which sows doubt about what actually works today, and it says nothing about rate limits or how anti-scraping affects success rates.

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

Conciseness3/5

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

The purpose is front-loaded and the bulleted structure is scannable, but content is duplicated: 'concise模式节省上下文' appears in both the feature list and the usage-scenarios list, and the format/detail definitions restate the schema defaults verbatim. The error-handling section is useful but could be compressed to one line each.

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?

With an output schema present, return values need no explanation, and the description still covers inputs, mode tradeoffs, failure modes, and examples. The main lingering gap is the unresolved status of the browser extraction path, which an agent needs in order to decide whether to rely on 'auto' fallback.

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%, so all seven nested parameters already carry their own documentation, including the enums and defaults. The description only reinforces the concise-vs-detailed and json-vs-markdown tradeoffs and shows two example combinations; it adds no syntax, limits, or edge cases beyond 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?

The opening line names a specific verb and resource in plain terms (parse a WeChat official-account article and extract its content), and the feature bullets enumerate what is extracted (title, author, body, images, video). There are no sibling tools to differentiate against, so the only thing missing is that comparative layer.

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?

A dedicated '使用场景' section spells out three concrete situations (quick gist grab, full-content analysis, media asset extraction) and maps each to a mode, plus two worked invocation examples. It stops short of stating when NOT to use the tool or naming an alternative path.

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

Deploy Server

Other Tools