Skip to main content
Glama

获取小红书笔记详情

get_note_detail

Fetch a Xiaohongshu note's title, body, publish date, author, engagement counts, and tags using a note_id plus a non-expired xsec_token from search results.

Instructions

获取笔记正文(标题、正文、发布日期、作者、点赞/收藏/评论数、话题标签)。note_id 和 xsec_token 必须来自最近一次 search_notes 的结果(xsec_token 会过期)。

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": {
      "note_id": "<note_id>"
    },
    "name": "get_note_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
note_idYes笔记 ID(search_notes 结果中的 note_id,或链接 /explore/ 后的部分)
xsec_tokenNo来自 search_notes / get_chat_notes 结果的 xsec_token,缺失可能无法读取正文
xsec_sourceNotoken 来源:search_notes 默认 pc_search;私信分享的笔记传 app_share

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose a real behavioral trait: xsec_token expires and must be refreshed from a recent search. However, it says nothing about login/auth requirements (despite login and check_login siblings), rate limits, or failure modes beyond the token, leaving meaningful gaps for a no-annotation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero padding: the returned-field list comes first, then the sourcing constraint. Every clause carries information the agent needs.

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?

For a read-only fetch with three fully documented parameters and no output schema, the description compensates well by listing return fields and the token lifecycle. The main omission is any hint that authentication may be required, which matters given the login/check_login siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds a constraint not present in the schema: the token must come from the *most recent* search_notes result because it expires. That recency/expiry nuance materially affects how an agent should sequence calls.

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 uses a specific verb+resource (获取笔记正文) and enumerates exactly what comes back (标题、正文、发布日期、作者、点赞/收藏/评论数、话题标签), which is far beyond restating the title. It doesn't explicitly distinguish itself from siblings like get_note_comments, but the field list makes the boundary reasonably obvious.

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?

It gives a clear precondition for use: note_id and xsec_token must come from the most recent search_notes call, with a stated reason (token expiry). There are no explicit exclusions or named alternatives for other note-access paths, so it stops short of a 5.

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