Skip to main content
Glama
nideaon

xhs-comment-analyzer

by nideaon

analyze_comments

Reprocess captured comment JSON files with custom keyword, sentiment, and heat analysis parameters to extract deeper insights from existing Xiaohongshu data.

Instructions

对已抓取的评论JSON文件重新进行关键词/情感/热度分析。

适用于需要用不同参数重新分析已有数据的场景。

Args: file_path: 已抓取的评论JSON文件路径

Returns: JSON 格式的分析结果

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description must carry the full burden. It states the tool reads a JSON file and returns JSON analysis results, implying it is read-only and does not modify the original file. However, it does not disclose any potential side effects, required permissions, or error handling (e.g., missing file). The behavioral traits are partially transparent but lack depth.

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 extremely concise—three short sentences that cover the tool's purpose, usage scenario, and parameter. There is no wasted text, and the structure is front-loaded with the core action. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description claims re-analysis with 'different parameters' but only exposes the file_path parameter, suggesting the analysis parameters are embedded in the file or tool configuration—this is unclear. The return type is mentioned but not detailed. Given the tool's simplicity, the description is moderately complete but leaves ambiguity about how analysis parameters are controlled.

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 only parameter 'file_path' has a description in the tool description ('path to scraped comment JSON file') that adds meaning beyond the schema's title 'File Path'. The schema coverage is 0%, so the description compensates well. It could be more specific (e.g., absolute path, supported formats), but it is sufficient for the single parameter.

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 clearly states the tool re-analyzes scraped comment JSON files for keyword, sentiment, and popularity. It distinguishes from sibling tools (run_search_task, scrape_single_note, check_login_status) which are for different tasks. However, the exact nature of 'analysis' is not fully specified, leaving some ambiguity.

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?

The description explicitly says it is suitable for re-analyzing existing data with different parameters. This provides clear context for when to use it. It does not mention exclusions or alternatives, but no sibling tool directly competes for this re-analysis purpose.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nideaon/xhs-comment-analyzer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server