Skip to main content
Glama

SocialDataX 小红书 Xiaohongshu XHS RedNote MCP

xhs_search_images

Read-only

按搜索词搜索小红书图片;已有笔记链接或 note_id,且需要读取该篇笔记详情时,使用对应详情工具。每项为一张图片及关联笔记,同一笔记可返回多张图片;page_token 可用于尝试下一页,不保证下一页有结果;结果按平台相关性排序,不承诺每条内容包含原词,不承诺完整召回;需要图文笔记而非单张图片时使用 xhs_search_notes(note_type="image");需要视频笔记时使用 xhs_search_notes(note_type="video")。

Input Schema

NameRequiredDescriptionDefault
keywordYes搜索词,可传关键词或短语,例如露营、建筑、穿搭;不要传笔记链接、主页链接、note_id、user_id 或 page_token。
page_tokenNo媒体搜索分页令牌,首次请求留空;仅限同一工具、关键词和调用方,不得跨视频、图片或综合笔记搜索复用。将上一页完整 next_page_token 原样传回,不得截断、修改或自行生成。

Output Schema

NameRequiredDescriptionDefault
itemsYes图片列表;同一笔记的多张图片分别返回
pointsYes本次成功调用的积分消耗与账户积分余额。
next_page_tokenYes可尝试下一页的不透明分页令牌,不保证下一页有结果;为空表示无法继续翻页。续页保持关键词和调用方不变,并将完整令牌原样传回图片搜索入口。

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. Changed23 schema fields changed
    • addedOutput schema / properties / items / items / properties / author / properties / avatar_url / title
      Added value: +"Avatar Url"
    • addedOutput schema / properties / items / items / properties / author / properties / name / title
      Added value: +"Name"
    • addedOutput schema / properties / items / items / properties / author / properties / profile_url / title
      Added value: +"Profile Url"
    • addedOutput schema / properties / items / items / properties / author / properties / red_id / title
      Added value: +"Red Id"
    • addedOutput schema / properties / items / items / properties / author / properties / user_id / title
      Added value: +"User Id"
    • addedOutput schema / properties / items / items / properties / author / title
      Added value: +"AuthorSummary"
    • addedOutput schema / properties / items / items / properties / collect_count / title
      Added value: +"Collect Count"
    • addedOutput schema / properties / items / items / properties / comment_count / title
      Added value: +"Comment Count"
    • addedOutput schema / properties / items / items / properties / height / title
      Added value: +"Height"
    • addedOutput schema / properties / items / items / properties / image_id / title
      Added value: +"Image Id"
    • addedOutput schema / properties / items / items / properties / image_url / title
      Added value: +"Image Url"
    • addedOutput schema / properties / items / items / properties / like_count / title
      Added value: +"Like Count"
    • addedOutput schema / properties / items / items / properties / note_id / title
      Added value: +"Note Id"
    • addedOutput schema / properties / items / items / properties / note_url / title
      Added value: +"Note Url"
    • addedOutput schema / properties / items / items / properties / publish_time_text / title
      Added value: +"Publish Time Text"
    • addedOutput schema / properties / items / items / properties / share_count / title
      Added value: +"Share Count"
    • addedOutput schema / properties / items / items / properties / summary / title
      Added value: +"Summary"
    • addedOutput schema / properties / items / items / properties / title / title
      Added value: +"Title"
    • addedOutput schema / properties / items / items / properties / width / title
      Added value: +"Width"
    • addedOutput schema / properties / items / items / title
      Added value: +"SearchImageItem"
    • addedOutput schema / properties / items / title
      Added value: +"Items"
    • addedOutput schema / properties / next_page_token / title
      Added value: +"Next Page Token"
    • addedOutput schema / title
      Added value: +"SearchImagesResult"
  4. Added

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the read-only and open-world annotations, it discloses result granularity, possible duplicate images from the same note, uncertain next-page availability, platform relevance ordering, and the lack of guaranteed keyword matching or complete recall. These details set accurate expectations about search and pagination behavior.

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?

The description is dense but front-loads the core purpose and organizes the remaining guidance into short semicolon-separated clauses. Each clause supplies actionable selection or behavioral information without filler.

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 two-parameter search tool with full schema coverage and an output schema, the description supplies the essential selection, result-shape, ranking, recall, and pagination context. No important invocation prerequisite or limitation appears to be missing.

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?

The schema already fully documents both parameters, including detailed page_token handling rules. The description adds useful context that page_token only attempts to retrieve another page and that another page is not guaranteed, though most parameter-specific semantics remain in 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?

The description clearly states the verb, resource, and platform: searching Xiaohongshu images by keyword. It further distinguishes the tool's image-level results from note-detail retrieval and image or video note searches.

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?

It gives explicit routing guidance: use a detail tool when a note link or note_id is already available, xhs_search_notes with note_type=image for image-text notes, and note_type=video for video notes. These conditions make selection among the relevant siblings straightforward.

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