Skip to main content
Glama

SocialDataX 小红书 Xiaohongshu XHS RedNote MCP

xhs_get_user_id_by_encrypted_user_id

Read-only

根据完整加密用户 ID 获取稳定 user_id。 仅需单独转换 ID 时使用;查询用户信息或作品可直接使用已有用户 ID 或主页链接,无需先调用本工具。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
encrypted_user_idYes小红书加密用户 ID。用户已提供时直接原样使用;请传入完整 29 位小写十六进制值;不要传 24 位 user_id、小红书号、昵称或主页链接

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pointsYes本次成功调用的积分消耗与调用完成时的账户积分余额。
user_idYes稳定用户 user_id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/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 real behavioral scope beyond that: this is a pure, optional ID-conversion utility that returns only the ID and is NOT a required prerequisite for other calls, which prevents an agent from expecting enriched user data or chaining it unnecessarily.

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 waste, with the core action stated first and the routing caveat second. Everything stated earns its place.

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 not be explained, and annotations cover the read-only/open-world profile. Purpose, usage conditions, and the non-prerequisite caveat are all present for a one-parameter conversion 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 description coverage is 100%, and the schema already spells out the 29-character lowercase hex requirement and the invalid inputs (24-char user_id, red-book number, nickname, profile URL). The description's '完整加密用户 ID' only lightly reinforces that, so the baseline 3 applies.

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 and resource: convert a complete encrypted user ID into a stable user_id. It also implicitly separates itself from siblings like xhs_get_user_info_by_user_id / _by_profile_url by clarifying that it only performs ID conversion and does not fetch user data.

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?

Explicitly gives the when: '仅需单独转换 ID 时使用' (use only when you need the ID converted on its own). It also gives the when-not and the alternative path: to query user info or posts, use the existing user ID or profile link directly without calling this tool. This is exactly the when/when-not/alternative guidance the dimension asks for.

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