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 可用于账号信息和发布列表查询。

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": "wechat_get_mp_article_detail_by_url"
  }
}

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. Changed2 schema fields changed
    • changedOutput schema / properties / points / description
      Previous value: -"本次成功调用的积分消耗与调用完成时的账户积分余额。"New value: +"本次成功调用的积分消耗与账户积分余额。"
    • changedOutput schema / properties / points / properties / balance / description
      Previous value: -"本次接口完成时看到的当前积分余额,可为负数。"New value: +"优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
  2. Changed2 schema fields changed
    • changedOutput schema / properties / points / properties / balance / description
      Previous value: -"本次接口完成时看到的当前积分余额。"New value: +"本次接口完成时看到的当前积分余额,可为负数。"
    • removedOutput schema / properties / points / properties / balance / minimum
      Removed value: -0
  3. Changed29 schema fields changed
    • addedOutput schema / properties / account / properties / account_id / title
      Added value: +"Account Id"
    • addedOutput schema / properties / account / properties / avatar_url / title
      Added value: +"Avatar Url"
    • addedOutput schema / properties / account / properties / name / title
      Added value: +"Name"
    • addedOutput schema / properties / account / properties / signature / title
      Added value: +"Signature"
    • addedOutput schema / properties / account / title
      Added value: +"WechatMpArticleAccountData"
    • addedOutput schema / properties / article_url / title
      Added value: +"Article Url"
    • addedOutput schema / properties / biz / title
      Added value: +"Biz"
    • addedOutput schema / properties / content_html / title
      Added value: +"Content Html"
    • addedOutput schema / properties / content_text / title
      Added value: +"Content Text"
    • addedOutput schema / properties / cover_image_url / title
      Added value: +"Cover Image Url"
    • addedOutput schema / properties / description / title
      Added value: +"Description"
    • addedOutput schema / properties / finder_video_cards / items / properties / author_name / title
      Added value: +"Author Name"
    • addedOutput schema / properties / finder_video_cards / items / properties / content_type / title
      Added value: +"Content Type"
    • addedOutput schema / properties / finder_video_cards / items / properties / description / title
      Added value: +"Description"
    • addedOutput schema / properties / finder_video_cards / items / properties / encrypted_object_id / title
      Added value: +"Encrypted Object Id"
    • addedOutput schema / properties / finder_video_cards / items / properties / user_id / title
      Added value: +"User Id"
    • addedOutput schema / properties / finder_video_cards / items / title
      Added value: +"WechatMpArticleFinderVideoCardData"
    • addedOutput schema / properties / finder_video_cards / title
      Added value: +"Finder Video Cards"
    • addedOutput schema / properties / idx / title
      Added value: +"Idx"
    • addedOutput schema / properties / image_urls / title
      Added value: +"Image Urls"
    • addedOutput schema / properties / linked_articles / items / properties / title / title
      Added value: +"Title"
    • addedOutput schema / properties / linked_articles / items / properties / url / title
      Added value: +"Url"
    • addedOutput schema / properties / linked_articles / items / title
      Added value: +"WechatMpArticleLinkedArticleData"
    • addedOutput schema / properties / linked_articles / title
      Added value: +"Linked Articles"
    • addedOutput schema / properties / mid / title
      Added value: +"Mid"
    • addedOutput schema / properties / publish_time / title
      Added value: +"Publish Time"
    • addedOutput schema / properties / sn / title
      Added value: +"Sn"
    • addedOutput schema / properties / title / title
      Added value: +"Title"
    • addedOutput schema / title
      Added value: +"WechatMpArticleDetailResult"
  4. 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"
      +]
  5. 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 可用于用户信息或用户发布作品列表工具;不可用时为空字符串"
  6. 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"
      +]
  7. Changed1 schema field changed
    • changedOutput schema / properties / finder_video_cards / items / properties / user_id / description
      Previous value: -"内嵌视频号卡片的作者用户 ID"New value: +"内嵌视频号卡片的作者用户 ID;仅 v2_...@finder 可用于用户信息或用户发布视频列表工具;不可用时为空字符串"
  8. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds genuinely useful behavior: which output field to prefer for reading (content_text), that image_urls is ordered, and that content_html preserves raw structure. It stops short of mentioning latency, rate limits, or failure modes for invalid/deleted links.

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 — a sensible order. It is compact for a Chinese-language description, though the field-usage and routing sentences could be trimmed slightly without losing meaning.

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 not be enumerated, and the annotations cover the read-only/open-world profile; the description still adds field-level reading guidance and downstream handoff via account_id. Only minor gaps remain, such as how image posts differ from normal articles in the returned payload.

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 already documents that it accepts either a link or share text containing one. The description only restates that precondition, adding no format, encoding, or normalization detail beyond the schema.

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 and resource ('获取普通文章或贴图的详情、正文和按顺序排列的图片') and names the precondition (an existing article URL or share text containing one). It also implicitly separates itself from the comment/stats siblings by noting that this returns detail, body text, and images.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly scopes when to use it ('已有...链接或包含链接的分享文案时') and names the alternatives for other needs ('统计或评论请使用对应工具'). It even routes follow-up work by saying account.account_id can feed account-info and article-list tools.

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