Skip to main content
Glama

SocialDataX 知乎 Zhihu MCP

zhihu_get_content_detail_by_url

Read-only

根据知乎回答页(包括带视频的回答)、专栏文章页、独立视频页或想法页链接读取详情。

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": {
      "content_url": "<content_url>"
    },
    "name": "zhihu_get_content_detail_by_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
content_urlYes知乎内容页面链接;只传下面四类已支持的知乎网页链接格式,不要传接口地址、短链接、移动端链接或包含链接的分享文案;从搜索结果读取详情时,直接传搜索结果里非空的 content_url;不要只传 content_id 或数字 ID,不要自行拼接链接;不要传问题页链接或作者主页链接;支持回答页链接(包括带视频的回答) https://www.zhihu.com/question/{question_id}/answer/{answer_id}、专栏文章链接 https://zhuanlan.zhihu.com/p/{article_id}、独立视频链接 https://www.zhihu.com/zvideo/{zvideo_id}、想法链接 https://www.zhihu.com/pin/{pin_id}。

Output Schema

NameRequiredDescriptionDefault
titleYes内容标题;answer 通常为所属问题标题;想法没有标题时为空字符串。
videoYes视频信息;独立视频详情和带视频的回答详情可能返回对象;包含可用时的播放资源 play_url;普通回答、文章或无视频信息时为 null。
authorYes作者信息。
imagesYes正文图片列表,包含链接及宽高;无图时为空数组。
pointsYes本次成功调用的积分消耗与账户积分余额。
contentYes详情正文或视频描述纯文本;视频详情不是视频转写;不可用时为空字符串。
questionYes回答所属问题摘要;answer(包括带视频的回答详情)返回对象,article、独立视频 video 和想法 pin 为 null。
content_idYes知乎内容 ID;用于识别内容;不要把 content_id 当作详情或评论输入。
image_urlsYes回答、文章或想法详情正文中解析到的图片链接列表;视频详情返回空数组;无图片时为空数组。
like_countYes喜欢数;与赞同数 upvote_count 不同;不可用时为 null。
topic_tagsYes知乎话题标签列表;无标签时为空数组;每项只返回 name。
content_urlYes可打开的知乎内容页面链接;回答、文章和视频链接可作为评论请求的 content_url;想法暂不支持评论;不可用时为 null;不要自行拼接。
ip_locationYesIP 属地;不可用时为空字符串。
share_countYes分享数;不可用时为 null。
update_timeYes更新时间,秒级 Unix 时间戳;不可用时为 null。
content_typeYes内容类型:answer=回答(包括带视频的回答详情),article=文章,video=独立视频,pin=想法;详情不会返回 videoanswer。
publish_timeYes发布时间,秒级 Unix 时间戳;不可用时为 null。
upvote_countYes赞同数;不可用时为 null。
collect_countYes收藏数;不可用时为 null。
comment_countYes评论数;不可用时为 null。
cover_image_urlYes封面图链接;不可用时为 null。

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. Changed36 schema fields changed
    • addedOutput schema / properties / author / properties / avatar_url / title
      Added value: +"Avatar Url"
    • addedOutput schema / properties / author / properties / bio / title
      Added value: +"Bio"
    • addedOutput schema / properties / author / properties / follower_count / title
      Added value: +"Follower Count"
    • addedOutput schema / properties / author / properties / name / title
      Added value: +"Name"
    • addedOutput schema / properties / author / properties / profile_url / title
      Added value: +"Profile Url"
    • addedOutput schema / properties / author / properties / received_upvote_count / title
      Added value: +"Received Upvote Count"
    • addedOutput schema / properties / author / properties / user_id / title
      Added value: +"User Id"
    • addedOutput schema / properties / author / properties / verification_label / title
      Added value: +"Verification Label"
    • addedOutput schema / properties / author / properties / verified / title
      Added value: +"Verified"
    • addedOutput schema / properties / author / title
      Added value: +"ZhihuAuthorSummaryData"
    • addedOutput schema / properties / collect_count / title
      Added value: +"Collect Count"
    • addedOutput schema / properties / comment_count / title
      Added value: +"Comment Count"
    • addedOutput schema / properties / content / title
      Added value: +"Content"
    • addedOutput schema / properties / content_id / title
      Added value: +"Content Id"
    • addedOutput schema / properties / content_type / title
      Added value: +"Content Type"
    • addedOutput schema / properties / content_url / title
      Added value: +"Content Url"
    • addedOutput schema / properties / cover_image_url / title
      Added value: +"Cover Image Url"
    • addedOutput schema / properties / image_urls / title
      Added value: +"Image Urls"
    • addedOutput schema / properties / images / items / properties / height / title
      Added value: +"Height"
    • addedOutput schema / properties / images / items / properties / url / title
      Added value: +"Url"
    • addedOutput schema / properties / images / items / properties / width / title
      Added value: +"Width"
    • addedOutput schema / properties / images / items / title
      Added value: +"ZhihuImageData"
    • addedOutput schema / properties / images / title
      Added value: +"Images"
    • addedOutput schema / properties / ip_location / title
      Added value: +"Ip Location"
    • addedOutput schema / properties / like_count / title
      Added value: +"Like Count"
    • addedOutput schema / properties / publish_time / title
      Added value: +"Publish Time"
    • changedOutput schema / properties / question / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "question_id": {
      -        "description": "知乎问题 ID;用于按问题聚合回答,不是内容详情或评论输入;不可用时为空字符串。",
      -        "type": "string"
      -      },
      -      "question_url": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "知乎问题页面链接;不是内容详情或评论请求的 content_url;不可用时为 null。"
      -      },
      -      "title": {
      -        "description": "问题标题;不可用时为空字符串。",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "question_id",
      -      "title",
      -      "question_url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "question_id": {
      +        "description": "知乎问题 ID;用于按问题聚合回答,不是内容详情或评论输入;不可用时为空字符串。",
      +        "title": "Question Id",
      +        "type": "string"
      +      },
      +      "question_url": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "知乎问题页面链接;不是内容详情或评论请求的 content_url;不可用时为 null。",
      +        "title": "Question Url"
      +      },
      +      "title": {
      +        "description": "问题标题;不可用时为空字符串。",
      +        "title": "Title",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "question_id",
      +      "title",
      +      "question_url"
      +    ],
      +    "title": "ZhihuQuestionSummaryData",
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / share_count / title
      Added value: +"Share Count"
    • addedOutput schema / properties / title / title
      Added value: +"Title"
    • addedOutput schema / properties / topic_tags / items / properties / name / title
      Added value: +"Name"
    • addedOutput schema / properties / topic_tags / items / title
      Added value: +"ZhihuTopicTagData"
    • addedOutput schema / properties / topic_tags / title
      Added value: +"Topic Tags"
    • addedOutput schema / properties / update_time / title
      Added value: +"Update Time"
    • addedOutput schema / properties / upvote_count / title
      Added value: +"Upvote Count"
    • changedOutput schema / properties / video / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "duration_ms": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "视频时长,毫秒;不可用时为 null。"
      -      },
      -      "height": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "视频高度,像素;不可用时为 null。"
      -      },
      -      "play_count": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "视频播放数;不可用时为 null。"
      -      },
      -      "play_url": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "视频播放资源链接;优先返回高清 MP4 资源;可能随时间失效,不是内容页面 content_url;不可用时为 null。"
      -      },
      -      "width": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "视频宽度,像素;不可用时为 null。"
      -      }
      -    },
      -    "required": [
      -      "play_url",
      -      "duration_ms",
      -      "play_count",
      -      "width",
      -      "height"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "duration_ms": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "视频时长,毫秒;不可用时为 null。",
      +        "title": "Duration Ms"
      +      },
      +      "height": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "视频高度,像素;不可用时为 null。",
      +        "title": "Height"
      +      },
      +      "play_count": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "视频播放数;不可用时为 null。",
      +        "title": "Play Count"
      +      },
      +      "play_url": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "视频播放资源链接;优先返回高清 MP4 资源;可能随时间失效,不是内容页面 content_url;不可用时为 null。",
      +        "title": "Play Url"
      +      },
      +      "width": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "视频宽度,像素;不可用时为 null。",
      +        "title": "Width"
      +      }
      +    },
      +    "required": [
      +      "play_url",
      +      "duration_ms",
      +      "play_count",
      +      "width",
      +      "height"
      +    ],
      +    "title": "ZhihuVideoSummaryData",
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / title
      Added value: +"ZhihuContentDetailData"
  4. Changed7 schema fields changed
    • changedInput schema / properties / content_url / description
      Previous value: -"知乎内容页面链接;只传下面三类已支持的知乎网页链接格式,不要传接口地址、短链接、移动端链接或包含链接的分享文案;从搜索结果读取详情时,直接传搜索结果里非空的 content_url;不要只传 content_id 或数字 ID,不要自行拼接链接;不要传问题页链接或作者主页链接;支持回答页链接(包括带视频的回答) https://www.zhihu.com/question/{question_id}/answer/{answer_id}、专栏文章链接 https://zhuanlan.zhihu.com/p/{article_id}、独立视频链接 https://www.zhihu.com/zvideo/{zvideo_id}。"New value: +"知乎内容页面链接;只传下面四类已支持的知乎网页链接格式,不要传接口地址、短链接、移动端链接或包含链接的分享文案;从搜索结果读取详情时,直接传搜索结果里非空的 content_url;不要只传 content_id 或数字 ID,不要自行拼接链接;不要传问题页链接或作者主页链接;支持回答页链接(包括带视频的回答) https://www.zhihu.com/question/{question_id}/answer/{answer_id}、专栏文章链接 https://zhuanlan.zhihu.com/p/{article_id}、独立视频链接 https://www.zhihu.com/zvideo/{zvideo_id}、想法链接 https://www.zhihu.com/pin/{pin_id}。"
    • changedOutput schema / properties / content_type / description
      Previous value: -"内容类型:answer=回答(包括带视频的回答详情),article=文章,video=独立视频;详情不会返回 videoanswer。"New value: +"内容类型:answer=回答(包括带视频的回答详情),article=文章,video=独立视频,pin=想法;详情不会返回 videoanswer。"
    • changedOutput schema / properties / content_type / enum
      Previous value: -[
      -  "answer",
      -  "article",
      -  "video"
      -]New value: +[
      +  "answer",
      +  "article",
      +  "video",
      +  "pin"
      +]
    • changedOutput schema / properties / content_url / description
      Previous value: -"可打开的知乎内容页面链接;可作为评论请求的 content_url;不可用时为 null;不要自行拼接。"New value: +"可打开的知乎内容页面链接;回答、文章和视频链接可作为评论请求的 content_url;想法暂不支持评论;不可用时为 null;不要自行拼接。"
    • changedOutput schema / properties / image_urls / description
      Previous value: -"回答或文章详情正文中解析到的图片链接列表;视频详情返回空数组;无图片时为空数组。"New value: +"回答、文章或想法详情正文中解析到的图片链接列表;视频详情返回空数组;无图片时为空数组。"
    • changedOutput schema / properties / question / description
      Previous value: -"回答所属问题摘要;answer(包括带视频的回答详情)返回对象,article 和独立视频 video 为 null。"New value: +"回答所属问题摘要;answer(包括带视频的回答详情)返回对象,article、独立视频 video 和想法 pin 为 null。"
    • changedOutput schema / properties / title / description
      Previous value: -"内容标题;answer 通常为所属问题标题。"New value: +"内容标题;answer 通常为所属问题标题;想法没有标题时为空字符串。"
  5. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds scope information about which page types are readable, including video-bearing answers, but says nothing about authentication, rate limits, or failure behavior for unsupported URLs. With an output schema present, return-shape disclosure is not required.

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?

A single, front-loaded sentence with the verb and the qualifying content types; no filler or repetition. Slightly terse — the enumeration could be structured as a short list — but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read tool with full schema coverage, annotations and an output schema, the description gives exactly what is needed: which page types are supported. Nothing an agent needs in order to select and call it correctly is missing.

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% and there is only one required parameter, so the schema already carries the heavy documentation burden about accepted URL formats and rejected inputs. The description merely restates the same four page categories, adding no syntax or format detail 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 description states a specific verb (read details, 读取详情) and enumerates the exact supported resource types: Zhihu answer pages (including video answers), column articles, standalone videos and pins. That lets an agent distinguish it from siblings such as zhihu_get_content_comments_by_url or zhihu_get_user_info_by_profile_url, though it does not say what 'detail' actually contains.

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

Usage Guidelines3/5

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

Usage is only implied: 'when you have one of these four page links'. There is no explicit when-to-use vs. sibling guidance (e.g., search first, then fetch details) and no statement of prerequisites. The rich exclusion rules (no short links, mobile links, question pages, author pages) live entirely in the parameter schema, not the description.

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