Skip to main content
Glama
BlogDistiller · 博萃 MCP Server

BlogDistiller · 博萃 MCP Server

by yibeigen

fetch_article

Idempotent

Extracts clean Markdown and structured metadata from a single article URL across WeChat, Zhihu, CSDN, and generic web pages, with noise filtering and chunked reading for long content.

Instructions

抓取单篇文章的去噪正文(Markdown)与结构化元数据。支持微信公众号/知乎/微博/简书/新浪博客/搜狐号/百家号/CSDN/51CTO/掘金/博客园与通用网页。长文自动分片(truncated + next_offset 续读),可选 save_to_path 完整落盘。单篇绝不触发博主全量溯源。

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": {
      "url": "<url>"
    },
    "name": "fetch_article"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes单篇文章的完整 HTTP/HTTPS 链接
offsetNo正文字符起始偏移,用于长文章分段续读
platformNo目标平台,默认 auto 自动按域名识别auto
max_charsNo本次返回的正文最大字符数
use_cacheNo是否允许命中并写入本地 SQLite 缓存
save_to_pathNo可选:将完整未截断 Markdown 保存到本地路径(须在允许的输出目录内)
force_refreshNo是否强制忽略旧缓存重新联网抓取
include_imagesNo返回 Markdown 中是否保留图片语法;纯文本阅读分析可设为 False 省 Token
enable_noise_filterNo是否智能去噪(去除广告、引流关注语)
remove_image_watermarkNo是否去除图片水印并还原原图 URL

Output Schema

NameRequiredDescriptionDefault
urlYes
tagsYes
titleYes
authorYes
imagesYes最多返回前 50 张
offsetYes
categoryNo
platformYes
truncatedYes
from_cacheYes
saved_pathNo
image_countYes
next_offsetNo
total_charsYes
column_titleNo
content_typeNo
publish_timeYes
returned_charsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true, idempotent=true, destructiveHint=false; the description adds genuinely non-obvious behavior beyond them — automatic chunking with a truncated flag plus offset-based continuation, optional full-body write to a path restricted to allowed output directories, and the no-full-author-crawl guarantee. It stops short of disclosing auth requirements for gated platforms (WeChat/Zhihu) or how caching affects freshness, which is why it is not a 5.

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?

Four front-loaded sentences that each contribute: purpose/output, platform coverage, chunking behavior, and scope guarantee. The enumeration of eleven platforms largely restates the platform enum in the schema, which is the only notable redundancy.

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 covers the remaining complexity an agent must know — chunking/continuation, disk persistence bounds, noise filtering, and single-article scope. The missing piece is whether platform auth (check_auth_status) must be satisfied before fetching gated sources.

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 coverage is 100% across all 10 parameters, so the schema already carries the heavy lifting and baseline 3 applies. The description adds some semantic linkage (save_to_path saves the *complete* untruncated body versus the truncated default) but also introduces a naming mismatch — it references 'next_offset' while the schema exposes 'offset' — so it does not meaningfully enrich parameter understanding.

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?

The description names a specific verb and resource (抓取单篇文章的去噪正文) and immediately specifies the output shape (Markdown 正文 + 结构化元数据). The clause 「单篇绝不触发博主全量溯源」 explicitly separates it from author-wide siblings like list_author_articles and fetch_articles_batch, so an agent can route 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?

Usage context is clear: single-article extraction, with save_to_path recommended when the full untruncated body is needed and include_images flagged for token-saving text analysis. The main gap is that alternatives are only implied (batch / author-listing siblings are never named), so the agent must infer the boundary rather than being told.

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