Skip to main content
Glama

检查小红书登录状态

check_login

Verifies whether the persisted Xiaohongshu profile is logged in and returns the account nickname, so you can confirm session status before searching or reading notes.

Instructions

检查当前持久化 Profile 的登录状态,返回是否登录及昵称。

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": "check_login"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the return payload and that state is read from the persistent Profile, but says nothing about whether the check is side-effect free, whether it may launch/attach to a browser process and how long that takes, or what happens when no Profile exists yet — meaningful gaps for a session-dependent tool.

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?

One short sentence with the scope front-loaded and the return value appended; no filler, no repetition of the title.

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 no-parameter read tool with no output schema, stating both the boolean outcome and the nickname is close to sufficient. It falls short only on the operational behavior an agent needs to plan around — latency, browser interaction, and the not-logged-in case.

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?

Zero parameters, so the baseline is 4; the description correctly requires no input and states the implicit target (the current persistent Profile) rather than leaving the scope undefined.

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?

Names a specific verb (检查) and resource (当前持久化 Profile 的登录状态), plus the return payload (是否登录及昵称). An agent can distinguish it from the sibling 'login' by the read-only checking verb, though the description never names that alternative explicitly.

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 precondition check to run before authenticated operations, and that 'login' is the counterpart when the status is false. No explicit when-to-use or when-not-to-use statement, and no mention of ordering relative to 'login'.

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