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

用 Token 登录

xg_login_token

Stores a browser-obtained Xsfwpt-Token for the student affairs system, validating it before saving so authenticated read-only queries can proceed.

Instructions

直接写入从浏览器拿到的登录凭证。 获取方式:浏览器登录学工系统 → F12 → Application/应用 → Cookies → 选 https://usc.gzgs.edu.cn → 复制 Xsfwpt-Token 的值。 写入后会自动校验一次,有效才保存。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "token": "<token>"
    },
    "name": "xg_login_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesXsfwpt-Token 的值
usernameNo备注用的账号(可选)

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 carries the full burden, and it does disclose a real behavioral trait: the token is validated on write and only persisted if valid, so a failed call does not silently corrupt stored credentials. It omits whether an existing session is overwritten, where the token is stored, how long it persists, and whether an invalid token yields an error or a no-op.

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?

Three short lines, front-loaded with the action and followed by the acquisition procedure and validation behavior. Every sentence earns its place: the F12/cookie path is the single most useful instruction for this tool and it is stated compactly.

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?

For a credential-write tool with no annotations and no output schema, the description covers acquisition and validation but not the surrounding lifecycle: overwrite semantics, whether the token is sensitive to log out, and what the caller gets back on success versus invalid token. Adequate to invoke, but thin for a security-sensitive mutation.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning by explaining where the required `token` value must come from (the Xsfwpt-Token cookie on usc.gzbs.edu.cn) rather than just repeating its name. It says nothing about the optional `username` parameter, which the schema only labels as a remark field.

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 (write the browser-obtained Xsfwpt-Token credential into the system) and names the exact cookie involved, so the agent knows this is the token-based login path. It does not name the sibling login methods (xg_login_account, xg_login_browser, xg_login_captcha), so differentiation must be inferred from the title/name rather than stated.

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 implied rather than stated: the tool only applies when the user can supply a browser cookie value, and the description gives a full acquisition procedure (F12 → Application → Cookies → Xsfwpt-Token). There is no explicit alternative-selection guidance such as 'use xg_login_account when the user has a password', and no when-not-to-use condition.

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