Skip to main content
Glama

SocialDataX 微信 WeChat MCP

wechat_get_mp_article_detail_by_url

Read-only

已有微信公众号文章链接或包含链接的分享文案时,获取普通文章或贴图的详情、正文和按顺序排列的图片。

阅读正文优先使用 content_text,图片使用 image_urls;content_html 保留原始正文结构。 统计或评论请使用对应工具;account.account_id 可用于账号信息和发布列表查询。

Input Schema

NameRequiredDescriptionDefault
urlYes微信公众号文章 / WeChat Official Account article 链接,或包含该链接的分享文案;例如 https://mp.weixin.qq.com/s/cyog0u9QpLFvdBsh9JR3_g。

Output Schema

NameRequiredDescriptionDefault
snYes公众号文章 sn 标识;不可用时为空字符串
bizYes公众号文章 biz 标识;不可用时为空字符串
idxYes公众号文章 idx 标识;不可用时为空字符串
midYes公众号文章 mid 标识;不可用时为空字符串
titleYes公众号文章标题
pointsYes本次成功调用的积分消耗与调用完成时的账户积分余额。
accountYes公众号账号信息
image_urlsYes正文图片链接,按页面顺序返回
article_urlYes规范化后的公众号文章链接
descriptionYes文章摘要;不可用时为空字符串
content_htmlYes正文 HTML 片段
content_textYes正文纯文本,已去除标签并压缩空白
publish_timeYes文章发布时间,秒级 Unix 时间戳;当前不可用时为 null
cover_image_urlYes文章封面图片链接;当前不可用时为 null
linked_articlesYes正文内链公众号文章列表
finder_video_cardsYes正文内嵌视频号卡片列表

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / article_url
      Added value: +{
      +  "description": "规范化后的公众号文章链接",
      +  "type": "string"
      +}
    • removedOutput schema / properties / source_url
      Removed value: -{
      -  "description": "规范化后的公众号文章链接",
      -  "type": "string"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "biz",
      -  "mid",
      -  "idx",
      -  "sn",
      -  "title",
      -  "account",
      -  "publish_time",
      -  "cover_image_url",
      -  "description",
      -  "source_url",
      -  "content_text",
      -  "content_html",
      -  "image_urls",
      -  "linked_articles",
      -  "finder_video_cards",
      -  "points"
      -]New value: +[
      +  "biz",
      +  "mid",
      +  "idx",
      +  "sn",
      +  "title",
      +  "account",
      +  "publish_time",
      +  "cover_image_url",
      +  "description",
      +  "article_url",
      +  "content_text",
      +  "content_html",
      +  "image_urls",
      +  "linked_articles",
      +  "finder_video_cards",
      +  "points"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / properties / finder_video_cards / items / properties / user_id / description
      Previous value: -"内嵌视频号卡片的作者用户 ID;仅 v2_...@finder 可用于用户信息或用户发布视频列表工具;不可用时为空字符串"New value: +"内嵌视频号卡片的作者用户 ID;仅 v2_...@finder 可用于用户信息或用户发布作品列表工具;不可用时为空字符串"
  3. Changed2 schema fields changed
    • addedOutput schema / properties / points
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "本次成功调用的积分消耗与调用完成时的账户积分余额。",
      +  "properties": {
      +    "balance": {
      +      "description": "本次接口完成时看到的当前积分余额。",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "cost": {
      +      "description": "本次请求最终确认消耗的积分。",
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "cost",
      +    "balance"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "biz",
      -  "mid",
      -  "idx",
      -  "sn",
      -  "title",
      -  "account",
      -  "publish_time",
      -  "cover_image_url",
      -  "description",
      -  "source_url",
      -  "content_text",
      -  "content_html",
      -  "image_urls",
      -  "linked_articles",
      -  "finder_video_cards"
      -]New value: +[
      +  "biz",
      +  "mid",
      +  "idx",
      +  "sn",
      +  "title",
      +  "account",
      +  "publish_time",
      +  "cover_image_url",
      +  "description",
      +  "source_url",
      +  "content_text",
      +  "content_html",
      +  "image_urls",
      +  "linked_articles",
      +  "finder_video_cards",
      +  "points"
      +]
  4. Changed1 schema field changed
    • changedOutput schema / properties / finder_video_cards / items / properties / user_id / description
      Previous value: -"内嵌视频号卡片的作者用户 ID"New value: +"内嵌视频号卡片的作者用户 ID;仅 v2_...@finder 可用于用户信息或用户发布视频列表工具;不可用时为空字符串"
  5. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds meaningful output-side behavior: prefer content_text for body reading, image_urls for images, content_html preserves original structure, and account.account_id can feed account info/published-list queries — context not derivable from annotations alone.

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 trigger condition, then output-field guidance, then sibling routing — each sentence earns its place. Slightly dense multi-clause packing, but no filler.

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 shape need not be explained, but the description usefully points at the key fields and cross-tool reuse of account.account_id. For a one-parameter read tool this is essentially complete; only the absence of explicit sibling names keeps it below 5.

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% and the single url parameter is fully documented in the schema, including that share text containing a link is acceptable. The description restates the 'link or share text' acceptance but adds no format or edge-case detail beyond the schema, so baseline 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+resource: retrieving details, body text, and ordered images for a WeChat Official Account article or image-post from a URL. It explicitly narrows scope to '普通文章或贴图' (normal articles or image posts), which distinguishes it from the video, comment, and stats siblings.

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?

Sets a clear precondition — '已有微信公众号文章链接或包含链接的分享文案时' (when you already have the link or share text containing it) — and explicitly routes stats/comments to other tools ('统计或评论请使用对应工具'). It does not name the specific sibling tools, so the routing requires the agent to map to the named siblings itself.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources