Skip to main content
Glama

SocialDataX 小红书 Xiaohongshu XHS RedNote MCP

xhs_search_images

Read-only

按 keyword 搜索小红书图片,每项为一张图片及关联笔记,同一笔记可返回多张图片;page_token 可用于尝试下一页,不保证下一页有结果;结果按平台相关性排序,不承诺每条内容包含原词,不承诺完整召回;需要图文笔记而非单张图片时使用 xhs_search_notes(note_type="image");需要视频时使用 xhs_search_videos。

Input Schema

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

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover safety (readOnlyHint, openWorldHint). The description goes well beyond by disclosing that one note can yield multiple image results, that the next page is not guaranteed to contain results, that ordering is platform-relevance based, and that keyword containment and full recall are not guaranteed — unusually rich operational caveats.

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 core purpose, and every clause (result shape, pagination caveat, ranking, recall caveats, two alternatives) earns its place. It is delivered as one long semicolon-chained sentence, which is dense to parse but contains no 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?

An output schema exists, so return values need no explanation. The description covers the remaining agent-relevant unknowns: item granularity, pagination behavior, ranking/recall limits, and routing to the two sibling search tools. Nothing material 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 the parameter descriptions already explain keyword constraints and page_token reuse rules in detail. The description restates page_token's purpose and adds only the caveat that the next page may be empty, which is marginal over 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+resource+scope: search Xiaohongshu images by keyword, and clarifies each result item is an image plus its associated note. It also explicitly differentiates itself from xhs_search_notes and xhs_search_videos, so an agent can select it without opening sibling schemas.

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?

Gives explicit routing: use xhs_search_notes(note_type="image") when image-text notes are wanted rather than single images, and xhs_search_videos for video. It also frames page_token as an optional continuation attempt. When-to-use and when-to-use-something-else are both covered.

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