Markdown to Card converter - converts Markdown documents to beautiful knowledge cards and scrapes WeChat articles
Two tools present with explicit registration in ListToolsRequestSchema handler. Both have input schemas and descriptions, but quality is inconsistent. md2card_api has comprehensive schema with 9 parameters and enums, but descriptions lack LLM optimization guidance. wechat_scraper is minimal, one required parameter with generic description. Neither tool has documented output schemas, which is critical given they return complex results (markdown content, card metadata). Tool names lack action verbs (md2card_api vs convert_markdown_to_card; wechat_scraper vs scrape_wechat_article). Parameter descriptions are present but lack actionable guidance on constraints, prerequisites, or error recovery. Error handling exists in CallToolRequestSchema but returns raw error objects without recovery hints. Overall: functional definitions that would work, but fall short of production-grade tool design patterns.
将 Markdown 文档转换为精美的知识卡片
抓取微信公众号文章并转换为 Markdown 格式
Tool names lack action verbs. 'md2card_api' and 'wechat_scraper' are noun-based. Should be 'convert_markdown_to_card' and 'scrape_wechat_article' so LLMs infer intent from name alone.
No documented output schema. LLMs cannot reason about downstream tool calls or field extraction without knowing what md2card_api returns (image URL? markdown? structured card metadata?). wechat_scraper returns markdown but this is undocumented.
Parameter descriptions are generic and lack actionable constraint information. 'Markdown内容' (Markdown content) tells LLMs nothing about format, length limits, or supported syntax. 'Markdown文件路径' (Markdown file path) does not specify absolute vs relative, or file size limits. Should follow pattern: 'Markdown content as raw text (max 10000 chars, supports GFM syntax)' and 'Absolute or relative file path to .md file (max 1MB)'.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 41 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 36 | - | v1 |
md2card_api description is in Chinese and does not explain prerequisites or state that MD2CARD_API_KEY environment variable is required. The error check happens at runtime in CallToolRequestSchema, not surfaced in schema. Description should state: 'Requires MD2CARD_API_KEY environment variable. Converts Markdown to image cards in various themes.'
wechat_scraper description does not explain what 'Markdown format' means or what fields the returned markdown contains. Missing: 'Scrapes WeChat public account articles and converts HTML to Markdown. Returns article title, author, content, and publish date in markdown format.' Also no note about network requirements or rate limits.
md2card_api has 9 parameters with sensible defaults (width=440, height=586, theme=apple-notes, splitMode=noSplit) and enums for theme/themeMode, but parameters lack descriptions explaining what each theme/mode combination produces visually or semantically. 'What is the difference between apple-notes and coil-notebook themes?' is unanswerable from current schema.
No output pagination or limit enforcement. If md2card_api returns a very large rendered card or wechat_scraper returns extremely long markdown, the response could blow the context window. Schema should document maximum expected response size or pagination.
Error responses use McpError with generic messages like '未知工具' (Unknown tool) and '请提供微信公众号文章的URL' (Please provide WeChat article URL). Should follow recovery pattern: 'URL parameter missing. Provide a WeChat public account article URL (e.g., https://mp.weixin.qq.com/s/...). Try search_articles() to find articles first.'
Mutually exclusive parameters not documented. md2card_api accepts both 'markdown' and 'markdownFile', unclear which takes precedence if both provided. Should state: 'Either markdown (raw text) or markdownFile (path), if both provided, markdown takes precedence.'
No idempotency guarantee documented. If an LLM retries md2card_api with identical input after a timeout, is the same card returned or is a new one generated? Agents need to know what is safe to retry.