Skip to main content
Glama

xhs_session_status

Read-only

Checks local Chromium login status for RedNote and Xiaohongshu and reports the currently selected site without returning cookies.

Instructions

检查本机 Chromium 的 rednote 与小红书登录,明确返回当前选择的站点,不返回 Cookie。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "xhs_session_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNo站点:rednote 海外版、xiaohongshu 国内版;auto 优先已登录的海外版,也可通过 XHS_MCP_SITE 固定默认站点。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly=true, destructive=false, openWorld=true, so the safety profile is covered. The description adds real value beyond that by disclosing the privacy-relevant constraint that no cookies are returned and that the selected site is echoed back — a deliberate omission an agent couldn't infer from annotations. It still omits what a 'not logged in' result looks like, which is the main residual gap.

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?

A single dense sentence with the action and the no-cookie guarantee front-loaded; nothing is redundant. It is slightly telegraphic, leaving the return shape implicit, which costs it a point.

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?

For a one-parameter, zero-required read tool with full schema coverage and rich annotations, the description carries enough: what is checked, what is returned, and what is deliberately withheld. With no output schema, a brief statement of the returned status shape (logged-in boolean per site, error case) would have completed it.

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% and the `site` enum already documents rednote vs xiaohongshu vs auto plus the XHS_MCP_SITE override. The description mentions the site selection only indirectly and adds no syntax or precedence detail beyond the schema, so the baseline 3 applies.

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 states a specific verb and resource — checking local Chromium login state for rednote/小红书 — which no sibling tool does, so the agent can distinguish it from the search/read siblings. It stops short of naming a sibling explicitly, which keeps it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer this is a pre-flight check to run before read/search tools, but the description never says when to call it, when not to, or what to do on failure. No alternatives or prerequisites (e.g., Chromium running) are named.

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