Skip to main content
Glama

获取私信中分享的笔记

get_chat_notes

Extract shared notes from a Xiaohongshu direct-message conversation by chat ID. It scrolls through message history and returns note titles, authors, IDs, tokens, and share times for detail lookup.

Instructions

打开指定私信会话,自动向上滚动加载历史消息,提取所有分享的笔记(标题、作者、note_id、xsec_token、分享时间、是好友发还是我发的)。返回结果可直接传给 get_note_detail 读正文(token 配 xsec_source=app_share)。

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": {
      "chat_id": "<chat_id>"
    },
    "name": "get_chat_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo最多返回分享笔记数,默认 20
chat_idYes会话 ID(来自 list_chats 结果的 chat_id,即 /chat/ 后的部分)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses a non-obvious behavior: the tool opens a chat and auto-scrolls upward to load history. It also discloses the shape of the return payload and the token/source pairing required downstream. It omits auth requirements and whether scrolling is slow or bounded, which keeps it from a 5.

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 dense sentences, and the operation is front-loaded ahead of the return-field list and the downstream hint. No sentence is redundant, and the parenthetical list is compact and carries real information.

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 no output schema, the description steps in to describe the returned fields and the token handoff, which is exactly what an agent needs. The only real gap is the absence of any note about login or auth state, which matters given the check_login and login siblings exist alongside this tool.

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%, so both chat_id (from list_chats) and limit (default 20, maximum 50) are already documented in the schema. The description adds no additional meaning about parameter behavior, such as what limit counts against (messages vs. notes) — that is a baseline 3.

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?

The description uses specific verbs and resources: it opens a given direct-message conversation, scrolls up automatically to load history, and extracts all shared notes. The parenthetical enumerates the exact return fields (title, author, note_id, xsec_token, share time, sender), so the agent can immediately tell this apart from get_note_detail, which reads note bodies, and from list_chats, which enumerates conversations.

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 makes a clear usage context explicit: use this to collect notes shared in a DM, and the returned token is meant to be passed to get_note_detail with xsec_source=app_share. That is concrete downstream chaining. It does not say when NOT to use it versus search_notes, nor does it state prerequisites such as login, but the positive guidance is strong.

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