Skip to main content
Glama
gzgs-xgxt-mcp
by yjp-jdp

检查登录状态

xg_login_status

Verifies saved login credentials are still valid and returns the current user's identity, role, and permission count, with guidance when not logged in.

Instructions

检查本地保存的登录凭证是否还有效。返回当前用户(姓名/学号/班级/院系)、角色、权限码数量。未登录时提示下一步怎么做。

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It does well to disclose the return shape and the not-logged-in branch, but it never states that the call is read-only and has no side effects, nor whether it refreshes or expires the stored credential, which matters for a credential-reading tool.

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?

There are three short sentences, each doing distinct work: first the check, then the returned fields, then the unauthenticated path. Nothing is redundant, and the core action is front-loaded, though the parenthetical field list is somewhat dense.

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 zero-parameter, no-output-schema tool, the description covers what is inspected, what comes back, and what happens on the negative path. The remaining gap is side-effect and idempotency information, minor for a status check but not covered anywhere else.

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?

Because the tool takes zero parameters, there is no parameter semantics to explain, so the baseline score is 4. The description correctly spends its space on outputs instead of inventing parameter guidance.

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 action and resource: it checks whether locally stored login credentials are still valid, then lists the exact return payload (name/student ID/class/department, role, permission count). This is clearly distinct from siblings such as xg_login_captcha or xg_logout, though it does not explicitly distinguish itself from xg_me or xg_login_token, which may also report identity.

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?

The text '未登录时提示下一步怎么做' implies that this tool is a gate before authenticated calls, so usage is inferable rather than stated. It never names an alternative or says when not to use this tool instead of xg_me or xg_login_token, leaving the agent to guess which status probe to prefer.

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